ports/86464: db(3/4) libraries are not linked in misc/libhome port
Piotr Rybicki
merius at innervision.pl
Thu Sep 22 15:10:07 UTC 2005
>Number: 86464
>Category: ports
>Synopsis: db(3/4) libraries are not linked in misc/libhome port
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 22 15:10:06 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Piotr Rybicki
>Release: 5.4
>Organization:
Innervision
>Environment:
freebsd# uname -a
FreeBSD freebsd.cadera.local.pl 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
When building /usr/ports/misc/libhome port and having selected either DB3 or DB4 support, there is an error when library is being linked.
make output:
(...)
./libtool --mode=link cc -O -pipe -o home_finger -Icompat -lcrypt home_finger.c libhome.la
cc -O -pipe -o .libs/home_finger -Icompat home_finger.c ./.libs/libhome.so -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm -Wl,--rpath -Wl,/usr/local/lib
./.libs/libhome.so: undefined reference to `db_create'
./.libs/libhome.so: undefined reference to `db_env_create'
./.libs/libhome.so: undefined reference to `db_strerror'
*** Error code 1
Stop in /usr/ports/misc/libhome/work/libhome-0.10.1.
*** Error code 1
Stop in /usr/ports/misc/libhome.
>How-To-Repeat:
cd /usr/ports/misc/libhome
make (choose either DB3 or DB4 support)
>Fix:
Apply this patch (i'tried to fix newlines in html form):
--- ./Makefile Thu Sep 22 16:47:22 2005
+++ /tmp/Makefile Thu Sep 22 16:45:27 2005
@@ -49,14 +49,14 @@
.if !defined(WITHOUT_DB3)
LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
-CONFIGURE_ARGS+= --with-db3=${LOCALBASE}/include/db3 --without-db4
+CONFIGURE_ARGS+= --with-db3=${LOCALBASE}/include/db3 --without-db4 --with-db-libdir=/usr/local/lib
.else
CONFIGURE_ARGS+= --without-db3
.endif
.if defined(WITH_DB4)
LIB_DEPENDS+= db4:${PORTSDIR}/databases/db4
-CONFIGURE_ARGS+= --with-db4=${LOCALBASE}/include/db4 --without-db3
+CONFIGURE_ARGS+= --with-db4=${LOCALBASE}/include/db4 --without-db3 --with-db-libdir=/usr/local/lib
.else
CONFIGURE_ARGS+= --without-db4
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list