From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Germ=E1n?= Arias Newsgroups: gmane.emacs.devel Subject: Re: Can't compile Date: Wed, 10 Aug 2011 16:37:03 -0600 Message-ID: <1313015823.5502.5.camel@german-desktop> References: <1312932079.5495.5.camel@german-desktop> <4E428E4B.9050105@lanl.gov> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1313015840 16088 80.91.229.12 (10 Aug 2011 22:37:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2011 22:37:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Davis Herring Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 11 00:37:16 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QrHOk-0005mX-DC for ged-emacs-devel@m.gmane.org; Thu, 11 Aug 2011 00:37:14 +0200 Original-Received: from localhost ([::1]:44666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrHOk-0006xx-1C for ged-emacs-devel@m.gmane.org; Wed, 10 Aug 2011 18:37:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrHOi-0006xq-3F for emacs-devel@gnu.org; Wed, 10 Aug 2011 18:37:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrHOh-0007ix-20 for emacs-devel@gnu.org; Wed, 10 Aug 2011 18:37:12 -0400 Original-Received: from mail-yi0-f41.google.com ([209.85.218.41]:55880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrHOg-0007ip-Vn for emacs-devel@gnu.org; Wed, 10 Aug 2011 18:37:11 -0400 Original-Received: by yib2 with SMTP id 2so1116183yib.0 for ; Wed, 10 Aug 2011 15:37:09 -0700 (PDT) Original-Received: by 10.150.252.21 with SMTP id z21mr9304349ybh.349.1313015828713; Wed, 10 Aug 2011 15:37:08 -0700 (PDT) Original-Received: from [192.168.1.5] ([190.149.43.49]) by mx.google.com with ESMTPS id u31sm1082772ybu.9.2011.08.10.15.37.05 (version=SSLv3 cipher=OTHER); Wed, 10 Aug 2011 15:37:06 -0700 (PDT) In-Reply-To: <4E428E4B.9050105@lanl.gov> X-Mailer: Evolution 2.22.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.218.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143131 Archived-At: On mié, 2011-08-10 at 07:57 -0600, Davis Herring wrote: > > ../lib/libgnu.a:1695:1: error: stray '\1' in program > > You're compiling a library as if it were source! > > > it show also an error on regex.o. I have a modification in file > > configur.in (I'm testing a patch to work with gnustep). But as I can see > > this isn't the problem. Any advice? > > Either you do have something misconfigured or it's a recently-committed > Makefile problem or so. You can try looking at the log for the lib-src > Makefile to see if it's been changed recently, or double-check your > configure.in changes. > > Davis > Well, after revert the changes all works fine. So definitely is something wrong in my changes. But since I don't have experience with autogen, configure scripts, ... I can't see where is the problem. First I define _NATIVE_OBJC_EXCEPTIONS, according with the value saved in GSConfig.h. This is necessary, in other way we can't compile gnustep headers. Second I keep the gnustep flags in CFLAGS and CPPFLAGS, because these are necessary when execute make. If gnustep is installed using the fsh layout I suppose this isn't necessary. But if is installed with gnustep layout, we need these flags. With these changes I can configure emacs (with gnustep) successfully. But of course there is something wrong. These are my changes. === modified file 'configure.in' --- configure.in 2011-08-04 17:04:39 +0000 +++ configure.in 2011-08-10 21:38:51 +0000 @@ -219,6 +219,14 @@ test "X$GNUSTEP_CONFIG_FILE" = "X" && \ GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf +GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)" + +if grep "BASE_NATIVE_OBJC_EXCEPTIONS 1" ${GNUSTEP_LOCAL_HEADERS}/GNUstepBase/GSConfig.h; then + AC_DEFINE(_NATIVE_OBJC_EXCEPTIONS, 1, [Syncronize native exceptions with gnustep-base.]) +else + AC_DEFINE(_NATIVE_OBJC_EXCEPTIONS, 0, [Syncronize native exceptions with gnustep-base.]) +fi + AC_ARG_ENABLE(ns-self-contained, [AS_HELP_STRING([--disable-ns-self-contained], [disable self contained build under NeXTstep])], @@ -1483,8 +1491,6 @@ HAVE_NS=no NS_IMPL_COCOA=no NS_IMPL_GNUSTEP=no -tmp_CPPFLAGS="$CPPFLAGS" -tmp_CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -x objective-c" CFLAGS="$CFLAGS -x objective-c" TEMACS_LDFLAGS2="\${LDFLAGS}" @@ -1551,8 +1557,6 @@ NS_OBJ="fontset.o fringe.o image.o" NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o" fi -CFLAGS="$tmp_CFLAGS" -CPPFLAGS="$tmp_CPPFLAGS" AC_SUBST(NS_OBJ) AC_SUBST(NS_OBJC_OBJ) AC_SUBST(LIB_STANDARD) What is wrong? Thanks.