NetBSD Problem Report #17359

Received: (qmail 951 invoked by uid 605); 22 Jun 2002 06:34:47 -0000
Message-Id: <20020622063521.6E77D32FF6@ironic.cynic.net>
Date: Sat, 22 Jun 2002 15:35:21 +0900 (JST)
From: cjs@cynic.net
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: xamp doesn't build
X-Send-Pr-Version: 3.95

>Number:         17359
>Category:       pkg
>Synopsis:       xamp doesn't build
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 22 06:35:00 +0000 2002
>Closed-Date:    Sun Jun 30 16:16:01 +0000 2002
>Last-Modified:  Sun Jun 30 22:31:00 +0000 2002
>Originator:     Curt Sampson
>Release:        pkgsrc of about 2002-06-22
>Organization:
>Environment:
System: NetBSD ironic.cynic.net 1.6A NetBSD 1.6A (IRONIC-$Revision: 1.2 $) #2: Tue Jun 11 02:18:49 JST 2002 cjs@ironic.cynic.net:/u/netbsd/src/sys/arch/i386/compile/IRONIC i386
Architecture: i386
Machine: i386
>Description:
    ===> Building for xamp-0.8.10
    c++ -I.. -I/usr/pkg/qt1/include qembed.cpp -o qembed  -L/usr/pkg/qt1/lib -lm -lqt -Wl,-R/usr/X11R6/qt1/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lX11 -lXext
    cd pixmaps ; make
    ../qembed pixmaps.h pixmaps.c *.bmp
    Shared object "libqt.so.1" not found
>How-To-Repeat:
    cd /usr/pkgsrc/audio/xamp && make
>Fix:
>Release-Note:
>Audit-Trail:

From: Jan Schaumann <jschauma@cs.stevens-tech.edu>
To: cjs@cynic.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/17359
Date: Mon, 24 Jun 2002 10:23:21 -0400

 Hi,

 >>Description:
 >    ===> Building for xamp-0.8.10
 >    c++ -I.. -I/usr/pkg/qt1/include qembed.cpp -o qembed \
 >     -L/usr/pkg/qt1/lib -lm -lqt -Wl,-R/usr/X11R6/qt1/lib -L/usr/X11R6/lib \
 >     -Wl,-R/usr/X11R6/lib -lX1
 >    cd pixmaps ; make
 >    ../qembed pixmaps.h pixmaps.c *.bmp
 >    Shared object "libqt.so.1" not found

 Well, _do_ you have libqt.so.1 somewhere (probably /usr/X11R6/qt1/lib or
 /usr/pkg/qt1/lib)?

 I reckon ldconfig should resolve the path, but have you tried adding the
 path to your LD_LIBRARY_PATH or /etc/ld.so.conf - just so we can figure
 out if it's working that way?

 -Jan

From: Curt Sampson <cjs@cynic.net>
To: Jan Schaumann <jschauma@cs.stevens-tech.edu>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/17359
Date: Wed, 26 Jun 2002 16:37:06 +0900 (JST)

 This actually may have been due to problems related to switching
 between XFree86 4.1.0 and 4.2.0. Both appear to have this library,
 but something's odd with the 4.1.0 setup, I guess. Unfortunately,
 I'm way to busy to track this down, so I'll just stick with 4.2.0
 and leave it at that....

 cjs
 -- 
 Curt Sampson  <cjs@cynic.net>   +81 90 7737 2974   http://www.netbsd.org
     Don't you know, in this new Dark Age, we're all light.  --XTC


From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: packages@netbsd.org
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 11:40:49 -0400

 Yesterday I built xamp myself and encountered the same problem.  Adding
 /usr/pkg/qt1/lib to my /etc/ld.so.conf fixed the problem.  IF you don't
 use xpkgwedge, it's gonna be /usr/X11R6/qt1/lib, most likely.

 Should devel/qt1 contain the information regarding LD_LIBRARY_PATH
 and/or /etc/ld.so.conf in it's MESSAGE?

 If there's no objection, I'll close this PR.

 -Jan

 -- 
 begin  OESUX.txt.vbs
 This is not an attachment.
 end

From: Kimmo Suominen <kim@tac.nyc.ny.us>
To: Jan Schaumann <jschauma@netbsd.org>
Cc: gnats-bugs@netbsd.org, packages@netbsd.org
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 11:43:39 -0400

 Shouldn't it be fixed to include the correct -R argument to ld when
 linking xamp?

 + Kim


 | From:    Jan Schaumann <jschauma@netbsd.org>
 | Date:    Sun, 30 Jun 2002 11:40:49 -0400
 |
 | Yesterday I built xamp myself and encountered the same problem.  Adding
 | /usr/pkg/qt1/lib to my /etc/ld.so.conf fixed the problem.  IF you don't
 | use xpkgwedge, it's gonna be /usr/X11R6/qt1/lib, most likely.
 |
 | Should devel/qt1 contain the information regarding LD_LIBRARY_PATH
 | and/or /etc/ld.so.conf in it's MESSAGE?
 |
 | If there's no objection, I'll close this PR.
 |
 | -Jan
 |
 | --
 | begin  OESUX.txt.vbs
 | This is not an attachment.
 | end
 |

From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
To: Jan Schaumann <jschauma@netbsd.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 17:44:08 +0200

 On Sun, Jun 30, 2002 at 03:41:06PM -0000, Jan Schaumann wrote:
 >  Yesterday I built xamp myself and encountered the same problem.  Adding
 >  /usr/pkg/qt1/lib to my /etc/ld.so.conf fixed the problem.  IF you don't
 >  use xpkgwedge, it's gonna be /usr/X11R6/qt1/lib, most likely.
 >  
 >  Should devel/qt1 contain the information regarding LD_LIBRARY_PATH
 >  and/or /etc/ld.so.conf in it's MESSAGE?

 The correct way is that -Wl,-R${PREFIX}/qt1/lib is added in the right
 places.

 Bye,
  Thomas

 -- 
 Thomas Klausner - wiz@danbala.tuwien.ac.at
 Intolerance is the last defense of the insecure.

From: Jan Schaumann <jschauma@netbsd.org>
To: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
Cc: Jan Schaumann <jschauma@netbsd.org>, gnats-bugs@netbsd.org
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 12:12:33 -0400

 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at> wrote:
 > On Sun, Jun 30, 2002 at 03:41:06PM -0000, Jan Schaumann wrote:
 > >  Yesterday I built xamp myself and encountered the same problem.  Adding
 > >  /usr/pkg/qt1/lib to my /etc/ld.so.conf fixed the problem.  IF you don't
 > >  use xpkgwedge, it's gonna be /usr/X11R6/qt1/lib, most likely.
 > >  
 > >  Should devel/qt1 contain the information regarding LD_LIBRARY_PATH
 > >  and/or /etc/ld.so.conf in it's MESSAGE?
 > 
 > The correct way is that -Wl,-R${PREFIX}/qt1/lib is added in the right
 > places.

 Which appears to be audio/xamp/patches/patch-ae and has already been
 fixed by agc on 06/28 ... d'uh.  (though he added
 "-Wl,-R${QT1DIR}/qt1/lib)

 Either way, that PR should be closed.

 -Jan

 -- 
 http://usvms.gpo.gov/findings_index.html
State-Changed-From-To: open->closed 
State-Changed-By: jschauma 
State-Changed-When: Sun Jun 30 09:15:07 PDT 2002 
State-Changed-Why:  

agc already made the necessary changes two days ago.  Please 
update your pkgsrc. 


From: "Johnny C. Lam" <jlam@netbsd.org>
To: Kimmo Suominen <kim@tac.nyc.ny.us>
Cc: Jan Schaumann <jschauma@netbsd.org>, gnats-bugs@netbsd.org,
  packages@netbsd.org
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 10:34:06 -0700

 On Sun, Jun 30, 2002 at 11:43:39AM -0400, Kimmo Suominen wrote:
 > Shouldn't it be fixed to include the correct -R argument to ld when
 > linking xamp?

 Yes, that is the correct way to fix this.  It's probably easiest to put

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

 .if ${_USE_RPATH} == "yes"
 LDFLAGS+=	-Wl,-R${QT1DIR}/qt1/lib
 .endif

 in the xamp Makefile.  Could you please test this fix, Jan?

 	Thanks,

 	-- Johnny Lam <jlam@netbsd.org>

From: Jan Schaumann <jschauma@netbsd.org>
To: "Johnny C. Lam" <jlam@netbsd.org>
Cc: gnats-bugs@netbsd.org, packages@netbsd.org
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 13:38:07 -0400

 "Johnny C. Lam" <jlam@netbsd.org> wrote:
 > On Sun, Jun 30, 2002 at 11:43:39AM -0400, Kimmo Suominen wrote:
 > > Shouldn't it be fixed to include the correct -R argument to ld when
 > > linking xamp?
 > 
 > Yes, that is the correct way to fix this.  It's probably easiest to put
 > 
 > .include "../../mk/bsd.prefs.mk"
 > 
 > .if ${_USE_RPATH} == "yes"
 > LDFLAGS+=	-Wl,-R${QT1DIR}/qt1/lib
 > .endif
 > 
 > in the xamp Makefile.  Could you please test this fix, Jan?

 Is this preferrable to agc's solution of supplying these flags in the
 according patch?

 IOW, is it, in general, preferrable to stick things like this in the
 main Makefile or into patches to only use where needed?

 -Jan

 -- 
 DON'T PANIC!

From: Alistair Crooks <agc@wasabisystems.com>
To: "Johnny C. Lam" <jlam@netbsd.org>, gnats-bugs@netbsd.org,
  packages@netbsd.org
Cc:  
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 19:57:28 +0200

 On Sun, Jun 30, 2002 at 01:38:07PM -0400, Jan Schaumann wrote:
 > "Johnny C. Lam" <jlam@netbsd.org> wrote:
 > > On Sun, Jun 30, 2002 at 11:43:39AM -0400, Kimmo Suominen wrote:
 > > > Shouldn't it be fixed to include the correct -R argument to ld when
 > > > linking xamp?
 > > 
 > > Yes, that is the correct way to fix this.  It's probably easiest to put
 > > 
 > > .include "../../mk/bsd.prefs.mk"
 > > 
 > > .if ${_USE_RPATH} == "yes"
 > > LDFLAGS+=	-Wl,-R${QT1DIR}/qt1/lib
 > > .endif
 > > 
 > > in the xamp Makefile.  Could you please test this fix, Jan?
 > 
 > Is this preferrable to agc's solution of supplying these flags in the
 > according patch?

 I can't recall ever saying anything like that, and I would have to doubt
 my sanity if I did.

 > IOW, is it, in general, preferrable to stick things like this in the
 > main Makefile or into patches to only use where needed?

 Use things which are easiest to maintain. This usually means least
 intrusive. In the above case, _USE_RPATH and QT1DIR are used from
 the main build mechanisms. If you were to put that in a patch, you
 would need to modify the package Makefile to pass these values down
 through the environment.  If you are going to do that, you would
 be better to just modify the package Makefile.

 Regards,
 Alistair

From: Jan Schaumann <jschauma@netbsd.org>
To: Alistair Crooks <agc@wasabisystems.com>
Cc: "Johnny C. Lam" <jlam@netbsd.org>, gnats-bugs@netbsd.org,
  packages@netbsd.org
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 14:14:05 -0400

 Alistair Crooks <agc@wasabisystems.com> wrote:
 > On Sun, Jun 30, 2002 at 01:38:07PM -0400, Jan Schaumann wrote:

 > > Is this preferrable to agc's solution of supplying these flags in the
 > > according patch?
 > 
 > I can't recall ever saying anything like that, and I would have to doubt
 > my sanity if I did.

 Sorry, I didn't mean to imply that you said so.  I just noticed that
 you made that particular change two days ago
 (http://mail-index.netbsd.org/pkgsrc-changes/2002/06/28/0030.html).

 > > IOW, is it, in general, preferrable to stick things like this in the
 > > main Makefile or into patches to only use where needed?
 > 
 > Use things which are easiest to maintain. This usually means least
 > intrusive. In the above case, _USE_RPATH and QT1DIR are used from
 > the main build mechanisms. If you were to put that in a patch, you
 > would need to modify the package Makefile to pass these values down
 > through the environment.  If you are going to do that, you would
 > be better to just modify the package Makefile.

 So, in this case, should we include it in the Makefile or not?

 -Jan

 -- 
 Tradition is the illusion of permanence. -- Woody Allen

From: Johnny Lam <jlam@jgrind.org>
To: Alistair Crooks <agc@wasabisystems.com>, gnats-bugs@netbsd.org,
  packages@netbsd.org
Cc:  
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 14:20:31 -0700

 On Sun, Jun 30, 2002 at 02:14:05PM -0400, Jan Schaumann wrote:
 > Alistair Crooks <agc@wasabisystems.com> wrote:
 > > 
 > > Use things which are easiest to maintain. This usually means least
 > > intrusive. In the above case, _USE_RPATH and QT1DIR are used from
 > > the main build mechanisms. If you were to put that in a patch, you
 > > would need to modify the package Makefile to pass these values down
 > > through the environment.  If you are going to do that, you would
 > > be better to just modify the package Makefile.
 > 
 > So, in this case, should we include it in the Makefile or not?

 Yes, just put it in the Makefile for all of the reasons that Alistair
 listed above.

 	Cheers,

 	-- Johnny Lam <jlam@jgrind.org>

From: Jan Schaumann <jschauma@netbsd.org>
To: Johnny Lam <jlam@jgrind.org>
Cc: Alistair Crooks <agc@wasabisystems.com>, gnats-bugs@netbsd.org,
  packages@netbsd.org
Subject: Re: pkg/17359
Date: Sun, 30 Jun 2002 18:30:14 -0400

 Johnny Lam <jlam@jgrind.org> wrote:
 > On Sun, Jun 30, 2002 at 02:14:05PM -0400, Jan Schaumann wrote:
 > > Alistair Crooks <agc@wasabisystems.com> wrote:
 > > > 
 > > > Use things which are easiest to maintain. This usually means least
 > > > intrusive. In the above case, _USE_RPATH and QT1DIR are used from
 > > > the main build mechanisms. If you were to put that in a patch, you
 > > > would need to modify the package Makefile to pass these values down
 > > > through the environment.  If you are going to do that, you would
 > > > be better to just modify the package Makefile.
 > > 
 > > So, in this case, should we include it in the Makefile or not?
 > 
 > Yes, just put it in the Makefile for all of the reasons that Alistair
 > listed above.

 In this example, we are patching anyway (ie we are being intrusive).  To
 change this behaviour, we would need to (a) patch what xamp brings
 (since it's Makefile.in sets "LDFLAGS= @LDFLAGS@", which never gets
 expanded), and (b) we'd need to adjust the pkgsrc/audio/xamp/Makefile.

 I'd argue that therefore, in this instance, we leave everything as is
 (ie as agc arranged it, which is why he arranged it this way, I assume,
 to begin with).

 Sorry for beating a dead horse.

 -Jan

 -- 
 Ancient Principle of WYGIWYGAINGW:
 What You Get Is What YouŽre Given, And ItŽs No Good Whining.
 --Terry Pratchett et al. (The Science of Discworld)
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.