From nobody@FreeBSD.org  Thu Sep 22 15:02:12 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BE5F616A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Sep 2005 15:02:12 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD9343D45
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Sep 2005 15:02:12 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j8MF2BNg054516
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Sep 2005 15:02:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j8MF2BWm054500;
	Thu, 22 Sep 2005 15:02:11 GMT
	(envelope-from nobody)
Message-Id: <200509221502.j8MF2BWm054500@www.freebsd.org>
Date: Thu, 22 Sep 2005 15:02:11 GMT
From: Piotr Rybicki <merius@innervision.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: db(3/4) libraries are not linked in misc/libhome port
X-Send-Pr-Version: www-2.3

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 22 15:10:06 GMT 2005
>Closed-Date:    Sat Sep 24 20:56:50 GMT 2005
>Last-Modified:  Mon Sep 26 20:50:12 GMT 2005
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: mnag 
State-Changed-When: Fri Sep 23 16:20:28 GMT 2005 
State-Changed-Why:  
Ask maintainer for approval. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86464 

From: Marcus Alves Grando <mnag@FreeBSD.org>
To: bug-followup@FreeBSD.org,  kiwi@oav.net
Cc:  
Subject: Re: ports/86464: db(3/4) libraries are not linked in misc/libhome
 port
Date: Fri, 23 Sep 2005 13:20:14 -0300

 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

From: Xavier Beaudouin <kiwi@oav.net>
To: Marcus Alves Grando <mnag@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/86464: db(3/4) libraries are not linked in misc/libhome port
Date: Fri, 23 Sep 2005 21:28:43 +0200

 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 
State-Changed-By: mnag 
State-Changed-When: Fri Sep 23 20:26:06 GMT 2005 
State-Changed-Why:  
Feedback received 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86464 

From: Marcus Alves Grando <mnag@FreeBSD.org>
To: bug-followup@FreeBSD.org,  merius@innervision.pl
Cc:  
Subject: Re: ports/86464: db(3/4) libraries are not linked in misc/libhome
 port
Date: Sat, 24 Sep 2005 11:12:44 -0300

 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 
State-Changed-By: mnag 
State-Changed-When: Sat Sep 24 20:56:48 GMT 2005 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86464 

From: Piotr Rybicki <meritus@innervision.pl>
To: bug-followup@FreeBSD.org,  meritus@innervision.pl
Cc:  
Subject: Re: ports/86464: db(3/4) libraries are not linked in misc/libhome
 port
Date: Mon, 26 Sep 2005 22:44:47 +0200

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