From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15826 invoked by alias); 18 Aug 2012 12:42:12 -0000 Received: (qmail 15794 invoked by uid 22791); 18 Aug 2012 12:42:11 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL,TW_LN,TW_YM X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Aug 2012 12:41:58 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8Y00E00AOQVR00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sat, 18 Aug 2012 15:41:44 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8Y00E55B9JT440@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sat, 18 Aug 2012 15:41:44 +0300 (IDT) Date: Sat, 18 Aug 2012 12:42:00 -0000 Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and truncated. From: Eli Zaretskii Subject: Failure to link GDB 7.6 To: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83boi8gynf.fsf@gnu.org> Content-transfer-encoding: 7BIT X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00506.txt.bz2 On GNU/Linux, I get the following link error trying to build GDB 7.5: gcc -g -O2 \ -o gdb gdb.o amd64-tdep.o amd64-linux-tdep.o i386-tdep.o i387-tdep.o i386-linux-tdep.o glibc-tdep.o solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o inf-ptrace.o fork-child.o i386-nat.o amd64-nat.o amd64-linux-nat.o linux-nat.o linux-osdata.o proc-service.o linux -thread-db.o linux-fork.o linux-procfs.o linux-ptrace.o remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o cli-dump.o cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-logging.o cli-interp.o cli-utils.o mi-out.o mi-console.o mi-cmds.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o mi-cmd-info.o mi-interp.o mi-main.o mi-parse.o mi-getopt.o tui-command.o tui-data.o tui-disasm.o tui-file.o tui-hooks.o tui-interp.o tui-io.o tui-layout.o tui-out.o tui-regs.o tui-source.o tui-stack.o tui-win.o tui-windata.o tui-wingeneral.o tui-winsource.o tui.o python.o py-auto-load.o py-block.o py-bpe ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lncurses -lz -lm -L/home/e/eliz/lib/python2.6/config -lpthread -ldl -lutil -lm -lpython2.6 -Xlinker -export-dynamic /home/e/eliz/lib/libexpat.so -Wl,-rpath -Wl,/home/e/eliz/lib ../libiberty/libiberty.a build-gnulib/import/libgnu.a -ldl -rdynamic /home/e/eliz/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_tmpnam': /home/e/eliz/Python-2.6.1/./Modules/posixmodule.c:7079: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' /home/e/eliz/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_tempnam': /home/e/eliz/Python-2.6.1/./Modules/posixmodule.c:7034: warning: the use of `tempnam' is dangerous, better use `mkstemp' charset.o: In function `do_cleanup_iterator': /home/e/eliz/gdb-7.5/gdb/charset.c:615: undefined reference to `libiconv_close' charset.o: In function `validate': /home/e/eliz/gdb-7.5/gdb/charset.c:325: undefined reference to `libiconv_open' /home/e/eliz/gdb-7.5/gdb/charset.c:329: undefined reference to `libiconv_close' /home/e/eliz/gdb-7.5/gdb/charset.c:331: undefined reference to `libiconv_open' /home/e/eliz/gdb-7.5/gdb/charset.c:335: undefined reference to `libiconv_close' charset.o: In function `wchar_iterate': /home/e/eliz/gdb-7.5/gdb/charset.c:648: undefined reference to `libiconv' charset.o: In function `make_wchar_iterator': /home/e/eliz/gdb-7.5/gdb/charset.c:594: undefined reference to `libiconv_open' charset.o: In function `convert_between_encodings': /home/e/eliz/gdb-7.5/gdb/charset.c:487: undefined reference to `libiconv_open' /home/e/eliz/gdb-7.5/gdb/charset.c:509: undefined reference to `libiconv' charset.o: In function `cleanup_iconv': /home/e/eliz/gdb-7.5/gdb/charset.c:465: undefined reference to `libiconv_close' collect2: ld returned 1 exit status It uses libiconv I built myself: checking how to link with libiconv... /home/e/eliz/lib/libiconv.so -Wl,-rpath -Wl,/home/e/eliz/lib checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); What is wrong with my libiconv? (There's no other libiconv on this system, which is why I built my own some time ago.) TIA