From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115848 invoked by alias); 30 Oct 2019 18:41:55 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 115517 invoked by uid 89); 30 Oct 2019 18:41:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-3.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=H*F:U*joel, this=c2, H*c:alternative, HX-HELO:sk:mail-ed?= X-HELO: mail-ed1-f52.google.com Received: from mail-ed1-f52.google.com (HELO mail-ed1-f52.google.com) (209.85.208.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Oct 2019 18:41:52 +0000 Received: by mail-ed1-f52.google.com with SMTP id f25so2613093edw.10 for ; Wed, 30 Oct 2019 11:41:52 -0700 (PDT) Return-Path: Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com. [209.85.128.49]) by smtp.gmail.com with ESMTPSA id r17sm20386edw.7.2019.10.30.11.41.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Oct 2019 11:41:49 -0700 (PDT) Received: by mail-wm1-f49.google.com with SMTP id v3so4884994wmh.1 for ; Wed, 30 Oct 2019 11:41:49 -0700 (PDT) MIME-Version: 1.0 Reply-To: joel@rtems.org From: Joel Sherrill Date: Wed, 30 Oct 2019 18:41:00 -0000 Message-ID: Subject: Build Error on FreeBSD 12 To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-10/txt/msg00051.txt.bz2 Hi When building gdb 8.3 for *-rtems5 targets on FreeBSD 12, we are getting undefined errors for libiconv symbols. The messages are like this: ================================ CXXLD gdb charset.o: In function `convert_between_encodings(char const*, char const*, unsigned char const*, unsigned int, int, obstack*, transliterations)': charset.c:(.text+0x251): undefined reference to `libiconv_open' charset.c:(.text+0x2df): undefined reference to `libiconv' charset.c:(.text+0x434): undefined reference to `libiconv_close' charset.c:(.text+0x486): undefined reference to `libiconv_close' charset.o: In function `wchar_iterator::wchar_iterator(unsigned char const*, unsigned int, char const*, unsigned int)': charset.c:(.text+0x4f9): undefined reference to `libiconv_open' ================================ Q1: The compile line is shortened in the output so I can't tell what it is linking command is really doing. What's the magic for having the full command lines printed? Q2: Does this sound familiar to anyone? We build fine on other OSes and apparently this doesn't happen on FreeBSD 11. Any hint is appreciated. The config.log does show it found iconv(). Thanks. --joel