Bug 86464 - db(3/4) libraries are not linked in misc/libhome port
Summary: db(3/4) libraries are not linked in misc/libhome port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 16:10 UTC by Piotr Rybicki
Modified: 2005-09-26 21:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Rybicki 2005-09-22 16:10:06 UTC
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)
Comment 1 Marcus Alves Grando freebsd_committer freebsd_triage 2005-09-23 17:20:14 UTC
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
Comment 2 Marcus Alves Grando freebsd_committer freebsd_triage 2005-09-23 17:20:28 UTC
State Changed
From-To: open->feedback

Ask maintainer for approval.
Comment 3 Xavier Beaudouin 2005-09-23 20:28:43 UTC
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=
Comment 4 Marcus Alves Grando freebsd_committer freebsd_triage 2005-09-23 21:26:06 UTC
State Changed
From-To: feedback->open

Feedback received
Comment 5 Marcus Alves Grando freebsd_committer freebsd_triage 2005-09-24 15:12:44 UTC
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
Comment 6 Marcus Alves Grando freebsd_committer freebsd_triage 2005-09-24 21:56:48 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 7 Piotr Rybicki 2005-09-26 21:44:47 UTC
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