Current-Users archive

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

Re: fontconfig/freetype2 breaks amd64 build on netbsd-5/i386 host



On Tue, Mar 25, 2014 at 04:25:36PM -0500, John D. Baker wrote:
> Following the updates/fixes to fontconfig/freetype2 in -current, building
> for amd64 target on my netbsd-5/i386 host consistently fails as follows:
> 
> [...]
> --- libfontconfig.so.2.2 ---
> #     build  src/libfontconfig.so.2.2
> rm -f libfontconfig.so.2.2
> /d0/build/current/tools/i386/bin/x86_64--netbsd-gcc  -Wl,-x -shared 
> -Wl,-soname,libfontconfig.so.2 -Wl,--warn-shared-textrel 
> -Wl,-Map=libfontconfig.so.2.map   --sysroot=/d0/build/current/DEST/amd64 
> -Wl,-rpath,/usr/X11R7/lib -L=/usr/X11R7/lib  -o libfontconfig.so.2.2  
> -Wl,-rpath-link,/d0/build/current/DEST/amd64/lib  -L=/lib  
> -Wl,--whole-archive libfontconfig_pic.a  -Wl,--no-whole-archive 
> -L/d0/build/current/obj/amd64/external/mit/expat/lib/libexpat -lexpat 
> -L/d0/build/current/obj/amd64/external/mit/xorg/lib/freetype -lfreetype 
> /d0/build/current/tools/i386/lib/gcc/x86_64--netbsd/4.8.3/../../../../x86_64--netbsd/bin/ld:
>  /d0/build/current/DEST/amd64/usr/X11R7/lib/libfreetype.a(ftxf86.o): 
> relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a 
> shared object; recompile with -fPIC
> /d0/build/current/DEST/amd64/usr/X11R7/lib/libfreetype.a: could not read 
> symbols: Bad value
> collect2: error: ld returned 1 exit status
> *** [libfontconfig.so.2.2] Error code 1
> nbmake[9]: stopped in /x/current/src/external/mit/xorg/lib/fontconfig/src
> 1 error

Can you find the command line used to compile ftxf86.o ?
and/or extract the object file from the library and feed it through
'objdump -dr' to find the relocation (and to see if it looks
like PIC code at all).

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index