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

Re: [Help] Bug#522021: arb_0.0.20071207.1-7(mips/experimental): FTBFS: missing -fPIC



On Tue, Mar 31, 2009 at 09:49:01AM +0200, Andreas Tille wrote:
> Hi,
>
> I would like to ask for help of the mips porter team whether they might have a clue
> why this build fails.  It seems to me that some graphics / Motif issues might be
> involved in the problem.
>
> Any help is welcome
[...]
>> | gcc -W -Wall  -DLINUX -pipe -DNO_REGEXPR -DGNU  -O4 -DNDEBUG  -DARB_OPENGL -DFAKE_VTAB_PTR=char -D_ARB_WINDOW -c GLwMDrawA.c -I. -I/build/buildd/arb-0.0.20071207.1/INCLUDE -I/usr/X11R6/include

You might want to start by adding a -fPIC here, like the linker requested.

[...]
>> | gcc -W -Wall  -DLINUX -pipe -DNO_REGEXPR -DGNU  -O4 -DNDEBUG  -DARB_OPENGL -DFAKE_VTAB_PTR=char -D_ARB_WINDOW -c GLwDrawA.c -I. -I/build/buildd/arb-0.0.20071207.1/INCLUDE -I/usr/X11R6/include
>> | GLwDrawA.c:344: warning: missing initializer
>> | GLwDrawA.c:344: warning: (near initialization for 'glwDrawingAreaClassRec.glwDrawingArea_class')
>> | GLwDrawA.c: In function 'createColormap':
>> | GLwDrawA.c:430: warning: unused parameter 'offset'
>> | GLwDrawA.c: In function 'Redraw':
>> | GLwDrawA.c:578: warning: unused parameter 'region'
>> | GLwDrawA.c: In function 'glwInput':
>> | GLwDrawA.c:651: warning: unused parameter 'params'
>> | GLwDrawA.c:651: warning: unused parameter 'numParams'
>> | g++ -fmessage-length=0 -Wall -shared -DNO_REGEXPR -DGNU -o libAW.so AW_position.o AW_Xm.o AW_at.o AW_button.o AW_click.o AW_device.o AW_font_group.o AW_global_awars.o AW_nawar.o AW_preset.o AW_print.o AW_question.o AW_size.o AW_status.o AW_window.o AW_xfig.o AW_xfigfont.o AW_xfont.o AW_xkey.o  GLwMDrawA.o GLwDrawA.o
>> | /usr/bin/ld: GLwMDrawA.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC
>> | GLwMDrawA.o: could not read symbols: Bad value
>> | collect2: ld returned 1 exit status
>> | make[2]: *** [libAW.a] Error 1
>> | make[2]: Leaving directory `/build/buildd/arb-0.0.20071207.1/WINDOW'
>> | make[1]: *** [WINDOW/libAW.dummy] Error 2
>> | make[1]: Leaving directory `/build/buildd/arb-0.0.20071207.1'
>> | make: *** [build-stamp] Error 2
>> | dpkg-buildpackage: failure: debian/rules build gave error exit status 2
>> | ******************************************************************************
>> | Build finished at 20090331-0342
>> | FAILED [dpkg-buildpackage died]

Gruesse,
-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/


Reply to: