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,
any news ??
Bye
Rainer
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2007-09-06 06:15:31] rainer dot tammer at schulergroup dot com
Hello,
first of all AIX 5.1 is no longer supported.
I tested the build on AIX 5.2 and 5.3 with IBM xlC/C++ 8.0 and with gcc
3.3.2. It looks like the .libs directory only appears if you build for
apache (--with-apxs) and sapi/cgi; sapi/cli.
If you need another test I can try almost every combination with the
following OS versions / compilers:
* AIX 5.2 and AIX 5.3
* xlC/C++ 6.0; 8.0; and 9.0
* gcc 3.3.2; gcc 4.0.0
Bye
Rainer
------------------------------------------------------------------------
[2007-09-05 15:48:51] [EMAIL PROTECTED]
I've just recompiled PHP-5.2.4 on AIX 5.1 with gcc without problems.
I don't have any ".libs" directories, however in boundled libtool I
have "objdir=.libs".
I have no idea what is wrong on your (or my) AIX system and how to
support both.
Try to build CLI and CGI without "--with-apxs".
------------------------------------------------------------------------
[2007-09-03 06:20:06] rainer dot tammer at schulergroup dot com
Hello,
any news ??
Bye
Rainer
------------------------------------------------------------------------
[2007-08-23 14:45:04] [EMAIL PROTECTED]
Dmitry, can you give some info about why you reverted your fix?
------------------------------------------------------------------------
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