Subject: pkg/15159: librep build breaks on gdbm
To: None <gnats-bugs@gnats.netbsd.org>
From: James K. Lowden <jklowden@schemamania.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     James K. Lowden
>Release:        pkgsrc tree as of 1/6/2002
>Organization:
One person, always seeking to be better organized. 
>Environment:
	<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

>Description:
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
Makefile.  

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

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

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

Files:
/usr/pkg/include/gdbm.h
/usr/pkg/info/gdbm.info
/usr/pkg/lib/libgdbm.a
/usr/pkg/lib/libgdbm.la
/usr/pkg/lib/libgdbm.so
/usr/pkg/lib/libgdbm.so.2
/usr/pkg/lib/libgdbm.so.2.0
/usr/pkg/man/man3/gdbm.3

===> 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

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: