From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: GNUStep build problems Date: Fri, 22 Aug 2008 09:30:17 -0700 Message-ID: <200808221630.m7MGUHPI023905@sallyv1.ics.uci.edu> References: <20080821090538.1e904b68@terra.solaris> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219422736 20159 80.91.229.12 (22 Aug 2008 16:32:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 16:32:16 +0000 (UTC) Cc: emacs@gentoo.org, gnustep@gentoo.org, emacs-devel@gnu.org To: Christian Faulhammer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 22 18:33:08 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWZZF-0000tz-1I for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 18:32:53 +0200 Original-Received: from localhost ([127.0.0.1]:52360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWZYH-00027d-Aj for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 12:31:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWZYD-00027O-3C for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:31:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWZYB-00027C-Db for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:31:47 -0400 Original-Received: from [199.232.76.173] (port=46488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWZYB-000279-6f for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:31:47 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:60766) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1KWZYA-0005z2-LV for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:31:46 -0400 X-ICS-MailScanner-Watermark: 1220027419.21228@Zs7iIUp5KbrrzBwaLSF4oA Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m7MGUHPI023905; Fri, 22 Aug 2008 09:30:17 -0700 (PDT) In-Reply-To: <20080821090538.1e904b68@terra.solaris> (Christian Faulhammer's message of "Thu, 21 Aug 2008 09:05:38 +0200") Original-Lines: 54 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.209, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_BJ 0.08, TW_DX 0.08, TW_XF 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102834 Archived-At: Christian Faulhammer writes: > Hi, > > we are trying to add GNUstep support for Emacs in Gentoo Linux. > Unfortunately Emacs build fails from HEAD during bootstrapping, maybe > you can have a look at it, a log of the build process is attached. > Also there has been a linker problem as in Gentoo the GNUstep libraries > are not in FHS locations but in the ones recommended by GNUstep. A > patch for that is attached. > > CCing Gentoo Emacs and GNUstep teams. > > V-Li > > --- src/Makefile.in.orig 2008-08-14 10:49:19.000000000 +0200 > +++ src/Makefile.in 2008-08-14 10:49:22.000000000 +0200 > @@ -938,7 +938,7 @@ > temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT} > echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst > #ifdef NS_IMPL_GNUSTEP > - $(CC) -rdynamic YMF_PASS_LDFLAGS (${TEMACS_LDFLAGS} -lgnustep-gui -lgnustep-base -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread ) -o temacs ${obj} ${otherobj} OBJECTS_MACHINE ${LIBES} > + $(CC) -rdynamic YMF_PASS_LDFLAGS (${TEMACS_LDFLAGS} -L@GNUSTEP_SYSTEM_LIBRARIES@ [snip] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The recommended way is not to substitute directly in a make rule, but use a variable. > #else > $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ > -o temacs ${STARTFILES} ${obj} ${otherobj} \ The best would be to get rid of the #ifdef NS_IMPL_GNUSTEP, and use the default rule for temacs${EXEEXT}, passing the correct flags in the existing variables, or add new ones if needed. Given that not too many people work/even have access to GNUStep, help getting that right would be greatly appreciated. Now looking at the log: ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --program-suffix=-emacs-23 --infodir=/usr/share/info/emacs-23 --without-carbon --with-sound --with-x --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --disable-font-backend --without-freetype --without-xft --without-libotf --without-m17n-flt --with-x-toolkit=gtk --without-hesiod --with-ns --disable-ns-self-contained --without-kerberos --without-kerberos5 --with-gpm --with-dbus --build=i686-pc-linux-gnu configure: WARNING: Unrecognized options: --without-carbon, --disable-font-backend ^^^^^^^^^^^^^^^^^^ This warning is obvious... --with-x --with-x-toolkit=gtk make no sense when using --with-ns --with-gif --with-jpeg etc, are turned on by default, no need to bother with them. You can try to get around the byte compilation problem by first configure --with-x, do a make to create the .elc files, and then reconfigure --with-ns and try again. It's a hack, but it might help until someone finds a proper fix.