pkgsrc-Bugs archive

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

Re: pkg/47807: pkgsrc/py-libxml2 seems to have path problems in build



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

From: Richard PALO <Richard.PALO%baou.fr@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/47807: pkgsrc/py-libxml2 seems to have path problems in build
Date: Wed, 08 May 2013 16:29:40 +0200

 Le 08/05/13 13:55, Thomas Klausner a écrit :
 > The following reply was made to PR pkg/47807; it has been noted by GNATS.
 >
 > From: Thomas Klausner <wiz%NetBSD.org@localhost>
 > To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
 > Cc:
 > Subject: Re: pkg/47807: pkgsrc/py-libxml2 seems to have path problems in 
 > build
 > Date: Wed, 8 May 2013 13:50:10 +0200
 >
 >   On Wed, May 08, 2013 at 11:35:01AM +0000, richard%netbsd.org@localhost 
 > wrote:
 >   > help> xml2po
 >   > problem in xml2po - <type 'exceptions.ImportError'>: ld.so.1: python2.7: 
 > fatal: relocation error: file 
 > /opt/pkg/lib/python2.7/site-packages/libxml2mod.so: symbol 
 > xmlInitializeDict: referenced symbol not found
 >   >
 >   > richard@devzoneX:~/src/pkgsrc/textproc/py-libxml2$ ldd -d 
 > /opt/pkg/lib/python2.7/site-packages/libxml2mod.so
 >   >         libxml2.so.2 =>  /usr/lib/amd64/libxml2.so.2
 >
 >   Looks like it links against the wrong libxml2.
 >    Thomas
 >
 >
 >
 I've tried upgrading libxml2 (and consequently py-libxml2) to 2.9.1 ... 
 no difference.
 
 Yes, and to compare libxml2.so with the version installed in system:
 > richard@devzoneX:~/src/pkgsrc/meta-pkgs/gnome$ /usr/bin/nm -s 
 > /opt/pkg/lib/libxml2.so.2 |grep xmlInitializeDict
 > [6322]  |             1231221|                 106|FUNC |GLOB |0    |.text   
 >       |__xmlInitializeDict
 > [6674]  |             1231215|                   6|FUNC |GLOB |0    |.text   
 >       |xmlInitializeDict
 > richard@devzoneX:~/src/pkgsrc/meta-pkgs/gnome$ /usr/bin/nm -s 
 > /usr/lib/libxml2.so.2 |grep xmlInitializeDict
 > [1813]  |   1035788|        71|FUNC |LOCL |0    |.text         
 > |xmlInitializeDict
 
 > richard@devzoneX:~/src/pkgsrc/textproc/py-libxml2$ pkg list library/libxml2
 > NAME (PUBLISHER)                                  VERSION                    
 > IFO
 > library/libxml2 (openindiana.org)                 2.7.6-0.151.1.7            
 > i--
 
 During the build the following is the invocation:
 > gcc -shared -L/tmp/pkgsrc/lang/python27/work/Python-2.7.4 
 > -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/usr/lib/amd64 
 > -Wl,-R/usr/lib/amd64 -L/opt/pkg/lib -Wl,-R/opt/pkg/lib 
 > -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib 
 > -Wl,-R/opt/pkg/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -O 
 > -I/opt/pkg/include -I/usr/include -I/opt/pkg/include/gettext 
 > -I/opt/pkg/include -I/usr/include -I/opt/pkg/include/gettext 
 > build/temp.solaris-2.11-i86pc.64bit-2.7/libxml2-py.o 
 > build/temp.solaris-2.11-i86pc.64bit-2.7/libxml.o 
 > build/temp.solaris-2.11-i86pc.64bit-2.7/types.o -L/opt/pkg/lib 
 > -L/opt/pkg/lib -lxml2 -lm -lz -lpython2.7 -o 
 > build/lib.solaris-2.11-i86pc.64bit-2.7/libxml2mod.so 
 > -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -Wl,-R/opt/pkg/gcc47/lib/gc
 !
  c/x86_64-s
 un-solaris2.11/4.7.3 -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib 
-L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64
 
 if I suppress the first occurrence of > -L/usr/lib/amd64 
 -Wl,-R/usr/lib/amd64
 like the following:
 >  gcc -shared -L/tmp/pkgsrc/lang/python27/work/Python-2.7.4 
 > -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib 
 > -Wl,-R/opt/pkg/lib -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib 
 > -Wl,-R/opt/pkg/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -O 
 > -I/opt/pkg/include -I/usr/include -I/opt/pkg/include/gettext 
 > -I/opt/pkg/include -I/usr/include -I/opt/pkg/include/gettext 
 > build/temp.solaris-2.11-i86pc.64bit-2.7/libxml2-py.o 
 > build/temp.solaris-2.11-i86pc.64bit-2.7/libxml.o 
 > build/temp.solaris-2.11-i86pc.64bit-2.7/types.o -L/opt/pkg/lib 
 > -L/opt/pkg/lib -lxml2 -lm -lz -lpython2.7 -o 
 > build/lib.solaris-2.11-i86pc.64bit-2.7/libxml2mod.so 
 > -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 
 > -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 -L/opt
 !
  /pkg/gcc47
 /lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib 
-L/usr/lib/amd64 -Wl,-R/usr/lib/amd64
 
 it seems to build (and if manually installed works) ok... seems to be an 
 ordering problem.
 
 The question is, it it because python distutils and setup.py are being 
 used instead of the Makefiles?
 
 Or something else?  I'm building with gcc 4.7.3 with ABI=64 on 
 openindiana (illumos).
 
 -- 
 Richard PALO
 » Avant d'imprimer, pensez aux conséquences environnementales «
 


Home | Main Index | Thread Index | Old Index