From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_V=F6gele?= Newsgroups: gmane.lisp.guile.bugs Subject: building gen-scmconfig.c on FreeBSD Date: Wed, 8 Sep 2004 08:22:29 +0200 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <75F4554A-015F-11D9-A50A-000D93673682@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094624576 22239 80.91.224.253 (8 Sep 2004 06:22:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 06:22:56 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Sep 08 08:22:49 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C4vqz-00054b-00 for ; Wed, 08 Sep 2004 08:22:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4vwF-0000Ic-Be for guile-bugs@m.gmane.org; Wed, 08 Sep 2004 02:28:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4vwD-0000I1-1U for bug-guile@gnu.org; Wed, 08 Sep 2004 02:28:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4vwB-0000Gr-Eo for bug-guile@gnu.org; Wed, 08 Sep 2004 02:28:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4vwB-0000Go-4j for bug-guile@gnu.org; Wed, 08 Sep 2004 02:28:11 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1C4vqj-0005Ch-6P for bug-guile@gnu.org; Wed, 08 Sep 2004 02:22:33 -0400 Original-Received: (qmail 8643 invoked by uid 65534); 8 Sep 2004 06:22:32 -0000 Original-Received: from pD95199F3.dip.t-dialin.net (EHLO [192.168.1.15]) (217.81.153.243) by mail.gmx.net (mp024) with SMTP; 08 Sep 2004 08:22:32 +0200 X-Authenticated: #14729429 Original-To: bug-guile@gnu.org X-Mailer: Apple Mail (2.619) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:1657 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:1657 On FreeBSD string.h includes the system header strings.h. The problem is that Guile provides another file called strings.h which is included instead of the system header file. This causes the build of gen-scmconfig to fail since Guile's strings.h includes scmconfig.h which hasn't been created at this stage. It seems that there is already a workaround for this problem in linguile/Makefile.am: ## Prevent automake from adding extra -I options DEFS = @DEFS@ Unfortunately, that workaround no longer helps since recent versions of automake seem to work differently. I tried to use "DEFS = @DEFS@ -I/usr/include" so that /usr/include is searched before the DEFAULT_INCLUDES. But that didn't work since GCC seems to search the current directory before the directories added with -I. I also tried to use -I- without success. I figured out that gen-scmconfig can be built with CC_FOR_BUILD instead of COMPILE. I'm wondering if the rule gen-scmconfig.$(OBJEXT): gen-scmconfig.c if [ "$(cross_compiling)" = "yes" ]; then \ $(CC_FOR_BUILD) $(DEFS) $(INCLUDES) -c -o $@ $<; \ else \ $(COMPILE) -c -o $@ $<; \ fi in libguile/Makefile.am couldn't be replaced with gen-scmconfig.$(OBJEXT): gen-scmconfig.c $(CC_FOR_BUILD) $(DEFS) $(INCLUDES) -c -o $@ $<; Does anybody know a better solution? _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile