Subject: pkg/24720: devel/apr package does not build on Solaris
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <neil.hoggarth@physiol.ox.ac.uk>
List: netbsd-bugs
Date: 03/09/2004 17:49:10
>Number: 24720
>Category: pkg
>Synopsis: devel/apr package does not build on Solaris
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 09 17:50:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Neil Hoggarth
>Release: Solaris 9
>Organization:
University Laboratory of Physiology, Oxford
>Environment:
SunOS willis 5.9 Generic_112233-08 sun4u sparc SUNW,Sun-Blade-1000
>Description:
I'm using NetBSD pkgsrc on Solaris 9. apr-0.9.5.2.0.48nb1 (the package
for Apache Portable Runtime) does not build for me.
A problem occurs during the configure stage, when configuring in the
directory ".../work/httpd-2.0.48/srclib/apr-util". configure fails to
locate Berkeley DB support, despite the fact that I have the db4-4.2.52
package installed.
Looking at the config.log file it appears that the test program built
against the db4 library fails to link with a bunch of unresolved symbols:
configure:14099: checking for db4
configure:14162: gcc -o conftest -O -I/usr/pkg/include/db4 -I/usr/pkg/include -pthreads -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/pkg/include -L/usr/pkg conftest.c -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -ldb4 >&5
Undefined first referenced
symbol in file
clnt_sperror /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
xdr_opaque /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
xdr_u_int /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
clnt_spcreateerror /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
xdr_string /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
xdr_bytes /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
xdr_free /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
xdr_array /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
clnt_create /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
xdr_double /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
xdr_int /usr/pkgsrc/devel/apr/work/.buildlink/lib/libdb4.so
ld: fatal: Symbol referencing errors. No output written to conftest
>How-To-Repeat:
cd /usr/pkgsrc/devel/apr && bmake clean && bmake install
>Fix:
In the tech-pkg mailing list Gavan Fantom <gavan@coolfactor.org> suggested
adding:
LDFLAGS.SunOS+= -lnsl
to the package Makefile. This worked for me.
>Release-Note:
>Audit-Trail:
>Unformatted: