[mythtv-users] how to disable fPIC for SuSe 8.2 bugfix?

mOjO mOjOspam at thegeekclub.net
Wed Jun 4 05:22:22 EDT 2003


i'm getting compile errors on SuSe 8.2...
i have followed the How-To's and installed the pre-requisites but make 
exits with the following error:
[SNIP]
make[2]: Entering directory `/root/mythtv/mythtv-0.8/libs/libavcodec'
gcc -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC 
-DNO_DEBUG -w -O3 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT  -D_GNU_SOURCE 
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I../.. 
-I/usr/include -I/usr/lib/qt3/include -o msmpeg4.o msmpeg4.c
common.h: In function `msmpeg4_pred_dc':
msmpeg4.c:723: error: can't find a register in class `BREG' while 
reloading `asm'
msmpeg4.c:723: error: can't find a register in class `BREG' while 
reloading `asm'
make[2]: *** [msmpeg4.o] Error 1
make[2]: Leaving directory `/root/mythtv/mythtv-0.8/libs/libavcodec'
make[1]: *** [sub-libavcodec] Error 2
make[1]: Leaving directory `/root/mythtv/mythtv-0.8/libs'
make: *** [sub-libs] Error 2
[/SNIP]

so I then found this posting in the mailing list archives:
http://www.gossamer-threads.com/perl/mailarc/gforum.cgi?guest=567908&t=search_engine&do%3Dpost_view_threaded%3Bpost_latest_reply%3Bso%3DASC%3Bpost%3D59597=View+Threaded

where he says:
I found the problem: SuSE 8.2 install gcc 3.3 as default. If you disable 
the
flag -fPIC it compiles!! Seems to be a known bug of gcc ?!

unfortunately, i'm not as knowledgeable as he is...
So...
How do i disable the -fPIC flag?!?!

Thanks,
mOjO



More information about the mythtv-users mailing list