Subject: py-qt3-sip on Solaris and ld: fatal: relocations remain against
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/02/2004 10:21:15
Building py-qt3-sip under Solaris is failing with:

Text relocation remains                         referenced
    against symbol                  offset      in file
PyEval_CallObjectWithKeywords       0x654       qtlib.o
PyMethod_New                        0x5ac       qtlib.o
sipGetRx                            0x11ec      qtlib.o
sipGetRx                            0x125c      qtlib.o
sip_api_malloc                      0xc14       qtlib.o
...
PyErr_Print                         0x498       qtlib.o
QObject::connect(QObject const*, char const*, QObject const*, char const*)0x1078
        qtlib.o
QObject::connect(QObject const*, char const*, QObject const*, char const*)0x1154
        qtlib.o
QObject::disconnect(QObject const*, char const*, QObject const*, char const*)0x1
2ec     qtlib.o
PyErr_Restore                       0x970       qtlib.o
...
PyCFunction_Type                    0x13c0      qtlib.o
PyWeakref_GetObject                 0x530       qtlib.o
PyErr_GivenExceptionMatches         0x7d0       qtlib.o
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
gmake[1]: *** [sip.so] Error 1
gmake[1]: Leaving directory `/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/sip-4.0rc3/siplib'

The end of of my .work.log has:

<.> /usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.gcc/bin/g++
-Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.4
-Wl,-R/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/lib/python2p3/config
-Wl,-R/usr/pkg/qt3/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/openwin/lib -shared
-o sip.so siplib.o qtlib.o threads.o objmap.o
-L/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.4
-L/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/gcc3/lib
-L/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/lib
-L/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/lib/python2p3/config
-L/usr/pkg/qt3/lib
-L/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.x11-buildlink/lib
-L/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/gcc3/bin/../lib/gcc-lib/sparc-sun-solaris2/3.3.4
-L/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/gcc3/bin/../lib/gcc-lib
-L/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/gcc3/bin/../lib/gcc-lib/sparc-sun-solaris2/3.3.4/../../..
-I/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/include
-lqt-mt -lpng -lz -lGL -lXmu -lXcursor -lXrender -lXfixes -lICE -lSM
-lstdc++ -lXext -lX11 -lm -lresolv -lsocket -lnsl -lpthread -lrt

The system is a SunOS 5.9 Generic_117171-02 sparc SUNW,Ultra-5_10.
It has no native c or c++ compilers.

It has gcc and g++ 3.3.4 installed from pkgsrc package.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/