NetBSD Problem Report #46471

From www@NetBSD.org  Mon May 21 08:25:59 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 5F73763BA27
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 21 May 2012 08:25:59 +0000 (UTC)
Message-Id: <20120521082558.77CD963B86B@www.NetBSD.org>
Date: Mon, 21 May 2012 08:25:58 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: latest patch in graphics/graphviz does not work for me
X-Send-Pr-Version: www-1.0

>Number:         46471
>Category:       pkg
>Synopsis:       latest patch in graphics/graphviz does not work for me
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 21 08:30:00 +0000 2012
>Last-Modified:  Tue Jun 26 09:20:02 +0000 2012
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
When building graphics/graphviz on Solaris 10 using a standalone GCC 4.7.0 and native linker, compilation fails here:

libtool: link: g++ -shared -nostdlib -L/usr/pkgsrc/20120411/lib -Wl,-R/usr/pkgsrc/20120411/lib -L/usr/lib -Wl,-R/usr/lib /usr/lib/crti.o /usr/lib/values-Xa.o /software/local/gcc/sunos5.10-x64/gcc-4.7.0/bin/../lib/gcc/i386-pc-solaris2.10/4.7.0/crtbegin.o  .libs/libgv_perl_la-gv.o .libs/libgv_perl_la-gv_builtins.o .libs/libgv_perl_la-gv_dummy_init.o .libs/libgv_perl_la-gv_perl.o   -Wl,-R -Wl,/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/gvc/.libs -Wl,-R -Wl,/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/xdot/.libs -Wl,-R -Wl,/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/graph/.libs -Wl,-R -Wl,/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/pathplan/.libs -Wl,-R -Wl,/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/.buildlink/lib -Wl,-R -Wl,/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/cdt/.libs -Wl,-R -Wl,/usr/local/gcc/gcc-4.7
 .0/lib -Wl,-R -Wl,/usr/pkgsrc/20120411/lib -Wl,-R -Wl,/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/.buildlink/lib -Wl,-R -Wl,/usr/local/gcc/gcc-4.7.0/lib -L/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/xdot/.libs -L/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/graph/.libs -L/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/pathplan/.libs -L/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/cdt/.libs -L/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/.buildlink/lib ../../lib/gvc/.libs/libgvc.so /pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/xdot/.libs/libxdot.so /pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/graph/.libs/libgraph.so /pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/pathplan/.libs/libpathplan.so /pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/.
 buildlink/lib/libexpat.so -lsocket -lnsl /pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/.buildlink/lib/libz.so ../../lib/graph/.libs/libgraph.so /pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/graphviz-2.26.3/lib/cdt/.libs/libcdt.so ../../lib/cdt/.libs/libcdt.so -L/pkgsrc/source/pkgsrc/graphics/graphviz/work.pkgsrc-i86/.buildlink/lib/perl5/5.14.0/i386-solaris-thread-multi/CORE -lperl -L/software/local/gcc/sunos5.10-x64/gcc-4.7.0/bin/../lib/gcc/i386-pc-solaris2.10/4.7.0 -L/software/local/gcc/sunos5.10-x64/gcc-4.7.0/bin/../lib/gcc -L/software/local/gcc/sunos5.10-x64/gcc-4.7.0/bin/../lib/gcc/i386-pc-solaris2.10/4.7.0/../../.. /usr/local/gcc/gcc-4.7.0/lib/libstdc++.so -lm -lc -lgcc_s /software/local/gcc/sunos5.10-x64/gcc-4.7.0/bin/../lib/gcc/i386-pc-solaris2.10/4.7.0/crtend.o /usr/lib/crtn.o  -Wl,-R/usr/pkgsrc/20120411/lib -Wl,-rpath -Wl,/usr/pkgsrc/20120411/lib/perl5/5.14.0/i386-solaris-thread-multi/CORE   -Wl,-h -Wl,libgv_perl.so -o .libs/libgv_perl.so
ld: elf error: file /usr/pkgsrc/20120411/lib/perl5/5.14.0/i386-solaris-thread-multi/CORE: elf_begin: I/O error: region read: Is a directory

After removing the patch, the package builds again. Seems someone has already injected the needed -R option before.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 21 May 2012 08:49:33 +0000
Responsible-Changed-Why:
Over to changer; if you can't handle it, assign it to solaris-pkg-people please.


Responsible-Changed-From-To: joerg->solaris-pkg-people
Responsible-Changed-By: joerg@NetBSD.org
Responsible-Changed-When: Mon, 21 May 2012 09:02:13 +0000
Responsible-Changed-Why:
The rpath is definitely needed, but I have no idea what problem Solaris ld
has here.


From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, joerg@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org, pkgsrc-bugs@NetBSD.org,
 gnats-admin@NetBSD.org
Subject: Re: pkg/46471 (latest patch in graphics/graphviz does not work for me)
Date: Mon, 21 May 2012 11:18:11 +0200

 > The rpath is definitely needed, but I have no idea what problem Solaris ld
 > has here.

 Look closely: There is a "-Wl,-R" preceding the "-Wl,-rpath" from your 
 patch, which in turn is followed by the path. So ld sees "-R -rpath 
 /usr/pkgsrc/...". This is not a problem of the linker. Maybe it's autoconf.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46471 (latest patch in graphics/graphviz does not work for
 me)
Date: Mon, 21 May 2012 11:53:50 +0200

 On Mon, May 21, 2012 at 09:20:04AM +0000, Jörn Clausen wrote:
 > The following reply was made to PR pkg/46471; it has been noted by GNATS.
 > 
 > From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
 > To: gnats-bugs@NetBSD.org, joerg@NetBSD.org
 > Cc: solaris-pkg-people@NetBSD.org, pkgsrc-bugs@NetBSD.org,
 >  gnats-admin@NetBSD.org
 > Subject: Re: pkg/46471 (latest patch in graphics/graphviz does not work for me)
 > Date: Mon, 21 May 2012 11:18:11 +0200
 > 
 >  > The rpath is definitely needed, but I have no idea what problem Solaris ld
 >  > has here.
 >  
 >  Look closely: There is a "-Wl,-R" preceding the "-Wl,-rpath" from your 
 >  patch, which in turn is followed by the path. So ld sees "-R -rpath 
 >  /usr/pkgsrc/...". This is not a problem of the linker. Maybe it's autoconf.

 I see:
 -Wl,-R/usr/pkgsrc/20120411/lib
 -Wl,-rpath
 -Wl,/usr/pkgsrc/20120411/lib/perl5/5.14.0/i386-solaris-thread-multi/CORE

 on the command line, which should result in the linker arguments:
 -R/usr/pkgsrc/20120411/lib -rpath /usr/pkgsrc/20120411/lib/perl5/...

 Joerg

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Joerg Sonnenberger <joerg@britannica.bec.de>,
 solaris-pkg-people@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/46471 (latest patch in graphics/graphviz does not work for me)
Date: Mon, 21 May 2012 12:06:46 +0200

 On 21.05.12 11:55, Joerg Sonnenberger wrote:
 > The following reply was made to PR pkg/46471; it has been noted by GNATS.
 >
 > From: Joerg Sonnenberger<joerg@britannica.bec.de>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: pkg/46471 (latest patch in graphics/graphviz does not work for
 >   me)
 > Date: Mon, 21 May 2012 11:53:50 +0200
 >
 >   On Mon, May 21, 2012 at 09:20:04AM +0000, Jörn Clausen wrote:
 >   >  The following reply was made to PR pkg/46471; it has been noted by GNATS.
 >   >
 >   >  From: =?ISO-8859-1?Q?J=F6rn_Clausen?=<joern.clausen@uni-bielefeld.de>
 >   >  To: gnats-bugs@NetBSD.org, joerg@NetBSD.org
 >   >  Cc: solaris-pkg-people@NetBSD.org, pkgsrc-bugs@NetBSD.org,
 >   >   gnats-admin@NetBSD.org
 >   >  Subject: Re: pkg/46471 (latest patch in graphics/graphviz does not work for me)
 >   >  Date: Mon, 21 May 2012 11:18:11 +0200
 >   >
 >   >   >  The rpath is definitely needed, but I have no idea what problem Solaris ld
 >   >   >  has here.
 >   >
 >   >   Look closely: There is a "-Wl,-R" preceding the "-Wl,-rpath" from your
 >   >   patch, which in turn is followed by the path. So ld sees "-R -rpath
 >   >   /usr/pkgsrc/...". This is not a problem of the linker. Maybe it's autoconf.
 >
 >   I see:
 >   -Wl,-R/usr/pkgsrc/20120411/lib
 >   -Wl,-rpath
 >   -Wl,/usr/pkgsrc/20120411/lib/perl5/5.14.0/i386-solaris-thread-multi/CORE
 >
 >   on the command line, which should result in the linker arguments:
 >   -R/usr/pkgsrc/20120411/lib -rpath /usr/pkgsrc/20120411/lib/perl5/...

 Agreed, my mistake.

 I'll check if libelf from pkgsrc is again the culprit.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org, gnats-admin@NetBSD.org,
 pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/46471 (latest patch in graphics/graphviz does not work for me)
Date: Tue, 26 Jun 2012 11:15:40 +0200

 >   I'll check if libelf from pkgsrc is again the culprit.

 No, it's actually "-Wl,-rpath,$archlib/CORE". If I replace this with 
 "-R$archlib/CORE", the package builds and the gv-plugin is correctly 
 linked against libperl.so.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

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