From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23496 invoked by alias); 4 Jul 2006 20:16:35 -0000 Received: (qmail 23479 invoked by uid 22791); 4 Jul 2006 20:16:34 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Jul 2006 20:16:32 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k64KGTQu027928; Tue, 4 Jul 2006 22:16:29 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6) with ESMTP id k64KGTYT007371; Tue, 4 Jul 2006 22:16:29 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6/Submit) id k64KGTIY011211; Tue, 4 Jul 2006 22:16:29 +0200 (CEST) Date: Tue, 04 Jul 2006 20:16:00 -0000 Message-Id: <200607042016.k64KGTIY011211@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: gdb@sourceware.org, binutils@sourceware.org Subject: libintl breakage Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00002.txt.bz2 Currently libbfd fails to build on OpenBSD systems: gcc -DHAVE_CONFIG_H -I. -I../../../src/gdb/bfd -I. -DNETBSD_CORE -I. -I../../../src/gdb/bfd -I../../../src/gdb/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../../src/gdb/bfd/archive.c -o archive.o In file included from ../../../src/gdb/bfd/archive.c:133: ../../../src/gdb/bfd/sysdep.h:172: libintl.h: No such file or directory The problem here seems to be that the system has the gettext packages installed in /usr/local, but the system compiler doesn't search /usr/local by default. Now for some reason the configure script uses -I/usr/local/include and -L/usr/local/include, so it finds the installed libintl and decides not to build the bundled gettext in intl/. However when compiling bfd/ (and presumably other subdirectories) these options are omitted. Somehow the logic in gettext-sister.m5, gettext.m4 and/or lib-prefix.m4 seems to be flawed. A way around this is to configure with --prefix set to something that's not /usr/local. Then the bundled intl is built. Unfortunately it always gets rebuilt, since stamp-h1 is never created. All in all, it seems that the recent changes to use the new gettext were never properly tested :(. Mark