The components involved are Python, SWIG, and LCMS. Each of these must be built using shared libraries. They should also be built for the same CPU/addressing model. Presumably it is possible to build and execute either 32 or 64 bit programs under Linux for the Opteron.
It seems that the liblcms code was not built as a shared library.
Check src/.libs in the lcms build directory to see if there are shared libraries present.
Bob
On Tue, 3 Aug 2004, Daniel Khan wrote:
Hello,
this may be a Gentoo issue and I may have a broken system - but I have to start somewhere and maybe someone here has an idea what exactly causes the error.
I try to emerge lcms-1.12.
If I do this with python support enabled (gentoo USE flags) it faild with the following error: (as you can see I allready added fPIC as suggested by the linker)
/bin/sh ../mkinstalldirs /var/tmp/portage/lcms-1.12/image//usr/lib/python2.3/site-packages
mkdir -p -- /var/tmp/portage/lcms-1.12/image//usr/lib/python2.3/site-packages
/bin/install -c -m 644 lcms.py /var/tmp/portage/lcms-1.12/image//usr/lib/python2.3/site-packages/lcms.py
/bin/sh ../mkinstalldirs /var/tmp/portage/lcms-1.12/image//usr/lib/python2.3/site-packages
/bin/sh ../libtool --mode=install /bin/install -c _lcms.la /var/tmp/portage/lcms-1.12/image//usr/lib/python2.3/site-packages/_lcms.la
libtool: install: warning: relinking `_lcms.la'
(cd /var/tmp/portage/lcms-1.12/work/lcms-1.12/python; /bin/sh ../libtool --mode=relink g++ -march=opteron -O2 -fPIC -o _lcms.la -rpath /usr/lib/python2.3/site-packages -no-undefined -module -avoid-version -L/usr/lib/python2.3/config -L/usr/local/lib/python2.3/config _lcms_la-lcms_wrap.lo ../src/liblcms.la -lpython2.3 -inst-prefix-dir /var/tmp/portage/lcms-1.12/image/)
g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/crtbeginS.o .libs/_lcms_la-lcms_wrap.o -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1 -L/usr/x86_64-pc-linux-gnu/bin -L/usr/lib/python2.3/config -L/usr/local/lib/python2.3/config -L/usr/lib -L/var/tmp/portage/lcms-1.12/image//usr/lib -llcms -lpython2.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../.. -L/var/tmp/portage/lcms-1.12/image//usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../crtn.o -march=opteron -Wl,-soname -Wl,_lcms -o .libs/_lcms
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/liblcms.a(liblcms_la-cmscnvrt.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/lib/liblcms.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
libtool: install: error: relink `_lcms.la' with the above command before installing it
make[3]: *** [install-pkgLTLIBRARIES] Error 1
make[3]: Leaving directory `/var/tmp/portage/lcms-1.12/work/lcms-1.12/python'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/lcms-1.12/work/lcms-1.12/python'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/var/tmp/portage/lcms-1.12/work/lcms-1.12/python'
make: *** [install-recursive] Error 1
If I compile with USE='-python' it works.
It isn't an opteron problem cause it works like a breeze with another opteron which simply was setup a little before and isn't identically setup therefore.
So there is something wrong with my system and I am now hoping that you can guess from the compiler output what it might be.
Thanks a lot!
-- Daniel Khan
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Lcms-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/lcms-user
====================================== Bob Friesenhahn [EMAIL PROTECTED] http://www.simplesystems.org/users/bfriesen
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Lcms-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/lcms-user