Subject: pkg/15159: librep build breaks on gdbm
To: None <>
From: James K. Lowden <>
List: netbsd-bugs
Date: 01/06/2002 23:28:37
>Number:         15159
>Category:       pkg
>Synopsis:       "cc -o repdoc repdoc.o -lgdbm" says "ld: cannot open -lgdbm"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 06 20:29:01 PST 2002
>Originator:     James K. Lowden
>Release:        pkgsrc tree as of 1/6/2002
One person, always seeking to be better organized. 
	<i386, NetBSD 1.5, libraries are: librep and gdbm
System: NetBSD lowden 1.5 NetBSD 1.5 (GENERIC) #1: Sun Nov 19 21:42:11 MET 2000 fvdl@sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC i386

Trying to build Galeon, stumbling at librep. The
librep build tries to link to gdbm, but fails to find the gdbm library
(even though it's installed).  

Frederick Bruckman was unable to reproduce the problem using
1.5.3_ALPHA.  He suspects that the "-L" flags are only being added
conditionally on "-lintl" being needed, and either that isn't needed
on my system, or its need isn't being properly detected.  

I have been unable to work around the problem by changing the

I believe my pkgsrc tree is up to date; I recently placed sup in my

(15	6 * * *	/usr/sbin/sup -s -v 2>&1 |tee /var/log/sup.out |sendmail -t)

# cd /usr/pkgsrc/lang/librep
# pkg_info -L gdbm; make
Information for gdbm-1.8.0:


===> Building for librep-0.15.1
( cd src && /usr/pkg/bin/gmake repdoc )
gmake[1]: Entering directory `/usr/pkgsrc/lang/librep/work/librep-0.15.1/src'
/bin/sh ../libtool --mode=link cc  -o repdoc repdoc.o -lgdbm
cc -o repdoc repdoc.o  -lgdbm
/usr/bin/ld: cannot open -lgdbm: No such file or directory
collect2: ld returned 1 exit status
gmake[1]: *** [repdoc] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/lang/librep/work/librep-0.15.1/src'
gmake: *** [src/repdoc] Error 2
*** Error code 2