2014-09-11 45 views
2
../../lib/prebuild-octeon/libpq.a(thread.o): In function `pqGetpwuid': 
thread.c:(.text+0x1c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 
../../lib/prebuild-octeon/libpq.a(ip.o): In function `pg_getaddrinfo_all': 
ip.c:(.text+0x738): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 
/usr/local/Cavium_Networks/OCTEON-SDK-2.3/tools-gcc-4.3/bin/../mips64-octeon-linux-gnu/sys-root/usr/lib/../lib64/libc.a(check_fds.o): In function `check_one_fd': 
/usr/local/Cavium_Networks/toolchain/glibc/csu/check_fds.c:44: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `__libc_errno' 
/usr/local/Cavium_Networks/OCTEON-SDK-2.3/tools-gcc-4.3/bin/../mips64-octeon-linux-gnu/sys-root/usr/lib/../lib64/libc.a(errno-loc.o): In function `__errno_location': 
/usr/local/Cavium_Networks/toolchain/glibc/csu/errno-loc.c:36: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `__libc_errno' 
/usr/local/Cavium_Networks/OCTEON-SDK-2.3/tools-gcc-4.3/bin/../mips64-octeon-linux-gnu/sys-root/usr/lib/../lib64/libc.a(setlocale.o): In function `setlocale': 
/usr/local/Cavium_Networks/toolchain/glibc/locale/setlocale.c:306: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `__libc_errno' 
/usr/local/Cavium_Networks/OCTEON-SDK-2.3/tools-gcc-4.3/bin/../mips64-octeon-linux-gnu/sys-root/usr/lib/../lib64/libc.a(setlocale.o): In function `_nl_locale_subfreeres': 
/usr/local/Cavium_Networks/toolchain/glibc/locale/categories.def:42: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `_nl_current_LC_COLLATE' 
/usr/local/Cavium_Networks/toolchain/glibc/locale/categories.def:68: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `_nl_current_LC_CTYPE' 
/usr/local/Cavium_Networks/toolchain/glibc/locale/categories.def:140: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `_nl_current_LC_MONETARY' 
/usr/local/Cavium_Networks/toolchain/glibc/locale/categories.def:192: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `_nl_current_LC_NUMERIC' 
/usr/local/Cavium_Networks/toolchain/glibc/locale/categories.def:206: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `_nl_current_LC_TIME' 
/usr/local/Cavium_Networks/toolchain/glibc/locale/categories.def:254: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `_nl_current_LC_MESSAGES' 
/usr/local/Cavium_Networks/toolchain/glibc/locale/categories.def:265: relocation truncated to fit: R_MIPS_TLS_GOTTPREL against `_nl_current_LC_PAPER' 
/usr/local/Cavium_Networks/toolchain/glibc/locale/categories.def:274: additional relocation overflows omitted from the output 
collect2: ld returned 1 exit status 

ld version: 

GNU ld (Cavium Inc. Version: 2_3_0 build 116) 2.19 

我怎樣才能修復它R_MIPS_TLS_GOTTPREL?鏈接爲MIPS的可執行文件時,我得到這個錯誤搬遷截斷以適應:對`_nl_current_LC_COLLATE」

+0

重新編譯所有你應該將你的問題出標題,進入後的身體 - 這將更容易審查。 – Anthony 2014-09-11 12:06:41

回答

1

問題的根本原因很可能是由於此錯誤消息顯示:

../../lib/prebuild-octeon/libpq.a(thread.o): In function `pqGetpwuid': 
thread.c:(.text+0x1c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 

你是靜態鏈接的東西,不希望被靜態鏈接。

但是,鏈接器錯誤消息似乎告訴你的是,全局偏移表已經溢出。我認爲GOT中只有64K條目有空間。

+0

我必須使用靜態鏈接。 你有什麼好的想法 – BeSimpleBeGood 2014-09-12 01:33:08

+0

當我使用satical link的時候你有什麼好的想法嗎?我該如何解決它 – BeSimpleBeGood 2014-09-12 01:53:18

+0

@BeSimpleBeGood - 即使使用靜態鏈接,您也需要在運行時提供GLibC名稱服務切換模塊 - 這就是'getpwuid'的警告試圖告訴您的。 – LThode 2015-11-19 16:46:10

0

第一:你可能需要用鏈接-static-libgcc

這可能會或可能不會解決你的第二個問題也:GOT溢出。

如果錯誤仍然存​​在(?你可能會編譯PIC代碼),你可能會逃脫-mxgot

相關問題