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. Fix: Apply this patch (i'tried to fix newlines in html form): .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--Qiisy5TNxqV5llasys6SFCdVO0lgPEXRubziPVmzSmH49syz Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- ./Makefile Thu Sep 22 16:47:22 2005 +++ /tmp/Makefile Thu Sep 22 16:45:27 2005 @@ -49,14 +49,14 @@ How-To-Repeat: cd /usr/ports/misc/libhome make (choose either DB3 or DB4 support)
Dear maintainer, Do you approve this pr? http://www.freebsd.org/cgi/query-pr.cgi?pr=86464 Thanks -- Marcus Alves Grando Grupos Internet S/A marcus(at)corp.grupos.com.br mnag(at)FreeBSD.org
State Changed From-To: open->feedback Ask maintainer for approval.
Le 23 sept. 05 =E0 18:20, Marcus Alves Grando a =E9crit : > Dear maintainer, > > Do you approve this pr? I approve this PR (strange because on my machines I didn't have such problems... ?) with the following change in : --with-db-libdir=3D/usr/local/lib should'nt be remplaced with : --with-db-libdir=3D${LOCALBASE}/lib isn't it ? /Xavier=
State Changed From-To: feedback->open Feedback received
Dear submitter, I can't reproduce that too. Have more informations about that? maybe config.log Thanks -- Marcus Alves Grando Grupos Internet S/A marcus(at)corp.grupos.com.br mnag(at)FreeBSD.org
State Changed From-To: open->closed Committed. Thanks!
Hi. I don't know that's Your libs config, but default, fresh FreeBSD 5.4-R have this problem. Here is config.log http://www.innervision.pl/_files/pr-86464-config.log Anyway, an improved version (${LOCALBASE}/lib) of patch solves this problem Thanks. Best Regards Piotr Rybicki