Current-Users archive

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

Re: Build failure - xorg libXext - port amd64



Hi,
Maybe you could either add _X_HIDDEN before Bool xgeExtRegister in
Xge.c, or remove _X_HIDDEN in extern _X_HIDDEN  Bool xgeExtRegister in
extutils.c.
I tried the first and X seems to work.

Cheers,

pierre

2011/2/24 Patrick Welche <prlw1%cam.ac.uk@localhost>:
> On Thu, Feb 24, 2011 at 05:28:01AM -0800, Paul Goyette wrote:
>> All sources updated moments ago ...
>>
>> #     build  libXext/libXext.so.7.1
>> rm -f libXext.so.7.1
>> /build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-gcc  -Wl,-nostdlib 
>> -B/build/netbsd-local/dest/amd64/usr/lib/ 
>> -B/build/netbsd-local/dest/amd64/usr/lib/  -Wl,-x -shared 
>> -Wl,-soname,libXext.so.7 -Wl,--warn-shared-textrel -o libXext.so.7.1 
>>  -Wl,--whole-archive libXext_pic.a  -Wl,--no-whole-archive 
>> -L/build/netbsd-local/obj/amd64/external/mit/xorg/lib/libX11/dynamic -lX11   
>>  -Wl,-rpath-link,/build/netbsd-local/dest/amd64/lib:/build/netbsd-local/dest/amd64/usr/lib
>>   -L/build/netbsd-local/dest/amd64/lib 
>>  -Wl,-rpath-link,/build/netbsd-local/dest/amd64/usr/X11R7/lib 
>>  -Wl,-rpath,/usr/X11R7/lib  -L/build/netbsd-local/dest/amd64/usr/X11R7/lib   
>> -L/build/netbsd-local/dest/amd64/usr/lib
>> /build-out/netbsd-local/tools/x86_64/amd64/bin/../lib/gcc/x86_64--netbsd/4.1.3/../../../../x86_64--netbsd/bin/ld:
>>  warning: dynamic relocation in readonly section `xgeExtRegister'
>> /build-out/netbsd-local/tools/x86_64/amd64/bin/../lib/gcc/x86_64--netbsd/4.1.3/../../../../x86_64--netbsd/bin/ld:
>>  libXext_pic.a(extutil.pico): relocation R_X86_64_PC32 against symbol 
>> `xgeExtRegister' can not be used when making a shared object; recompile with 
>> -fPIC
>> /build-out/netbsd-local/tools/x86_64/amd64/bin/../lib/gcc/x86_64--netbsd/4.1.3/../../../../x86_64--netbsd/bin/ld:
>>  final link failed: Bad value
>> collect2: ld returned 1 exit status
>> *** [libXext.so.7.1] Error code 1
>> nbmake: stopped in /build/netbsd-local/src/external/mit/xorg/lib/libXext
>> 1 error
>
> Just a datapoint: with the same source, my amd64 build fails in the same
> way, but the i386 build succeeds.
>
> Cheers,
>
> Patrick
>



-- 
Pierre Allegraud


Home | Main Index | Thread Index | Old Index