Subject: Re: librep build breaks on gdbm
To: James K. Lowden <jklowden@schemamania.org>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 01/06/2002 14:35:35
On Sun, 6 Jan 2002, James K. Lowden wrote:

> The librep build appears to want to use libtool with "gdbm", but
> gdbm-1.8.0 has names like "libgdbm.*".  Is this an error in the
> librep Makefile?

`-lgdm' on the linker command line means "look for files named
`libgdm.so', `libgdm.a' in the linker's path", so that's not the
error...

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

The error seems to be that there's no `-L${BUILDLINK_DIR}/lib on the
command line. I'll take a look at the package.

> /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
>
> Stop.
> *** Error code 1


Frederick