ID: 25767 User updated by: colin dot harford at ualberta dot ca Reported By: colin dot harford at ualberta dot ca -Status: Feedback +Status: Closed Bug Type: Apache2 related Operating System: OpenBSD -current PHP Version: 4.3.4RC1 New Comment:
In my rc.conf: shlib_dirs=/opt/db/mysql/lib/mysql/ # extra directories for ldconfig, separated # by space # ldconfig -r | grep mysql search directories: /usr/lib:/usr/X11R6/lib:/ usr/local/lib:/opt/db/mysql/lib/mysql:/opt/apache2/lib:/ opt/php-4.3.3/libs:/opt/php-4.3.4RC1/libs:/opt/php4- STABLE-200310062130/libs Which I thought was odd, as I know that mysql was working so I did an ldconfig -R ldconfig -R /opt/db/mysql /opt/db/mysql/lib/ mysql/ Then when I did a: # ldconfig -r | grep mysql search directories: /usr/lib:/usr/X11R6/lib:/ usr/local/lib:/opt/apache2/lib:/opt/php-4.3.3/libs:/opt/ php-4.3.4RC1/libs:/opt/php4-STABLE-200310062130/libs:/ opt/db/mysql/lib:/opt/db/mysql/lib/mysql 130:-lmysqlclient.12.0 => /opt/db/mysql/lib/ mysql/libmysqlclient.so.12.0c Then, I tried to start apache, and ran into some errors about not enough space, which I traced to some semaphores still in use by apache. Killing them off I was able to start apache and php works. Thanks for your help. CH FYI: ldd still comes up like: # ldd libphp4.so libphp4.so: libphp4.so: Exec format error libphp4.so: exit status 1 Previous Comments: ------------------------------------------------------------------------ [2003-10-07 19:01:44] [EMAIL PROTECTED] Is the path to that mysql lib in your LD_LIBRARY_PATH or not? ------------------------------------------------------------------------ [2003-10-07 16:23:13] colin dot harford at ualberta dot ca # objdump -p libphp4.so libphp4.so: file format elf32-i386 Program Header: LOAD off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12 filesz 0x000fc450 memsz 0x000fc450 flags r-x LOAD off 0x000fd000 vaddr 0x20000000 paddr 0x20000000 align 2**12 filesz 0x000274e0 memsz 0x000274e0 flags r-- LOAD off 0x001244e0 vaddr 0x200284e0 paddr 0x200284e0 align 2**12 filesz 0x0000d248 memsz 0x0000d248 flags rw- LOAD off 0x00131728 vaddr 0x20036728 paddr 0x20036728 align 2**12 filesz 0x00001408 memsz 0x00001408 flags rw- LOAD off 0x00132b30 vaddr 0x20038b30 paddr 0x20038b30 align 2**12 filesz 0x00000088 memsz 0x00005024 flags rw- DYNAMIC off 0x00132b30 vaddr 0x20038b30 paddr 0x20038b30 align 2**2 filesz 0x00000088 memsz 0x00000088 flags rw- Dynamic Section: NEEDED libmysqlclient.so.12.0 NEEDED libm.so.1.0 INIT 0x24770 FINI 0x247a0 HASH 0x134 STRTAB 0xc998 SYMTAB 0x42f8 STRSZ 0x93e8 SYMENT 0x10 PLTGOT 0x20036728 PLTRELSZ 0x2210 PLTREL 0x11 JMPREL 0x1e098 REL 0x15d80 RELSZ 0x8318 RELENT 0x8 I have put up the config.log from that STABLE-snapshot at http://www.ualberta.ca/~charford/config.log ------------------------------------------------------------------------ [2003-10-07 11:00:56] colin dot harford at ualberta dot ca (gw!/opt/apache2/modules) [root-ttyp2] # ldd libphp4.so libphp4.so: libphp4.so: Exec format error libphp4.so: exit status 1 hmmmm. CH ------------------------------------------------------------------------ [2003-10-07 04:04:16] [EMAIL PROTECTED] Not sure but I think it's just missing path in LD_LIBRARY_PATH..check what this outputs: # ldd libphp4.so ------------------------------------------------------------------------ [2003-10-06 21:50:27] colin dot harford at ualberta dot ca There is nothing in /var/log: I set syslog to log everything to /var/log/all as well as everywhere else, and nothing was placed there. I can't run strace, as it doesn't exist for OpenBSD. However, I did run a ktrace, which is similar ktrace ./ httpd -X -DONE_PROCESS. The kdump of it is quite long, so I placed it on: http://www.ualberta.ca/~charford/ log.txt Thanks, CH ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25767 -- Edit this bug report at http://bugs.php.net/?id=25767&edit=1