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

ld error

I'm trying to build the mythtv package from the source deb.  I get
this error when the mythtv lib is being assembled:

/usr/bin/ld: /usr/lib/gcc-lib/x86_64-linux/3.3.5/../../../../lib64/liblirc_client.a(lirc_client.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc-lib/x86_64-linux/3.3.5/../../../../lib64/liblirc_client.a: could not read symbols: Bad value

below is a typical call to compile a lib object -- as one can see --
-fPIC is used.

g++ -c -pipe -Wall -W -O2 -g -D_REENTRANT -fPIC  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DUSING_OSS -DUSING_DVB -DUSE_ALSA -DUSE_LIRC -DUSE_ARTS -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/share/qt3/mkspecs/default -I. -I/usr/include -I/usr/local/include -I/usr/include/kde -I/usr/include/qt3 -o moc_lirc.o moc_lirc.cpp

My system is from the pure64 archive, including gcc-3.3.  Would moving
over to the gcc-3.4 archive and that compiler solve this problem?

How should I best procede?  Thanks.

Don Hayward @ pomobuli.net

Reply to: