Wireshark-dev: [Wireshark-dev] wireshark 1.4.4 build failure on ppc64: TOC relocation error
From: "Chun Yan Liu" <cyliu@xxxxxxxxxx>
Date: Tue, 15 Mar 2011 23:38:32 -0600
Hi, All,

I'm trying to build wireshark 1.4.4 on ppc64 platform against SLES10 ( linux 2.6.16, autoconf 2.59, libgcc 4.1.2) but met the following problem:
 ####################################################
 dissectors/.libs/libdirtydissectors.a(packet-rrc.o):(.text+0xcdf7a): relocation
 truncated to fit: R_PPC64_TOC16_DS against `.toc'+10000
 dissectors/.libs/libdirtydissectors.a(packet-rrc.o):(.text+0xcdfa6): relocation
 truncated to fit: R_PPC64_TOC16_DS against `.toc'+10008
 ......
 dissectors/.libs/libdirtydissectors.a(packet-rrc.o):(.text+0xce20a): relocation
 truncated to fit: R_PPC64_TOC16_DS against `.toc'+10040
 dissectors/.libs/libdirtydissectors.a(packet-rrc.o):(.text+0xce236): relocation
 truncated to fit: R_PPC64_TOC16_DS against `.toc'+10048
 dissectors/.libs/libdirtydissectors.a(packet-rrc.o):(.text+0xce2ae): additional
 relocation overflows omitted from the output
 ####################################################
 The same package can build successfully on other platforms, and can build successfully on all platforms (including ppc64) against SLES11 (Linux 2.6.32, libgcc43-4.3.4, autoconf 2.63).

I found the same bug in bugzilla:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4346

Is there any fix to that? or any other workaround?

Thanks,
Chunyan