NetBSD Problem Report #34613

From dauphin@enst.fr  Mon Sep 25 17:53:15 2006
Return-Path: <dauphin@enst.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id AD4BB63BAB6
	for <gnats-bugs@gnats.netbsd.org>; Mon, 25 Sep 2006 17:53:15 +0000 (UTC)
Message-Id: <1159206791.22684@bi.enst.fr>
Date: Mon, 25 Sep 2006 19:53:11 +0200
From: "Gilles Dauphin" <dauphin@enst.fr>
To: "gnats bugs" <gnats-bugs@NetBSD.org>
Subject: devel/libgnome database/db4 Solaris
X-Send-Pr-Version: gtk-send-pr 0.4.5 
X-GNATS-Notify:

>Number:         34613
>Category:       pkg
>Synopsis:       devel/libgnome database/db4 Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 25 17:55:00 +0000 2006
>Closed-Date:    Thu Feb 07 14:45:10 +0000 2013
>Last-Modified:  Thu Feb 07 14:45:10 +0000 2013
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


gmake[3]: Entering directory `/pkg/obj/devel/libgnome/work/libgnome-2.16.0/libgnome'
/bin/bash ../libtool --mode=link gcc -O -I/usr/pkg/include -I/usr/include -R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o gnome-open  gnome-open.o libgnome-2.la -Wl,-R/usr/pkg/lib -pthreads -L/usr/pkg/lib -lgnomevfs-2 -lgobject-2.0 -lbonobo-2 -lbonobo-activation -lgconf-2 -lORBit-2 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -lesd -laudiofile -lm   -lpopt 
gcc -O -I/pkg/obj/devel/libgnome/work/.buildlink/include -Wl,-R/usr/pkg/lib -o .libs/gnome-open gnome-open.o -pthreads  -L/pkg/obj/devel/libgnome/work/.buildlink/lib ./.libs/libgnome-2.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libgnomevfs-2.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libxml2.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libdbus-glib-1.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libdbus-1.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libgnutls.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libz.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libtasn1.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libgcrypt.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libgpg-error.so -ldb4 /pkg/obj/devel/libgnome/work/.buildlink/lib/libbonobo-2.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libbonobo-activation.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libORBitCosNaming-2.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libgconf-2.so /pkg/obj/devel/libgnome/wor
 k/.buildlink/lib/libORBit-2.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libgobject-2.0.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libgmodule-2.0.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libgthread-2.0.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libglib-2.0.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libesd.so -lrt -lresolv -lnsl -lsocket /pkg/obj/devel/libgnome/work/.buildlink/lib/libaudiofile.so -lm /pkg/obj/devel/libgnome/work/.buildlink/lib/libpopt.so /pkg/obj/devel/libgnome/work/.buildlink/lib/libintl.so -lc -R/usr/pkg/lib -R/pkg/obj/devel/libgnome/work/.buildlink/lib
ld: fatal: library -ldb4: not found
ld: fatal: File processing errors. No output written to .libs/gnome-open
collect2: ld returned 1 exit status
gmake[3]: *** [gnome-open] Error 1



>How-To-Repeat:


bmake


>Fix:


I think the bug is in database/db4 

Maybe this patch in db4:

[root@redhot 1068] pwd
/home/cvsmywork/pkgsrc/databases/db4
[root@redhot 1069] diff -bu buildlink3.mk.orig buildlink3.mk
--- buildlink3.mk.orig  Mon Jul 10 16:00:22 2006
+++ buildlink3.mk       Mon Sep 25 19:48:52 2006
@@ -16,6 +16,11 @@
 BUILDLINK_PKGSRCDIR.db4?=      ../../databases/db4
 BUILDLINK_INCDIRS.db4?=                include/db4
 BUILDLINK_LDADD.db4=           -ldb4
+.if ${OPSYS} == "SunOS"
+BUILDLINK_LDADD.db4=           -R${LOCALBASE}/lib
+BUILDLINK_LDADD.db4+=          -L${LOCALBASE}/lib
+BUILDLINK_LDADD.db4+=          -ldb4
+.endif
 BUILDLINK_TRANSFORM+=          l:db-4:db4

 .  include "../../mk/bsd.prefs.mk"



>Release-Note:

>Audit-Trail:
From: Juan RP <juan@xtrarom.org>
To: pkgsrc-bugs@NetBSD.org
Cc: "Gilles Dauphin" <dauphin@enst.fr>
Subject: Re: pkg/34613: devel/libgnome database/db4 Solaris
Date: Mon, 25 Sep 2006 19:57:07 +0200

 On Mon, 25 Sep 2006 17:55:00 +0000 (UTC)
 "Gilles Dauphin" <dauphin@enst.fr> wrote:

 > I think the bug is in database/db4 
 > 
 > Maybe this patch in db4:
 > 
 > [root@redhot 1068] pwd
 > /home/cvsmywork/pkgsrc/databases/db4
 > [root@redhot 1069] diff -bu buildlink3.mk.orig buildlink3.mk
 > --- buildlink3.mk.orig  Mon Jul 10 16:00:22 2006
 > +++ buildlink3.mk       Mon Sep 25 19:48:52 2006
 > @@ -16,6 +16,11 @@
 >  BUILDLINK_PKGSRCDIR.db4?=      ../../databases/db4
 >  BUILDLINK_INCDIRS.db4?=                include/db4
 >  BUILDLINK_LDADD.db4=           -ldb4
 > +.if ${OPSYS} == "SunOS"
 > +BUILDLINK_LDADD.db4=           -R${LOCALBASE}/lib
 > +BUILDLINK_LDADD.db4+=          -L${LOCALBASE}/lib
 > +BUILDLINK_LDADD.db4+=          -ldb4
 > +.endif
 >  BUILDLINK_TRANSFORM+=          l:db-4:db4
 >  
 >  .  include "../../mk/bsd.prefs.mk"

 I don't think this fix is the correct way, because buildlink shouldn't
 need to look for libraries in ${LOCALBASE}/lib, there's BUILDLINK_DIR
 for that.

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: snj@netbsd.org
Responsible-Changed-When: Mon, 25 Sep 2006 22:02:13 +0000
Responsible-Changed-Why:
Solaris-specific problem.


From: john heasley <heas@shrubbery.net>
To: Juan RP <juan@xtrarom.org>
Cc: pkgsrc-bugs@NetBSD.org, Gilles Dauphin <dauphin@enst.fr>
Subject: Re: pkg/34613: devel/libgnome database/db4 Solaris
Date: Mon, 25 Sep 2006 22:19:09 -0700

 Mon, Sep 25, 2006 at 07:57:07PM +0200, Juan RP:
 > On Mon, 25 Sep 2006 17:55:00 +0000 (UTC)
 > "Gilles Dauphin" <dauphin@enst.fr> wrote:
 > 
 > > I think the bug is in database/db4 
 > > 
 > > Maybe this patch in db4:
 > > 
 > > [root@redhot 1068] pwd
 > > /home/cvsmywork/pkgsrc/databases/db4
 > > [root@redhot 1069] diff -bu buildlink3.mk.orig buildlink3.mk
 > > --- buildlink3.mk.orig  Mon Jul 10 16:00:22 2006
 > > +++ buildlink3.mk       Mon Sep 25 19:48:52 2006
 > > @@ -16,6 +16,11 @@
 > >  BUILDLINK_PKGSRCDIR.db4?=      ../../databases/db4
 > >  BUILDLINK_INCDIRS.db4?=                include/db4
 > >  BUILDLINK_LDADD.db4=           -ldb4
 > > +.if ${OPSYS} == "SunOS"
 > > +BUILDLINK_LDADD.db4=           -R${LOCALBASE}/lib
 > > +BUILDLINK_LDADD.db4+=          -L${LOCALBASE}/lib
 > > +BUILDLINK_LDADD.db4+=          -ldb4
 > > +.endif
 > >  BUILDLINK_TRANSFORM+=          l:db-4:db4
 > >  
 > >  .  include "../../mk/bsd.prefs.mk"
 > 
 > I don't think this fix is the correct way, because buildlink shouldn't
 > need to look for libraries in ${LOCALBASE}/lib, there's BUILDLINK_DIR
 > for that.

 This made it work for me (Solaris 9); with no change to databases/db4:

 cvs diff: Diffing devel/libgnome
 Index: devel/libgnome/Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/devel/libgnome/Makefile,v
 retrieving revision 1.60
 diff -r1.60 Makefile
 67a68
 > .include "../../databases/db4/buildlink3.mk"

From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: juan@xtrarom.org, heas@shrubbery.net
Cc: solaris-pkg-people@NetBSD.org, pkg-manager@NetBSD.org,
	gnats-admin@NetBSD.org, snj@NetBSD.org
Subject: Re: pkg/34613: devel/libgnome database/db4 Solaris
Date: Tue, 26 Sep 2006 11:22:30 +0200 (CEST)

 > From: john heasley <heas@shrubbery.net>
 > 
 > Mon, Sep 25, 2006 at 07:57:07PM +0200, Juan RP:
 > > On Mon, 25 Sep 2006 17:55:00 +0000 (UTC)
 > > "Gilles Dauphin" <dauphin@enst.fr> wrote:
 > > 
 > > > I think the bug is in database/db4 
 > > > 
 > > > Maybe this patch in db4:
 > > > 
 > > > [root@redhot 1068] pwd
 > > > /home/cvsmywork/pkgsrc/databases/db4
 > > > [root@redhot 1069] diff -bu buildlink3.mk.orig buildlink3.mk
 > > > --- buildlink3.mk.orig  Mon Jul 10 16:00:22 2006
 > > > +++ buildlink3.mk       Mon Sep 25 19:48:52 2006
 > > > @@ -16,6 +16,11 @@
 > > >  BUILDLINK_PKGSRCDIR.db4?=      ../../databases/db4
 > > >  BUILDLINK_INCDIRS.db4?=                include/db4
 > > >  BUILDLINK_LDADD.db4=           -ldb4
 > > > +.if ${OPSYS} == "SunOS"
 > > > +BUILDLINK_LDADD.db4=           -R${LOCALBASE}/lib
 > > > +BUILDLINK_LDADD.db4+=          -L${LOCALBASE}/lib
 > > > +BUILDLINK_LDADD.db4+=          -ldb4
 > > > +.endif
 > > >  BUILDLINK_TRANSFORM+=          l:db-4:db4
 > > >  
 > > >  .  include "../../mk/bsd.prefs.mk"
 > > 
 > > I don't think this fix is the correct way, because buildlink shouldn't
 > > need to look for libraries in ${LOCALBASE}/lib, there's BUILDLINK_DIR
 > > for that.
 > 
 > This made it work for me (Solaris 9); with no change to databases/db4:

 Did you set some LD_LIBRARY_PATH or LD_* variables in your shell?
 Please let me know.

 Gilles

From: john heasley <heas@shrubbery.net>
To: Gilles Dauphin <Gilles.Dauphin@enst.fr>
Cc: juan@xtrarom.org, heas@shrubbery.net,
	solaris-pkg-people@NetBSD.org, pkg-manager@NetBSD.org,
	gnats-admin@NetBSD.org, snj@NetBSD.org
Subject: Re: pkg/34613: devel/libgnome database/db4 Solaris
Date: Tue, 26 Sep 2006 10:02:54 +0000

 Tue, Sep 26, 2006 at 11:22:30AM +0200, Gilles Dauphin:
 > Did you set some LD_LIBRARY_PATH or LD_* variables in your shell?
 > Please let me know.

 no, I do not set any LD* variables.  This is a gcc 4.1 with a wrapper
 that forces 64-bit, but it otherwise plain.

From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: juan@xtrarom.org, heas@shrubbery.net
Cc: solaris-pkg-people@NetBSD.org, pkg-manager@NetBSD.org,
	gnats-admin@NetBSD.org, snj@NetBSD.org
Subject: Re: pkg/34613: devel/libgnome database/db4 Solaris
Date: Tue, 26 Sep 2006 12:06:20 +0200 (CEST)

 > > 
 > > This made it work for me (Solaris 9); with no change to databases/db4:
 > 
 > Did you set some LD_LIBRARY_PATH or LD_* variables in your shell?
 > Please let me know.

 Ok maybe I found,
 I add db4 in dependency for libgnome/Makefile:
 --- Makefile.orig       Tue Sep 19 11:38:45 2006
 +++ Makefile    Tue Sep 26 11:47:35 2006
 @@ -65,4 +65,5 @@
  .include "../../sysutils/gnome-vfs2/buildlink3.mk"
  .include "../../textproc/libxml2/buildlink3.mk"
  .include "../../textproc/libxslt/buildlink3.mk"
 +.include "../../databases/db4/buildlink3.mk"
  .include "../../mk/bsd.pkg.mk"


 and know i found such variable in libgnome/work/.*_makevars*

 .build_makevars.mk:BUILDLINK_PREFIX.db4=        /usr/pkg
 .build_makevars.mk:_BLNK_PKG_DBDIR.db4= /var/db/pkg/db4-4.4.20

 That was not the case before.

 I tested and works now without change in db4.
 Gilles


State-Changed-From-To: open->closed
State-Changed-By: jperkin@NetBSD.org
State-Changed-When: Thu, 07 Feb 2013 14:45:10 +0000
State-Changed-Why:
This does not appear to still be an issue.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.