compile problems on Irix 6.5.12
| From: | Jan Z. | Date: | Mon, 02 Jul 2001 12:57:00 +0000 |
| Subject: | compile problems on Irix 6.5.12 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-3394@lists.php.net to get a copy of this message | ||
dear maintainers,
I've got a problem compiling php-4.0.3pl1 on Irix 6.5.12 with gcc 2.95.2 and
gmake 3.79.1.
I've also tried out earlier and older versions with gcc and the native Irix
compiler. I can't get it running.
This one is debug.log :
CONFIGURE: './configure' '--prefix=/usr/local/www'
'--with-apxs=/usr/local/www/bin/apxs' '--with-db3' '--enabl
e-ftp' '--enable-libgcc' '--with-ldap' '--with-tsrm-pthreads'
CC: gcc -mabi=n32
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES: -I/usr/local/www/include -I$(top_builddir)/Zend -I$(top_srcdir
) -I/usr/local/src/php-4.0.3pl1/ext/
mysql/libmysql
LDFLAGS: -L/usr/local/BerkeleyDB.3.2static -L/usr/lib32 -Wl,-rpath,/usr/f
reeware/lib/gcc-lib/mips-sgi-irix6.2
/2.95.2 -L/usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2.95.2
LIBS: -l -lm -ldl -lcrypt -lsocket -lpthread -lsocket -lgcc
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2.95.2
uname -a: IRIX gps 6.5 04131232 IP22
gcc -mabi=n32 -o
conftest -g -O2 -L/usr/local/BerkeleyDB.3.2static -L/usr/lib32 -Wl,-rpath,/
usr/freeware/lib/gc
c-lib/mips-sgi-irix6.2/2.95.2 -L/usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2
.95.2 conftest.c -l -lm -ldl -lcrypt
-lsocket -lpthread -lsocket -lgcc 1>&5
ld32: FATAL 9 : I/O error (-l-lm): No such file or directory
collect2: ld returned 32 exit status
What means -l & -lm ? Is it the standard /usr/lib32/libc.so.1 or the math
library or both ?
The strange thing is when removing the complete directory and recopying the
source the message dissapears but when once running simply gmake it says :
Making all in Zend
gmake[1]: Entering directory `/usr/local/src/php-4.0.3pl1/Zend'/bin/sh
../libtool --silent --mode=compile
c -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=12 -g -O2 -c
zend-scanner.c
/bin/sh ../libtool --silent --mode=link gcc -g -O2 -o libZend_c.la
zend-scanner.lo
../libtool[3315]: ranlib: not found
gmake[1]: *** [libZend_c.la] Error 127
gmake[1]: Leaving directory `/usr/local/src/php-4.0.3pl1/Zend'
gmake: *** [all-recursive] Error 1
I've set these enviroment varibables before running
./configure --prefix=/usr/local/www --with-apxs=/usr/local/www/bin/apxs --wi
th-db3 --enable-ftp --enable-libgcc --with-ldap --with-tsrm-pthreads :
LIBS="-lpthread" CC="gcc -mabi=n32
" LDFLAGS="-L/usr/local/BerkeleyDB.3.2static -L/usr/lib32"
And when ignoring the -l -lm warning in debug.log it stops after a while
with these lines :
my_getwd.c:58: #error "No way to get current directory"
gmake[4]: *** [my_getwd.lo] Error 1
gmake[4]: Leaving directory `/usr/local/src/php-4.0.3pl1/ext/mysql/libmysql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/local/src/php-4.0.3pl1/ext/mysql/libmysql'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/src/php-4.0.3pl1/ext/mysql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/php-4.0.3pl1/ext'
gmake: *** [all-recursive] Error 1
Can you please help my out ? I really need Apache and php with ldap-support
to run LDAP-Explorer on that damned Irix 6.5.12 machine.
best regards,
Jan Zeller