pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: pkg/41433



The following reply was made to PR pkg/41433; it has been noted by GNATS.

From: J Raynor <jxraynor%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: RE: pkg/41433
Date: Wed, 19 Jan 2011 22:31:47 -0600

 --0016e659f48496a9c9049a3f9c3e
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 I had sent the info below to the pkgsrc-users list, not realizing that it
 should've been entered into gnats.  There's a patch to correct the build
 problem at the bottom.
 
 
 
 The devel/gettext-tools package from pkgsrc-2010Q4 fails to build on aix 5.=
 3
 with gcc.  Below is the relevant output:
 
 
 gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../lib -I../lib -I../intl
 -I/jxr/include  -O -I/jxr/include -c m-fgrep.c
 gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../lib -I../lib -I../intl
 -I/jxr/include  -O -I/jxr/include -c m-regex.c
 gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../lib -I../lib -I../intl
 -I/jxr/include  -O -I/jxr/include -c hard-locale.c
 gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../lib -I../lib -I../intl
 -I/jxr/include  -O -I/jxr/include -c regex.c
 rm -f libgrep.a
 ar cru libgrep.a kwset.o dfa.o  m-common.o m-fgrep.o m-regex.o
 hard-locale.o regex.o
 ranlib libgrep.a
 Making all in libuniname
 gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../lib -I../lib  -I/jxr/include  -=
 O
 -I/jxr/include -c uniname.c
 rm -f libuniname.a
 ar cru libuniname.a uniname.o
 ranlib libuniname.a
 gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../lib -I../lib  -I/jxr/include  -=
 O
 -I/jxr/include -c test-names.c
 /bin/sh ../libtool --tag=3DCC --mode=3Dlink gcc  -O -I/jxr/include   -L/jxr=
 /lib
 -Wl,-R/jxr/lib -o test-names  test-names.o libuniname.a ../lib/
 libgettextlib.la -lintl -liconv
 libtool: link: gcc -O -I/jxr/pkgsrc/devel/gettext-
 tools/work/.buildlink/include -Wl,-R/jxr/lib -o .libs/test-names
 test-names.o  -L/jxr/pkgsrc/devel/gettext-tools/work/.buildlink/lib
 libuniname.a -L../lib/.libs -lgettextlib -lintl -lc -liconv
 -Wl,-blibpath:/jxr/lib:/jxr/pkgsrc/devel/gettext-tools/work/.buildlink/lib:=
 /jxr/pkgsrc/devel/libtool-base/work/.buildlink/lib:/opt/freeware/lib/gcc-li=
 b/powerpc-ibm-aix5.3.0.0/3.3.2:/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3=
 .0.0/3.3.2/../../..:/usr/lib:/lib
 
 ld: 0706-027 The -R /jxr/lib flag is ignored.
 ld: 0706-006 Cannot find or open library file: -l gettextlib
         ld:open(): No such file or directory
 collect2: ld returned 255 exit status
 *** Error code 1
 
 Stop.
 bmake: stopped in
 /jxr/pkgsrc/devel/gettext-tools/work/gettext-0.14.6/gettext-tools/libuninam=
 e
 *** Error code 1
 
 Stop.
 bmake: stopped in
 /jxr/pkgsrc/devel/gettext-tools/work/gettext-0.14.6/gettext-tools
 *** Error code 1
 
 Stop.
 bmake: stopped in
 /jxr/pkgsrc/devel/gettext-tools/work/gettext-0.14.6/gettext-tools
 *** Error code 1
 
 Stop.
 bmake: stopped in /jxr/pkgsrc/devel/gettext-tools/work/gettext-0.14.6
 *** Error code 1
 
 Stop.
 bmake: stopped in /jxr/pkgsrc/devel/gettext-tools
 *** Error code 1
 
 Stop.
 bmake: stopped in /jxr/pkgsrc/devel/gettext-tools
 
 
 
 
 
 The problem is that SHLIBTOOL_OVERRIDE is set in the Makefile, and the flag=
 s
 needed to link against .so files are not provided.  SHLIBTOOL_OVERRIDE
 prevents the .a library from being built, and since the flags needed to lin=
 k
 against .so libs are not there, the build fails even though the .so library
 was built.  Removing SHLIBTOOL_OVERRIDE allows the build to succeed, but it
 also results in the static library being built and installed.  I'm assuming
 that's not desirable, or SHLIBTOOL_OVERRIDE wouldn't have been set.
 
 The alternative is to provide the LDFLAGS needed to tell aix to link agains=
 t
 .so libs.  I've included a patch below that will do that.  The package
 builds successfully with this patch:
 
 
 --- Makefile.orig       2011-01-17 17:39:34.000000000 -0600
 +++ Makefile    2011-01-17 17:40:12.000000000 -0600
 @@ -28,6 +28,7 @@
  CONFIGURE_ENV+=3D                HAVE_JAVAC_IN_PATH=3D
  CONFIGURE_ENV+=3D                HAVE_JIKES_IN_PATH=3D
  CONFIGURE_ENV+=3D                ac_cv_libexpat=3Dno
 +LDFLAGS.AIX+=3D          -Wl,-brtl
 
  SHLIBTOOL_OVERRIDE=3D    # empty
  INFO_FILES=3D            yes
 
 --0016e659f48496a9c9049a3f9c3e
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 I had sent the info below to the pkgsrc-users list, not realizing that it s=
 hould&#39;ve been entered into gnats.=A0 There&#39;s a patch to correct the=
  build problem at the bottom.<br><br><br><br>The devel/gettext-tools packag=
 e from pkgsrc-2010Q4 fails to build on aix 5.3 with gcc.=A0 Below is the re=
 levant output:<br>
 <br><br>gcc -DHAVE_CONFIG_H -I. -I. -I..=A0 -I.. -I../lib -I../lib -I../int=
 l=A0 -I/jxr/include=A0 -O -I/jxr/include -c m-fgrep.c<br>
 gcc -DHAVE_CONFIG_H -I. -I. -I..=A0 -I.. -I../lib -I../lib -I../intl=A0 -I/=
 jxr/include=A0 -O -I/jxr/include -c m-regex.c<br>gcc -DHAVE_CONFIG_H -I. -I=
 . -I..=A0 -I.. -I../lib -I../lib -I../intl=A0 -I/jxr/include=A0 -O -I/jxr/i=
 nclude -c hard-locale.c<br>
 
 gcc -DHAVE_CONFIG_H -I. -I. -I..=A0 -I.. -I../lib -I../lib -I../intl=A0 -I/=
 jxr/include=A0 -O -I/jxr/include -c regex.c<br>rm -f libgrep.a<br>ar cru li=
 bgrep.a kwset.o dfa.o=A0 m-common.o m-fgrep.o m-regex.o=A0 hard-locale.o re=
 gex.o<br>
 
 ranlib libgrep.a<br>Making all in libuniname<br>gcc -DHAVE_CONFIG_H -I. -I.=
  -I..=A0 -I.. -I../lib -I../lib=A0 -I/jxr/include=A0 -O -I/jxr/include -c u=
 niname.c<br>rm -f libuniname.a<br>ar cru libuniname.a uniname.o <br>ranlib =
 libuniname.a<br>
 
 gcc -DHAVE_CONFIG_H -I. -I. -I..=A0 -I.. -I../lib -I../lib=A0 -I/jxr/includ=
 e=A0 -O -I/jxr/include -c test-names.c<br>/bin/sh
  ../libtool --tag=3DCC --mode=3Dlink gcc=A0 -O -I/jxr/include=A0=A0 -L/jxr/=
 lib=20
 -Wl,-R/jxr/lib -o test-names=A0 test-names.o libuniname.a ../lib/<a href=3D=
 "http://libgettextlib.la/"; target=3D"_blank">libgettextlib.la</a> -lintl -l=
 iconv<br>
 libtool: link: gcc -O -I/jxr/pkgsrc/devel/gettext-<div id=3D":bt">tools/wor=
 k/.buildlink/include -Wl,-R/jxr/lib -o .libs/test-names test-names.o=A0 -L/=
 jxr/pkgsrc/devel/gettext-tools/work/.buildlink/lib libuniname.a -L../lib/.l=
 ibs -lgettextlib -lintl -lc -liconv -Wl,-blibpath:/jxr/lib:/jxr/pkgsrc/deve=
 l/gettext-tools/work/.buildlink/lib:/jxr/pkgsrc/devel/libtool-base/work/.bu=
 ildlink/lib:/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2:/opt/fre=
 eware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/../../..:/usr/lib:/lib <br>
 
 ld: 0706-027 The -R /jxr/lib flag is ignored.<br>ld: 0706-006 Cannot find o=
 r open library file: -l gettextlib<br>=A0=A0=A0=A0=A0=A0=A0 ld:open(): No s=
 uch file or directory<br>collect2: ld returned 255 exit status<br>*** Error=
  code 1<br>
 
 <br>Stop.<br>bmake: stopped in /jxr/pkgsrc/devel/gettext-tools/work/gettext=
 -0.14.6/gettext-tools/libuniname<br>*** Error code 1<br><br>Stop.<br>bmake:=
  stopped in /jxr/pkgsrc/devel/gettext-tools/work/gettext-0.14.6/gettext-too=
 ls<br>
 
 *** Error code 1<br><br>Stop.<br>bmake: stopped in /jxr/pkgsrc/devel/gettex=
 t-tools/work/gettext-0.14.6/gettext-tools<br>*** Error code 1<br><br>Stop.<=
 br>bmake: stopped in /jxr/pkgsrc/devel/gettext-tools/work/gettext-0.14.6<br=
 >
 
 *** Error code 1<br><br>Stop.<br>bmake: stopped in /jxr/pkgsrc/devel/gettex=
 t-tools<br>*** Error code 1<br><br>Stop.<br>bmake: stopped in /jxr/pkgsrc/d=
 evel/gettext-tools<br><br><br><br><br><br>The
  problem is that SHLIBTOOL_OVERRIDE is set in the Makefile, and the=20
 flags needed to link against .so files are not provided.=A0=20
 SHLIBTOOL_OVERRIDE prevents the .a library from being built, and since=20
 the flags needed to link against .so libs are not there, the build fails
  even though the .so library was built.=A0 Removing SHLIBTOOL_OVERRIDE=20
 allows the build to succeed, but it also results in the static library=20
 being built and installed.=A0 I&#39;m assuming that&#39;s not desirable, or=
 =20
 SHLIBTOOL_OVERRIDE wouldn&#39;t have been set.<br>
 <br>The alternative is to provide the LDFLAGS needed to tell aix to link
  against .so libs.=A0 I&#39;ve included a patch below that will do that.=A0=
  The=20
 package builds successfully with this patch:<br><br><br>--- Makefile.orig=
 =A0=A0=A0=A0=A0=A0 2011-01-17 17:39:34.000000000 -0600<br>
 +++ Makefile=A0=A0=A0 2011-01-17 17:40:12.000000000 -0600<br>@@ -28,6 +28,7=
  @@<br>=A0CONFIGURE_ENV+=3D=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 HA=
 VE_JAVAC_IN_PATH=3D<br>=A0CONFIGURE_ENV+=3D=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 =A0=A0=A0=A0=A0 HAVE_JIKES_IN_PATH=3D<br>=A0CONFIGURE_ENV+=3D=A0=A0=A0=A0=
 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ac_cv_libexpat=3Dno<br>
 
 +LDFLAGS.AIX+=3D=A0=A0=A0=A0=A0=A0=A0=A0=A0 -Wl,-brtl<br>=A0<br>=A0SHLIBTOO=
 L_OVERRIDE=3D=A0=A0=A0 # empty<br>=A0INFO_FILES=3D=A0=A0=A0=A0=A0=A0=A0=A0=
 =A0=A0=A0 yes<br><br><br><br><br><br></div><br>
 
 --0016e659f48496a9c9049a3f9c3e--
 


Home | Main Index | Thread Index | Old Index