From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [simon@limmat.switch.ch: Re: 22.0.95 fails to link (missing -lX11) on Solaris with Sun cc] Date: Sun, 04 Mar 2007 21:55:04 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1173063540 17509 80.91.229.12 (5 Mar 2007 02:59:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 02:59:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jan Djärv Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 05 03:58:53 2007 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 1HO3PY-0000GP-8L for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 03:58:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO3PX-0005pp-PX for ged-emacs-devel@m.gmane.org; Sun, 04 Mar 2007 21:58:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HO3NX-0004Na-7M for emacs-devel@gnu.org; Sun, 04 Mar 2007 21:56:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HO3NW-0004NH-Qm for emacs-devel@gnu.org; Sun, 04 Mar 2007 21:56:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO3NW-0004NC-EX for emacs-devel@gnu.org; Sun, 04 Mar 2007 21:56:46 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HO3NW-0001Kb-30 for emacs-devel@gnu.org; Sun, 04 Mar 2007 21:56:46 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HO3Ls-0002en-Db; Sun, 04 Mar 2007 21:55:04 -0500 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:67333 Archived-At: Would this change fix the new bug and avoid the old one? ------- Start of forwarded message ------- From: Simon Leinen MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 4 Mar 2007 10:41:42 +0100 To: rms@gnu.org Subject: Re: 22.0.95 fails to link (missing -lX11) on Solaris with Sun cc In-Reply-To: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.4 Richard Stallman writes: > I tried to compile the latest pretest on my SPARC workstation running > Solaris post-10 ("Nevada b57"), using this configuration > What was the last pretest (or CVS Emacs version) that did build? Hm, hard to say. I did try 22.0.91, and I don't think I had that particular problem. But for some other reasons I abandoned the build. Now with 22.0.95, I can fix the issue for me by applying this patch: *** emacs-22.0.95/src/Makefile.in 2007/03/02 16:39:05 1.1 - --- emacs-22.0.95/src/Makefile.in 2007/03/02 16:42:22 *************** *** 405,411 **** #if HAVE_XFT #undef LIB_X11_LIB /* XFT_LIBS includes -lX11 */ #define LIB_X11_LIB ! XFT_LIBS=@XFT_LIBS@ #endif /* HAVE_XFT */ #if HAVE_XPM - --- 405,411 ---- #if HAVE_XFT #undef LIB_X11_LIB /* XFT_LIBS includes -lX11 */ #define LIB_X11_LIB ! XFT_LIBS=@XFT_LIBS@ -lX11 #endif /* HAVE_XFT */ #if HAVE_XPM and I get a working Emacs binary with Xft support, at least when I build in 32-bit mode. I have been using that binary for a couple of days and it worked very well (I'm using it right now). When I tried to build in 64-bit mode, "make bootstrap" failed: echo Directories: $wins; \ ../src/bootstrap-emacs -batch --no-site-file --multibyte -l autoload --eval '(setq generated-autoload-file "/test/leinen/emacs-22.0.95/lisp/loaddefs.el")' -f batch-update-autoloads $wins find /test/leinen/emacs-22.0.95/lisp -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ wd=/test/leinen/emacs-22.0.95/lisp; subdirs=`(cd $wd; find . -type d -print)`; for file in $subdirs; do case $file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/* | */=* ) ;; *) wins="$wins $wd/$file" ;; esac; done; \ els=`echo $wins | tr ' \011' '\012\012' | \ sed -e 's|\(.\)$|\1/|' -e 's|^\./||' -e 's|$|*.el|'`; \ for el in /test/leinen/emacs-22.0.95/lisp/emacs-lisp/byte-opt.el /test/leinen/emacs-22.0.95/lisp/emacs-lisp/bytecomp.el /test/leinen/emacs-22.0.95/lisp/subr.el /test/leinen/emacs-22.0.95/lisp/progmodes/cc-mode.el /test/leinen/emacs-22.0.95/lisp/progmodes/cc-vars.el $els; do \ if test -f $el; \ then \ echo Compiling $el; \ EMACSLOADPATH=/test/leinen/emacs-22.0.95/lisp ../src/bootstrap-emacs -batch --no-site-file --multibyte -f batch-byte-compile-if-not-done $el || exit 1; \ fi \ done Directories: /test/leinen/emacs-22.0.95/lisp/. /test/leinen/emacs-22.0.95/lisp/./progmodes /test/leinen/emacs-22.0.95/lisp/./play /test/leinen/emacs-22.0.95/lisp/./calc /test/leinen/emacs-22.0.95/lisp/./emulation /test/leinen/emacs-22.0.95/lisp/./net /test/leinen/emacs-22.0.95/lisp/./mail /test/leinen/emacs-22.0.95/lisp/./international /test/leinen/emacs-22.0.95/lisp/./textmodes /test/leinen/emacs-22.0.95/lisp/./eshell /test/leinen/emacs-22.0.95/lisp/./mh-e /test/leinen/emacs-22.0.95/lisp/./gnus /test/leinen/emacs-22.0.95/lisp/./calendar /test/leinen/emacs-22.0.95/lisp/./language /test/leinen/emacs-22.0.95/lisp/./emacs-lisp /test/leinen/emacs-22.0.95/lisp/./url /test/leinen/emacs-22.0.95/lisp/./erc Compiling /test/leinen/emacs-22.0.95/lisp/emacs-lisp/byte-opt.el Generating autoloads for ps-print.el... Generating autoloads for ps-print.el...done Generating autoloads for subdirs.el... Generating autoloads for subdirs.el...done Generating autoloads for version.el... Generating autoloads for version.el...done Generating autoloads for eshell/esh-groups.el... Generating autoloads for eshell/esh-groups.el...done Saving file /test/leinen/emacs-22.0.95/lisp/loaddefs.el... Wrote /test/leinen/emacs-22.0.95/lisp/loaddefs.el Wrote /test/leinen/emacs-22.0.95/lisp/emacs-lisp/byte-opt.elc Compiling /test/leinen/emacs-22.0.95/lisp/emacs-lisp/bytecomp.el In toplevel form: emacs-lisp/bytecomp.el:156:1:Error: Symbol's value as variable is void: defconst-tmp-var make[2]: *** [compile] Error 1 make[2]: Leaving directory `/test/leinen/emacs-22.0.95/lisp' make[1]: *** [bootstrap-build] Error 2 make[1]: Leaving directory `/test/leinen/emacs-22.0.95' make: *** [bootstrap] Error 2 When I do the bootstrap in 32-bit mode, and just "make" in 64-bit mode, I do get an 64-bit Emacs binary, but the binary dumps core. Unfortunately I don't have a working 64-bit debugging environment. Note that this is all using Sun's C compiler (Sun C 5.7, not the latest & greatest). I haven't tried to build using GCC yet. - -- Simon. ------- End of forwarded message -------