On Fri, Feb 7, 2025 at 9:26 AM ohaya <ohaya@xxxxxxxxx.invalid> wrote: > > Hi, > > I am trying to get the "httpd -t" test to work but am getting an "undefined symbol" message. > > The Apache is 2.4.39 version that I built from source on a CENTOS 8.5 machine. > > Here's what I am running: > > export LD_LIBRARY_PATH=/apps/Oracle/Middleware/Oracle_Home/lib:/..../apps/Oracle/Middleware/Oracle_Home/webgate/ohs/lib/ > > ./httpd -t -DOHS_MPM_EVENT -f /apps/httpd2.4/conf/httpd.conf > > httpd: Syntax error on line 512 of /apps/httpd2.4/conf/httpd.conf: Syntax error on line 5 of /apps/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/ohs1/webgate.conf: Cannot load /apps/Oracle/Middleware/Oracle_Home/webgate/ohs/lib/webgate.so into server: /apps/Oracle/Middleware/Oracle_Home/webgate/ohs/lib/webgate.so: undefined symbol: slts_runmode [...] > libclntsh.so > libclntshcore.so > > I ran "nm -D" on those 2 .so files: > > [orcladmin@localhost lib]$ nm -D libclntsh.so | grep slts_runmode > U slts_runmode > > [orcladmin@localhost lib]$ nm -D libclntshcore.so | grep slts_runmode > 000000000056d120 B slts_runmode > > From what I was able to find the "U" means "undefined" and the "B" stands for "BSS"? The man page for confirms this (e.g. https://linux.die.net/man/1/nm) > I was wondering if there is any way to configure the Apache to ignore/bypass that "undefined symbol" problem? That's not a good idea, since this is probably just a symptom of another problem. My first guess would be that you end up using an incompatible mix of oracle libraries, possibly an older version of libclntshcore.so gets loaded that doesn't provide slts_runmode. Try ldd webgate.so to see which libraries are used, although I'm not sure if httpd makes use of LD_LIBRARY_PATH while loading modules. Note that LD_RUN_PATH and buiiltin rpaths are searched before LD_LIBRARY_PATH. If ldd doesn't show any obvious problems, you can try strace -e openat httpd -t rainer -- This email is confidential. If you are not the intended recipient, please delete it and notify us immediately by telephoning or e-mailing the sender. You should not copy it or use it for any purpose nor disclose its contents to any other person. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
![]() |