httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Steinmetz <...@domdv.de>
Subject Re: Compiling Apache-2.1.6-alpha error on SLES9 x86_64
Date Tue, 23 Aug 2005 14:40:07 GMT
Hu, Xuekun wrote:
> I couldn't successfully compile Apache (2.1.6-alpha) with SLES9
> (2.6.5-7.97-smp, 64bit). 
> 
> The error is:
> ...-lrt -lcrypt  -lpthread -ldl  -lgdbm -ldb-4.2 /usr/lib/libexpat.la
> /root/huxuekun/httpd-2.1.6-alpha/srclib/apr/libapr-1.la -lrt -lcrypt
> -lpthread -ldl
> /usr/lib/libexpat.so: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[3]: *** [libaprutil-1.la] Error 1
> make[3]: Leaving directory
> `/root/huxuekun/httpd-2.1.6-alpha/srclib/apr-util'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/root/huxuekun/httpd-2.1.6-alpha/srclib/apr-util'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/huxuekun/httpd-2.1.6-alpha/srclib'
> make: *** [all-recursive] Error 1  
> 
> Since this is 64 bit, libexpat.la should be reference to /usr/lib64
> instead of /usr/lib. 

Attached is a patch against apr-util that solves the problem without
touching the defaults. It allows building against expat residing in
lib64 for 64bit installations by specifying "--enable-lib64" to
configure as well as expat residing in lib for 32bit installations.

The neat thing is that "--enable-lib64" is generic and its value can be
reused whereever the same problem arises.
-- 
Andreas Steinmetz                       SPAMmers use robotrap@domdv.de

Mime
View raw message