httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malay HALDER <malay.hal...@alcatel-lucent.com>
Subject [users@httpd] problem building apache on solaris-10
Date Fri, 18 Apr 2008 06:36:54 GMT
|*hello maintainers,
          I am trying to build apache-2.2.8 on a solaris 10 machine and 
facing the following linking error in the build stage.

********
make[2]: Entering directory `/users/mhalder/Documents/httpd-2.2.8/support'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/libtool --silent 
--mode=compile gcc -g -O2    -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS 
-D_REENTRANT -D_LARGEFILE64_SOURCE  
-I/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/include  
-I/users/mhalder/Documents/httpd-2.2.8/srclib/pcre -I. 
-I/users/mhalder/Documents/httpd-2.2.8/os/unix 
-I/users/mhalder/Documents/httpd-2.2.8/server/mpm/prefork 
-I/users/mhalder/Documents/httpd-2.2.8/modules/http 
-I/users/mhalder/Documents/httpd-2.2.8/modules/filters 
-I/users/mhalder/Documents/httpd-2.2.8/modules/proxy 
-I/users/mhalder/Documents/httpd-2.2.8/include 
-I/users/mhalder/Documents/httpd-2.2.8/modules/generators 
-I/users/mhalder/Documents/httpd-2.2.8/modules/mappers 
-I/users/mhalder/Documents/httpd-2.2.8/modules/database 
-I/users/mhalder/Documents/httpd-2.2.8/srclib/apr/include 
-I/users/mhalder/Documents/httpd-2.2.8/srclib/apr-util/include 
-I/users/mhalder/Documents/httpd-2.2.8/srclib/apr-util/xml/expat/lib 
-I/users/mhalder/Documents/httpd-2.2.8/modules/proxy/../generators 
-I/users/mhalder/Documents/httpd-2.2.8/modules/ssl 
-I/users/mhalder/Documents/httpd-2.2.8/modules/dav/main  -prefer-non-pic 
-static -c htpasswd.c && touch htpasswd.lo
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/libtool --silent 
--mode=link gcc -g -O2        -o htpasswd  htpasswd.lo   -lm 
/users/mhalder/Documents/httpd-2.2.8/srclib/pcre/libpcre.la 
/users/mhalder/Documents/httpd-2.2.8/srclib/apr-util/libaprutil-1.la 
/users/mhalder/Documents/httpd-2.2.8/srclib/apr-util/xml/expat/lib/libexpat.la 
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/libapr-1.la -luuid 
-lsendfile -lrt -lsocket -lnsl -lpthread
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_rwlock_tryrdlock@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_exit@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_attr_setguardsize@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_attr_setstacksize@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_key_create@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `dlerror@SUNW_1.22'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `write@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `modf@SYSVABI_1.3'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_key_delete@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_create@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_setspecific@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `gethostname@SUNWprivate_1.1'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `open@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `writev@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_rwlock_trywrlock@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `waitpid@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `fcntl@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_rwlock_init@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_join@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `select@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_attr_destroy@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_sigmask@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_mutexattr_setrobust_np@SUNW_1.3'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_equal@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_rwlock_destroy@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_attr_init@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `dlopen@SUNW_1.22'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_mutexattr_settype@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_attr_getdetachstate@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_detach@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `read@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_getspecific@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `poll@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_attr_setdetachstate@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `dlsym@SUNW_1.22'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_rwlock_rdlock@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_rwlock_wrlock@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_self@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `dlclose@SUNW_1.22'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_rwlock_unlock@SUNW_1.2'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `pthread_once@SUNW_0.9'
/users/mhalder/Documents/httpd-2.2.8/srclib/apr/.libs/libapr-1.so: 
undefined reference to `sigaction@SUNW_0.9'

**************
MY MACHINE DETAILS:

csbu061 [mhalder] 794: uname -X
System = SunOS
Node = csbu061
Release = 5.10
KernelID = Generic_118833-24
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1




***********


the gcc i am using is gcc-4.2.2  build on the same machine using 
binutils-2.16.1
csbu061 [mhalder] 784: gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: 
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/configure 
--prefix=/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/V3 --disable-nls 
--enable-shared --enable-threads=posix 
--with-ld=/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/bin/ld 
--with-gnu-ld 
--with-as=/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/bin/as 
--with-gnu-as --enable-languages=c,c++
Thread model: posix
gcc version 4.2.2


***********

the gcc and binutils is in my path and also i have updated LD_LIBRARY_PATH

moreover it appeared to me that it is a linking problem to the sysytem 
thread library so i included in my LD_LIBRARY_PATH  the directories /lib 
and /usr/lib where resides the libraries:--llib-lpthread, libpthread.so, 
libpthread.so.1


but still the same error is coming

please help me .. and let me know if you need any more info for debugging

any suggestions will be well appreciated

thanks in advance
malay halder
*|

Mime
View raw message