NetBSD Problem Report #40050

From www@NetBSD.org  Thu Nov 27 21:15:33 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id E322063BD2D
	for <gnats-bugs@gnats.netbsd.org>; Thu, 27 Nov 2008 21:15:33 +0000 (UTC)
Message-Id: <20081127211533.99D1463B8BD@narn.NetBSD.org>
Date: Thu, 27 Nov 2008 21:15:33 +0000 (UTC)
From: netbsd@jonathan-glaschke.de
Reply-To: netbsd@jonathan-glaschke.de
To: gnats-bugs@NetBSD.org
Subject: scanpci can't find a shared library
X-Send-Pr-Version: www-1.0

>Number:         40050
>Category:       xsrc
>Synopsis:       scanpci can't find a shared library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mrg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 27 21:20:01 +0000 2008
>Closed-Date:    Sun Nov 30 01:04:11 +0000 2008
>Last-Modified:  Sun Nov 30 01:04:11 +0000 2008
>Originator:     Jonathan Glaschke
>Release:        NetBSD 5-BETA (20081124)
>Organization:
>Environment:
ftp://ftp.netbsd.se/NetBSD-daily/netbsd-5/200811240002Z
i don't have uname any longer, i just killed the machine, but it
was exactly that snapshot of netbsd 5 beta.
>Description:
# scanpci
Shared object "libscanpci.so.0" not found

pcictl does work.


>How-To-Repeat:
type 'scanpci'
>Fix:
use pcictl

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->xsrc-manager
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Fri, 28 Nov 2008 00:30:57 +0000
Responsible-Changed-Why:
scanpci belongs to the X server.


From: David Holland <dholland-bugs@netbsd.org>
To: netbsd@jonathan-glaschke.de
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, gnats-bugs@netbsd.org
Subject: Re: bin/40050: scanpci can't find a shared library
Date: Fri, 28 Nov 2008 00:28:54 +0000

 On Thu, Nov 27, 2008 at 09:20:01PM +0000, netbsd@jonathan-glaschke.de wrote:
  > >Synopsis:       scanpci can't find a shared library
  > >Description:
  > # scanpci
  > Shared object "libscanpci.so.0" not found

 That's with native xorg, right? (That is, not xorg from pkgsrc.)

 -- 
 David A. Holland
 dholland@netbsd.org

From: Jonathan Glaschke <e-mail@jonathan-glaschke.de>
To: David Holland <dholland-bugs@netbsd.org>
Cc: gnats-bugs@netbsd.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: bin/40050: scanpci can't find a shared library
Date: Fri, 28 Nov 2008 11:37:48 +0100

 --k+w/mQv8wyuph6w0
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Fri, Nov 28, 2008 at 12:28:54AM +0000, David Holland wrote:
 > On Thu, Nov 27, 2008 at 09:20:01PM +0000, netbsd@jonathan-glaschke.de wro=
 te:
 >  > >Synopsis:       scanpci can't find a shared library
 >  > >Description:
 >  > # scanpci
 >  > Shared object "libscanpci.so.0" not found
 >=20
 > That's with native xorg, right? (That is, not xorg from pkgsrc.)
 >=20
 Right, that's "complete installation" in the netbsd 4.0.1 install cd
 with the ftp path i posted in the bug report..

 Greetings
 Jonathan

 > --=20
 > David A. Holland
 > dholland@netbsd.org
 >=20

 --=20


 --k+w/mQv8wyuph6w0
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: Digital signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (GNU/Linux)

 iQEcBAEBAgAGBQJJL8n8AAoJEBA+2Iy2wDfE3j4IAKYCKLcntIUZbphtJuSPiK6u
 210zY0GHX+hXmFAhKjLkpEexom5HKac5UQMNWuYiNtDAYoRhLulDycIKPOedY7Tk
 +f5xGVNR/XNSKtBc7Zz7PQiqXST5qHhhxCipeV1LLKspE7sujXbokKYKZUPjRXf9
 Zv5D+8moZnsNaDOCdL845Aty77FOEDEWfS/+zN+qJYZvCjVufgFSFqRrS9txYNKb
 2i9thegHZk7n3xrQk2eqOcz6m/CRcz+fueS7O3SPEGtSVdV5FZq5pKRc0kB+kqA0
 eivdISWsIlZCwEyLrZV4rpOkYjmgyd6r1PRzlC3DhwW98sbUC5QQXpyey3jAlAs=
 =VZHb
 -----END PGP SIGNATURE-----

 --k+w/mQv8wyuph6w0--

From: Robert Elz <kre@munnari.OZ.AU>
To: Jonathan Glaschke <e-mail@jonathan-glaschke.de>
Cc: David Holland <dholland-bugs@NetBSD.org>, gnats-bugs@NetBSD.org,
        netbsd-bugs@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: bin/40050: scanpci can't find a shared library 
Date: Fri, 28 Nov 2008 18:36:35 +0700

     Date:        Fri, 28 Nov 2008 11:37:48 +0100
     From:        Jonathan Glaschke <e-mail@jonathan-glaschke.de>
     Message-ID:  <20081128103748.GA5858@cioccolato.jogla>

   | > That's with native xorg, right? (That is, not xorg from pkgsrc.)

   | Right, that's "complete installation" in the netbsd 4.0.1 install cd
   | with the ftp path i posted in the bug report..

 In that case, it isn't "native xorg" but "XFree86", that's what was
 on 4.0.1 (native xorg is only on 5.0 (BETA now) and current, I believe).

 There are lots of packages these days that simply don't work with
 XFree86 any more, and there seems to be no interest in fixing (most of) them.

 The impression I've gathered from message reading is that you're really
 supposed to switch to modular xorg (from pkgsrc) on any system without native
 xorg - which means trashing everything X related (you can probably just
 leave /usr/X11R6 but it is unlikely to ever be used again), and rebuilding
 the world.

 kre

From: Quentin Garnier <cube@cubidou.net>
To: Robert Elz <kre@munnari.OZ.AU>
Cc: Jonathan Glaschke <e-mail@jonathan-glaschke.de>,
	David Holland <dholland-bugs@NetBSD.org>, gnats-bugs@NetBSD.org
Subject: Re: bin/40050: scanpci can't find a shared library
Date: Fri, 28 Nov 2008 14:24:31 +0100

 --z8OPzjJiggy3JOV2
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Fri, Nov 28, 2008 at 06:36:35PM +0700, Robert Elz wrote:
 >     Date:        Fri, 28 Nov 2008 11:37:48 +0100
 >     From:        Jonathan Glaschke <e-mail@jonathan-glaschke.de>
 >     Message-ID:  <20081128103748.GA5858@cioccolato.jogla>
 >=20
 >   | > That's with native xorg, right? (That is, not xorg from pkgsrc.)
 >=20
 >   | Right, that's "complete installation" in the netbsd 4.0.1 install cd
 >   | with the ftp path i posted in the bug report..
 >=20
 > In that case, it isn't "native xorg" but "XFree86", that's what was
 > on 4.0.1 (native xorg is only on 5.0 (BETA now) and current, I believe).
 >=20
 > There are lots of packages these days that simply don't work with
 > XFree86 any more, and there seems to be no interest in fixing (most of) t=
 hem.
 >=20
 > The impression I've gathered from message reading is that you're really
 > supposed to switch to modular xorg (from pkgsrc) on any system without na=
 tive
 > xorg - which means trashing everything X related (you can probably just
 > leave /usr/X11R6 but it is unlikely to ever be used again), and rebuilding
 > the world.

 Greg Woods, der Mouse and you should make a club.  You guys obviously
 have a conspiracy theory going on.  You're NetBSD's Lone Gunmen.

 Had you read the original report, you'd have seen that the reporter
 installed a 5.0 system using a 4.0.1 installation CD.

 So now, please stop complaining about all the great evils you imagine
 NetBSD developers are up to.  It's getting harder to care about people
 like you because there is little gratification in doing so, and at some
 point it harms moving forward.

 --=20
 Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
 "See the look on my face from staying too long in one place
 [...] every time the morning breaks I know I'm closer to falling"
 KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

 --z8OPzjJiggy3JOV2
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (NetBSD)

 iQEcBAEBAgAGBQJJL/EPAAoJENgoQloHrPnoakAIAJVqTgHmGDLpiLAjvWISeyGU
 mImSq0EZWa8w20Fb0zf2uFuTe8sYATQxGgGWKd+3Y/rqngURJopb+PJO6AlcYH/F
 +h0ATb0XA30AWFsnIRQuCb12ynb/jmzEjePXJUvLK97Hadx0h/MHkcflnBP3qJUo
 anf50oMJ7ks65+PBj6P0QKtXPuW7nCyQS6Xnj+PPH6PMEP/xmty5xSK2tIN9kVbi
 nk/5sTZPcQ4uPj00a8NuHiKiWLCnzvLvcBZ3AXvbcAmEX8c2ylgFR1McFFFqRmaN
 ooYXzkEUARc/zwp9e4/6R1h0rZ1FavRTRgG4oGi8Fl8vonmmvPGyf7iuEgeWwgA=
 =6PPW
 -----END PGP SIGNATURE-----

 --z8OPzjJiggy3JOV2--

From: matthew green <mrg@eterna.com.au>
To: Jonathan Glaschke <e-mail@jonathan-glaschke.de>
Cc: gnats-bugs@netbsd.org, netbsd-bugs@netbsd.org,
    gnats-admin@netbsd.org, David Holland <dholland-bugs@netbsd.org>
Subject: re: bin/40050: scanpci can't find a shared library 
Date: Sat, 29 Nov 2008 08:16:34 +1100

 i think this patch should fix the problem.  libscanpci.so is in
 the modules subdir, not the main libdir.  this is also how pkgsrc
 xorg does it, so it seems easy enough.


 .mrg.


 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/src/external/mit/xorg/server/xorg-server/hw/xfree86/utils/scanpci/Makefile,v
 retrieving revision 1.3
 diff -p -r1.3 Makefile
 *** Makefile	14 Oct 2008 23:37:19 -0000	1.3
 --- Makefile	28 Nov 2008 21:15:32 -0000
 *************** CPPFLAGS+=	-DHAVE_XORG_CONFIG_H \
 *** 15,20 ****
 --- 15,21 ----
   		-I${X11SRCDIR.xorg-server}/hw/xfree86/dummylib

   LDADD=	-L${SCANPCIOBJDIR} -lscanpci \
 + 	-Wl,-rpath,${X11LIBDIR}/modules \
   	-L${XORGOSOBJDIR} -lxorgos \
   	-L${DUMMYOBJDIR} -ldummy -lm


Responsible-Changed-From-To: xsrc-manager->mrg
Responsible-Changed-By: mrg@NetBSD.org
Responsible-Changed-When: Fri, 28 Nov 2008 21:37:20 +0000
Responsible-Changed-Why:
OK, this was fairly simple.  thanks.


State-Changed-From-To: open->pending-pullups
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Fri, 28 Nov 2008 21:37:20 +0000
State-Changed-Why:
will get pulled up to netbsd-5.


From: matthew green <mrg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40050 CVS commit: src/external/mit/xorg/server/xorg-server/hw/xfree86/utils/scanpci
Date: Fri, 28 Nov 2008 21:36:28 +0000 (UTC)

 Module Name:	src
 Committed By:	mrg
 Date:		Fri Nov 28 21:36:28 UTC 2008

 Modified Files:
 	src/external/mit/xorg/server/xorg-server/hw/xfree86/utils/scanpci:
 	    Makefile

 Log Message:
 add -Wl,-rpath,${X11USRLIBDIR}/modules to LDADD, so that scanpci can
 find libscanpci.so.0.  fixes PR#40050.


 To generate a diff of this commit:
 cvs rdiff -r1.3 -r1.4 \
     src/external/mit/xorg/server/xorg-server/hw/xfree86/utils/scanpci/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: matthew green <mrg@eterna.com.au>
To: 
Cc: gnats-bugs@netbsd.org, netbsd-bugs@netbsd.org,
    gnats-admin@netbsd.org, David Holland <dholland-bugs@netbsd.org>,
    Jonathan Glaschke <e-mail@jonathan-glaschke.de>
Subject: re: bin/40050: scanpci can't find a shared library 
Date: Sat, 29 Nov 2008 08:31:59 +1100


    + 	-Wl,-rpath,${X11LIBDIR}/modules \


 this gets lib/X11/modules not lib/modules...  it is wrong.


 .mrg.

From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40050 CVS commit: [netbsd-5] src/external/mit/xorg/server/xorg-server/hw/xfree86/utils/scanpci
Date: Sat, 29 Nov 2008 23:12:11 +0000 (UTC)

 Module Name:	src
 Committed By:	snj
 Date:		Sat Nov 29 23:12:11 UTC 2008

 Modified Files:
 	src/external/mit/xorg/server/xorg-server/hw/xfree86/utils/scanpci [netbsd-5]:
 	    Makefile

 Log Message:
 Pull up following revision(s) (requested by mrg in ticket #148):
 	external/mit/xorg/server/xorg-server/hw/xfree86/utils/scanpci/Makefile: revision 1.4
 add -Wl,-rpath,${X11USRLIBDIR}/modules to LDADD, so that scanpci can
 find libscanpci.so.0.  fixes PR#40050.


 To generate a diff of this commit:
 cvs rdiff -r1.3 -r1.3.4.1 \
     src/external/mit/xorg/server/xorg-server/hw/xfree86/utils/scanpci/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Sun, 30 Nov 2008 01:04:11 +0000
State-Changed-Why:
pullup executed. thanks!


>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.