You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by st...@bundesbank.de on 2006/05/15 11:06:35 UTC

[users@httpd] Apache 2.2.2 / Berkeley DB 4.3.29 configuration issue on Solaris 10 (sparc)

Hello list,

while trying to set up Subversion from scratch i ran into some sort of 
problem ...

System is a Sun V240, running Solaris 10.
I tried to compile Berkeley DB (4.3.29), Apache (2.2.2) and Subversion 
(1.3.1) with gcc as provided by Sun (not the packages from sunfreeware), 
this is 
gcc's output:

bash-3.00# gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: 
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure 
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ 
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

Berkeley DB was configured with the following settings:

../dist/configure --prefix=/usr/local --enable-cxx -enable-compat185 
--enable-rpc

and compiled/installed without any problems.

Configuration of Apache

./configure --enable-so --enable-mods-shared=most --with-ldap=yes 
--with-ldap-include=/usr/include --with-ldap-lib=/usr/lib
--with-suexec-caller=webservd --enable-authnz-ldap=yes --enable-ldap=yes 
--enable-ssl --with-dbm=db43 --with-berkeley-db=/usr/local

failed with this message:

checking for Berkeley DB 4.3 in /usr/local...
[...]
checking for db.h... yes
checking for -ldb... no
configure: error: Berkeley db4 not found
configure failed for srclib/apr-util

I then had a look at srclib/apr-util/config.log:

configure:24542: checking for db.h
configure:24549: result: yes
configure:24565: checking for -ldb-4.3
configure:24631: gcc -o conftest  -g -O2  -DSOLARIS2=10 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE -I/usr/local/include  -L/usr/local/lib conftest.c 
-ldb-4.3 >&5
Undefined                       first referenced
 symbol                             in file
xdr_double                          /usr/local/lib/libdb-4.3.so
clnt_create                         /usr/local/lib/libdb-4.3.so
xdr_opaque                          /usr/local/lib/libdb-4.3.so
clnt_spcreateerror                  /usr/local/lib/libdb-4.3.so
xdr_string                          /usr/local/lib/libdb-4.3.so
xdr_array                           /usr/local/lib/libdb-4.3.so
xdr_bytes                           /usr/local/lib/libdb-4.3.so
xdr_u_int                           /usr/local/lib/libdb-4.3.so
xdr_free                            /usr/local/lib/libdb-4.3.so
clnt_sperror                        /usr/local/lib/libdb-4.3.so
xdr_int                             /usr/local/lib/libdb-4.3.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:24634: $? = 1
configure: program exited with status 1

After searching the net for a while i found a reference (otherwise 
unrelated to this problem) about a library called 'libnsl' which is needed 
for some socket-related stuff.

Added a LDFLAGS="-lnsl" and the rerun of Apache's configure script was 
successful.
For verification i compiled Berkeley DB with '--disable-rpc' and the 
problem didn't occur.

Anybody else out there who experienced this sort of trouble - and is it a 
bug or a feature?!

Regards,

Steffen Elste


--  
Diese E-Mail enthalt vertrauliche und/oder rechtlich geschutzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtumlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail oder von Teilen dieser Mail ist nicht gestattet.

Wir haben alle verkehrsublichen Ma?nahmen unternommen, um das Risiko der Verbreitung virenbefallener Software oder E-Mails zu minimieren, dennoch raten wir Ihnen, Ihre eigenen Virenkontrollen auf alle Anhange an dieser Nachricht durchzufuhren. Wir schlie?en au?er fur den Fall von Vorsatz oder grober Fahrlassigkeit die Haftung fur jeglichen Verlust oder Schaden durch virenbefallene Software oder E-Mails aus.

Jede von der Bank versendete E-Mail ist sorgfaltig erstellt worden, dennoch schlie?en wir die rechtliche Verbindlichkeit aus; sie kann nicht zu einer irgendwie gearteten Verpflichtung zu Lasten der Bank ausgelegt werden.
______________________________________________________________________

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of  the material in this e-mail or of parts hereof is strictly forbidden.

We have taken precautions to minimize the risk of transmitting software viruses but nevertheless advise you to carry out your own virus checks on any attachment of this message. We accept no liability for loss or damage caused by software viruses except in case of gross negligence or willful behaviour.

Any e-mail messages from the Bank are sent in good faith, but shall not be binding or construed as constituting any kind of obligation on the part of the Bank.