Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Sep 2005 15:02:11 GMT
From:      Piotr Rybicki <merius@innervision.pl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/86464: db(3/4) libraries are not linked in misc/libhome port
Message-ID:  <200509221502.j8MF2BWm054500@www.freebsd.org>
Resent-Message-ID: <200509221510.j8MFA6a1015732@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509221502.j8MF2BWm054500>