ID:               42318
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rainer dot tammer at schulergroup dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: AIX 5.2/5.3
 PHP Version:      5.2.3
 New Comment:

Before we continue with any fixes, try the latest CVS snapshot first:
http://snaps.php.net/php5.2-latest.tar.gz 

Also, some systems are known to ship with broken sed/awk.
Make sure you use GNU ones. Also, you'd have better luck by using also
gcc instead..


Previous Comments:
------------------------------------------------------------------------

[2007-08-16 15:54:20] rainer dot tammer at schulergroup dot com

Hello,
this is the error message:

nv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm  -o sapi/cli/php
nm: ext/libxml/libxml.o: 0654-200 Cannot open the specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_chartables.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_ucp_searchfuncs.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_compile.o: 0654-200 Cannot open the specified
file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_config.o: 0654-200 Cannot open the specified
file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_exec.o: 0654-200 Cannot open the specified
file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_fullinfo.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_get.o: 0654-200 Cannot open the specified
file.
nm: A file or directory in the path name does not exist.

With the proposed fix the nm command works correctly.

Bye
  Rainer Tammer

------------------------------------------------------------------------

[2007-08-16 14:25:58] rainer dot tammer at schulergroup dot com

Hello,
I started building PHP from 5.2 on. The error is present in 5.2.1 -
5.2.3.

I will build 5.2.3 from the unmodified source. As soon as the build is
finished I will post the exact error message.

I use XL C/C++ 8.0 and libtool 1.5.x. I tested this on AIX 5.2 and 5.3.
This are currently the only supported AIX versions. AIX 5.1 and 4.x is
desupported.


Bye
  Rainer

------------------------------------------------------------------------

[2007-08-16 13:36:07] [EMAIL PROTECTED]

What exactly was the error you got? And has this worked in earlier AIX
systems with exactly same way of building it?

------------------------------------------------------------------------

[2007-08-16 13:04:28] rainer dot tammer at schulergroup dot com

Description:
------------
During the AIX build nm could not find the .o files.



Reproduce code:
---------------
export CC=cc_r
export CXX=xlC_r
./configure \
  --disable-ipv6 \
  --with-libxml-dir=/usr/local \
  --with-mysql=/usr/local/mysql \
  --with-apxs=/usr/local/apache/bin/apxs \
  --with-zlib=/opt/freeware \
  --with-jpeg-dir=/opt/freeware \
  --with-png-dir=/opt/freeware \
  --with-gd \
  --enable-gd-native-ttf \
  --enable-mbstring \
  --with-curl=/usr/local \
  --enable-ftp


Expected result:
----------------
On recent AIX systems the .o files are placed in .libs/xxx.o

./sapi/cgi/config9.m4

BUILD_CGI="... | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | ...
-> change
BUILD_CGI="... | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | ...

./sapi/cli/config.m4

BUILD_CLI="... | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | ...
-> change
BUILD_CLI="... | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | ...

With the above changes (and a newly generated configre) the build
completes withot errors.

Is this an acceptable solution to the build problem ??

Bye
  Rainer

Actual result:
--------------
N/A


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42318&edit=1

Reply via email to