NetBSD Problem Report #24720

Received: (qmail 14368 invoked by uid 605); 9 Mar 2004 17:49:13 -0000
Message-Id: <20040309174910.B832511156@narn.netbsd.org>
Date: Tue,  9 Mar 2004 17:49:10 +0000 (UTC)
From: neil.hoggarth@physiol.ox.ac.uk
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: neil.hoggarth@physiol.ox.ac.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: devel/apr package does not build on Solaris
X-Send-Pr-Version: www-1.0

>Number:         24720
>Category:       pkg
>Synopsis:       devel/apr package does not build on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 09 17:50:00 +0000 2004
>Closed-Date:    Tue Mar 09 19:34:57 +0000 2004
>Last-Modified:  Thu Jun 17 14:25:01 +0000 2004
>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:
State-Changed-From-To: open->closed 
State-Changed-By: snj 
State-Changed-When: Tue Mar 9 19:34:35 UTC 2004 
State-Changed-Why:  
Committed.  Thanks for the PR! 

From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/24720 CVS commit: pkgsrc/devel/apr
Date: Tue,  9 Mar 2004 19:34:14 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	snj
 Date:		Tue Mar  9 19:34:14 UTC 2004

 Modified Files:
 	pkgsrc/devel/apr: Makefile

 Log Message:
 Add LDFLAGS.SunOS+=-lnsl.  From gavan@ on tech-pkg.  Closes PR pkg/24720.


 To generate a diff of this commit:
 cvs rdiff -r1.15 -r1.16 pkgsrc/devel/apr/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: grant beattie <grant@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/24720 CVS commit: pkgsrc/databases/db4
Date: Thu, 17 Jun 2004 14:24:32 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	grant
 Date:		Thu Jun 17 14:24:32 UTC 2004

 Modified Files:
 	pkgsrc/databases/db4: Makefile

 Log Message:
 link libdb4 against libnsl on Solaris so programs that use it can
 resolve all symbols. bump PKGREVISION.

 fixes PR pkg/24720.


 To generate a diff of this commit:
 cvs rdiff -r1.18 -r1.19 pkgsrc/databases/db4/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.