ID: 42318 User updated by: rainer dot tammer at schulergroup dot com Reported By: rainer dot tammer at schulergroup dot com Status: Assigned Bug Type: Compile Failure Operating System: AIX 5.2/5.3 PHP Version: 5.2CVS-2007-08-17 Assigned To: dmitry New Comment:
Hello, the problem only exists if you build the dso for Apache. If you only build php (stand alone) then you do not need the .libs directory. I am using libtool 1.5.20 (bundled with PHP). I have access to AIX 5.2 / 5.3 / 6.1 (maybe 5.1 / 4.3.3 very old dev environment). Regarding the access to an newer AIX machine: The problem is the access from the internet. If you like we can switch to pm an we can discuss this problem. Bye Rainer Previous Comments: ------------------------------------------------------------------------ [2008-08-28 07:41:39] [EMAIL PROTECTED] I was never able to reproduce this build failure. The "fixed" configs worked fine for me on AIX, however build doesn't work with ".libs". I assume something may be different in libtools in different systems. For now I have access only to AIX 5.1. I'll able to fix the bug if somebody gives me access to AIX 5.2/5.3. ------------------------------------------------------------------------ [2008-07-17 01:20:46] [EMAIL PROTECTED] Dmitry, you never answered my question why you reverted your fix? [16 Aug 2007 10:32pm UTC] [EMAIL PROTECTED] And on second check: Assigning to Dmitry who broke this with his commit to fix (!) AIX build. Dmitry: cvs diff -r1.17.2.1 -r1.17.2.2 sapi/cgi/config9.m4 cvs diff -r1.22 -r1.22.2.1 sapi/cli/config.m4 [16 Aug 2007 10:34pm UTC] [EMAIL PROTECTED] Or not really broke but tried to fix. First fix was ok but for some reason Dmitry removed the .libs part of it, perhaps he knows why.. ------------------------------------------------------------------------ [2007-11-29 10:29:18] rainer dot tammer at schulergroup dot com Hello, with my suggested patch to the two configure files the errors will be gone. I have checked this on all 5.2.x releases. In sapi/cgi/config9.m4 and sapi/cli/config.m4 ... case $host_alias in *aix*) change ... sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` ... to ... sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` ... Do not forget to call utoconf to regenerate the configure script after the change. It looks like you only need this patch if you user the --with-apxs configure switch. Bye Rainer ------------------------------------------------------------------------ [2007-11-28 22:59:46] bduncan8 at yahoo dot com Using gcc 4 on AIX 5.3 and trying to compile PHP 5.2.5 When running make there are many messages about nm not finding files. If make install is attempted it completely fails. If I skip make install I can copy over the libphp5.so and get apache to return phpinfo() output but I have my doubts about being able to install pecl extensions I need like ibm-db2 and informix. It doesn't seem like there has been any official resolution proposed ... is this being looked at still? Thanks. ------------------------------------------------------------------------ [2007-09-26 15:45:54] ppryor at pobox dot com I have the same problem on AIX 5.2 with gcc when I compiled with --apxs and --enable-cli. However it does not cause any problems and it is just an annoyance. However, I will find out when I use phpize and build PECL extension to dynamically load into php under Apache 1.3. I believe (not yet proven) that I will have to insert the following line in config.m4 for PECL extensions: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-bI:/usr/HTTPServer/libexec/libphp5.exp" And the first line of the libphp5.exp contains: #!/usr/HTTPServer/libexec/libphp5.so <followed by external symbols generated with nm> In order to have PECL extension loaded without causing Apache to core dump. I don't see libphp5.exp created and this is what we may need under AIX 5.2. Generally under AIX 4.x (not sure if its true of AIX 5.x) the dynamically loaded libraries need to reference other dynamically loaded libraries where they can resolve symbols (forward linking) by adding a header that you can inspect with dump -H. Example follows for oci8: $ dump -H oci8.so oci8.so: ***Loader Section*** Loader Header Information VERSION# #SYMtableENT #RELOCent LENidSTR 0x00000001 0x000000b0 0x000001a5 0x00000079 #IMPfilID OFFidSTR LENstrTBL OFFstrTBL 0x00000004 0x0000245c 0x00000ba6 0x000024d5 ***Import File Strings*** INDEX PATH BASE MEMBER 0 /ora01/app/oracle/product/8.1.7/lib:/usr/lib:/lib 1 libc.a shr.o 2 /usr/HTTPServer/libexec libphp4.so 3 libclntsh.a shr.o You see index number 2, the absolute path for libphp4.so is in /usr/HTTPServer/libexec. I hope this clears up somewhat. And I hope this issue will be fixed for AIX releases definitely (I feel that my config.m4 hack is not quite the right way to do it, through, but it works). Paul. ------------------------------------------------------------------------ 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/42318 -- Edit this bug report at http://bugs.php.net/?id=42318&edit=1