php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9950 Error while running ./configure Apache
Submitted: 2001-03-23 03:14 UTC Modified: 2001-04-29 11:49 UTC
From: smphp at ihost dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: SuSE Linux 7.1
Private report: No CVE-ID: None
 [2001-03-23 03:14 UTC] smphp at ihost dot de
After installing Oracle 8.1.7 on SuSE 7.1 (and installing the fix for glibc 2.1 from SuSE), apache doesn't compile properly anymore. Here's the statement:

./configure --activate-module=src/modules/php4/libphp4.a --prefix=/usr/local/httpd --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/httpd

And here's the error message I get:

cd ..; gcc  -DLINUX=22 -I/sources/php/php-4.0.4pl1 -I/sources/php/php-4.0.4pl1/main -I/sources/php/php-4.0.4pl1/main -I/sources/php/php-4.0.4pl1/Zend -I/sources/php/php-4.0.4pl1/Zend -I/sources/php/php-4.0.4pl1/TSRM -I/sources/php/php-4.0.4pl1/TSRM -I/sources/php/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`     -o helpers/dummy helpers/dummy.c   -Wl,-rpath,/opt/oracle/product/8.1.7/lib  -rdynamic -L/opt/oracle/product/8.1.7/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -ldl -lm -ldl -lresolv -lm -ldl -lcrypt -lnsl  -lresolv -lclntsh   -lm -lcrypt
/usr/lib/libresolv.so: undefined reference to `__res_nclose@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `__sysctl@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_list_unlock@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_file@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `getrlimit@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_list_resetlock@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_begin@GLIBC_2.2'
/usr/lib/libnsl.so: undefined reference to `svc_getreq_poll@GLIBC_2.2'
/usr/lib/libnsl.so: undefined reference to `__strndup@GLIBC_2.2'
/usr/lib/libnsl.so: undefined reference to `svc_max_pollfd@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `__libc_sigaction@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_next@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_end@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `setrlimit@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_list_lock@GLIBC_2.2'
/usr/lib/libresolv.so: undefined reference to `__res_init@GLIBC_2.2'
/usr/lib/libresolv.so: undefined reference to `__res_ninit@GLIBC_2.2'
/usr/lib/libnsl.so: undefined reference to `svc_pollfd@GLIBC_2.2'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1

It would be great if anyone could help.

Thanks,
Steffen

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-29 07:43 UTC] smphp at ihost dot de
I did exactly what is described in

ftp://ftp.suse.com/pub/suse/i386/commercial/Oracle/README.glibc-2.1.3-stubs

After installing Oracle 8.1.7 on SuSE 7.1 (and installing the fix for glibc 2.1 from SuSE), apache doesn't compile properly anymore. Here's the statement:

./configure --activate-module=src/modules/php4/libphp4.a --prefix=/usr/local/httpd
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/httpd

And here's the error message I get:

cd ..; gcc  -DLINUX=22 -I/sources/php/php-4.0.4pl1 -I/sources/php/php-4.0.4pl1/main
-I/sources/php/php-4.0.4pl1/main -I/sources/php/php-4.0.4pl1/Zend
-I/sources/php/php-4.0.4pl1/Zend -I/sources/php/php-4.0.4pl1/TSRM -I/sources/php/php-4.0.4pl1/TSRM
-I/sources/php/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`     -o helpers/dummy
helpers/dummy.c   -Wl,-rpath,/opt/oracle/product/8.1.7/lib  -rdynamic
-L/opt/oracle/product/8.1.7/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -ldl -lm -ldl -lresolv
-lm -ldl -lcrypt -lnsl  -lresolv -lclntsh   -lm -lcrypt
/usr/lib/libresolv.so: undefined reference to `__res_nclose@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `__sysctl@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_list_unlock@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_file@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `getrlimit@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_list_resetlock@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_begin@GLIBC_2.2'
/usr/lib/libnsl.so: undefined reference to `svc_getreq_poll@GLIBC_2.2'
/usr/lib/libnsl.so: undefined reference to `__strndup@GLIBC_2.2'
/usr/lib/libnsl.so: undefined reference to `svc_max_pollfd@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `__libc_sigaction@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_next@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_end@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `setrlimit@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_list_lock@GLIBC_2.2'
/usr/lib/libresolv.so: undefined reference to `__res_init@GLIBC_2.2'
/usr/lib/libresolv.so: undefined reference to `__res_ninit@GLIBC_2.2'
/usr/lib/libnsl.so: undefined reference to `svc_pollfd@GLIBC_2.2'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1

It would be great if anyone could help.

Thanks,
Steffen

 [2001-03-29 09:18 UTC] sniper@php.net
1. Add -lpthread into your apache makefile's LIBS
2. Get the latest CVS snapshot of PHP 4 from http://snaps.php.net/

--Jani

 [2001-04-29 11:49 UTC] jmoore@php.net
No feedback.

closing
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC