From owner-freebsd-questions Fri Oct 18 8:34:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7850437B401 for ; Fri, 18 Oct 2002 08:34:14 -0700 (PDT) Received: from pdxpo.dsl-only.net (pdxpo.dsl-only.net [63.105.16.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id E36B643E8A for ; Fri, 18 Oct 2002 08:34:13 -0700 (PDT) (envelope-from ptacek@technologist.com) Received: from no1spec (unverified [63.105.29.149]) by dsl-only.net (Rockliffe SMTPRA 5.2.4) with SMTP id ; Fri, 18 Oct 2002 08:37:43 -0700 Reply-To: From: "Chris Ptacek" To: "Chris Ptacek" , Cc: Subject: RE: prc-tools-2.2 on FreeBSD-4.7 build errors Date: Fri, 18 Oct 2002 08:37:48 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <31269226357BD211979E00A0C9866DAB02BB99ED@rios.sitaranetworks.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This appears to be an issue with not having libintl available on FreeBSD. I havn't tried these suggestions yet, but I thought I would pass them along. Is the libintl stuff available through a port? - Chris Cut and Paste from another e-mail. ------------------------------------- > /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar > f2.c:1350: undefined reference to > `_nl_msg_cat_cntr' > /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar > f2.c:1350: undefined reference to > `dcgettext__' Perhaps this could be added to BUILDING.html, but really I think it is obvious. Because it is a generic problem and not specific to prc-tools, I would expect that you would get better answers on that FreeBSD mailing list than here. These *msg_cat* and *gettest* functions are all to do with internationalisation and NLS. So the quickest and nastiest way to avoid this is to decide you don't care about NLS and configure with --disable-nls. I do not know why configure thinks that your machine provides libintl but in fact it does not. It seems to me that this likely implies a faulty libintl installation on your machine. Or perhaps there is a problem with prc-tools's configuration scripts in this area. Perhaps someone on that FreeBSD mailing list can shed more light which you can report to us if it is relevant. Cut and Paste from another e-mail. ------------------------------------- This problem appears on Mac OS X as well. Disabling NLS through the autoconf script was always the way around this as you suggested. Interesting though that two BSD systems have the same problem, do you guys think this requires further investigation? -----Original Message----- From: Chris Ptacek [mailto:cptacek@sitaranetworks.com] Sent: Thursday, October 17, 2002 2:34 PM To: 'freebsd-questions@freebsd.org' Cc: 'cptacek@dsl-only.net' Subject: prc-tools-2.2 on FreeBSD-4.7 build errors I have followed the build instructions http://prc-tools.sourceforge.net/install/BUILDING.html and am having problems getting prc-tools-2.2 to build. Has anyone else had any luck? I am using the tarballs specified in the instructions. I have tried switching between patch, gpatch, make, and gmake without luck. I am extracting to /usr/local/pilot ... I actually get 2 different errors depending on my configure call: with: ../prc-tools-2.2/configure --target=m68k-palmos --enable-languages=c,c++ --with-headers=`pwd`/empty --with-palmdev-prefix=/usr/local/pilot I get the following errors: ------------------------------ /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c:1350: undefined reference to `_nl_msg_cat_cntr' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c:1350: undefined reference to `dcgettext__' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c:1350: undefined reference to `_nl_msg_cat_cntr' ../binutils/bfd/libbfd.a(dwarf2.o): In function `parse_comp_unit': /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x15b1): undefined ref erence to `_nl_msg_cat_cntr' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x15cd): undefined ref erence to `dcgettext__' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x15da): undefined ref erence to `_nl_msg_cat_cntr' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x1609): undefined ref erence to `_nl_msg_cat_cntr' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x1625): undefined ref erence to `dcgettext__' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x1632): undefined ref erence to `_nl_msg_cat_cntr' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x16bc): undefined ref erence to `_nl_msg_cat_cntr' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x16d8): undefined ref erence to `dcgettext__' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x16e5): undefined ref erence to `_nl_msg_cat_cntr' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x171d): undefined ref erence to `_nl_msg_cat_cntr' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x1739): undefined ref erence to `dcgettext__' /usr/local/pilot/build/binutils/bfd/../../../prc-tools-2.2/binutils/bfd/dwar f2.c(.text+0x1746): undefined ref erence to `_nl_msg_cat_cntr' gmake[1]: *** [build-prc] Error 1 gmake[1]: Leaving directory `/usr/local/pilot/build/tools' gmake: *** [tools] Error 2 with: ../prc-tools-2.2/configure --enable-targets=m68k-palmos,arm-palmos --enable-languages=c,c++ --with-headers=`pwd`/empty --with-palmdev-prefix=/usr/local/pilot I get the following errors: --------------------------- rm -f bfd-tmp.h cp bfd-in3.h bfd-tmp.h /bin/sh ../../prc-tools-2.2/binutils/bfd/../move-if-change bfd-tmp.h bfd.h rm -f bfd-tmp.h touch stmp-bfd-h /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../prc-tools-2.2/binutils/bfd -I. -D_GNU_SOURCE -I. -I../../prc-tools-2.2/binutils/bfd -I../../prc-tools-2.2/binutils/bfd/../include -I../../prc-tools-2.2/binutils/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../prc-tools-2.2/binutils/bfd/archive.c gcc -DHAVE_CONFIG_H -I. -I../../prc-tools-2.2/binutils/bfd -I. -D_GNU_SOURCE -I. -I../../prc-tools-2.2/binutils/bfd -I../../prc-tools-2.2/binutils/bfd/../include -I../../prc-tools-2.2/binutils/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../prc-tools-2.2/binutils/bfd/archive.c -o archive.o In file included from ../../prc-tools-2.2/binutils/bfd/archive.c:131: ../../prc-tools-2.2/binutils/bfd/sysdep.h:135: libintl.h: No such file or directory gmake[3]: *** [archive.lo] Error 1 gmake[3]: Leaving directory `/usr/local/pilot/build/bfd' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/local/pilot/build/bfd' gmake[1]: *** [all-recursive-am] Error 2 gmake[1]: Leaving directory `/usr/local/pilot/build/bfd' gmake: *** [bfd] Error 2 Thanks, Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message