From xemacs-m  Mon May 19 19:35:12 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id TAA00965
	for <xemacs-beta@xemacs.org>; Mon, 19 May 1997 19:35:11 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id RAA16598 for <xemacs-beta@xemacs.org>; Mon, 19 May 1997 17:49:33 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id RAA24869; Mon, 19 May 1997 17:34:36 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id RAA13029; Mon, 19 May 1997 17:34:36 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id RAA12761; Mon, 19 May 1997 17:34:32 -0700
Date: Mon, 19 May 1997 17:34:32 -0700
Message-Id: <199705200034.RAA12761@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: georgn@canada.Sun.COM
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: b1 success
In-Reply-To: <199705191905.PAA19737@verve.canada.sun.com>
References: <199705191905.PAA19737@verve.canada.sun.com>
X-Mailer: VM 6.31 under 20.2 XEmacs Lucid
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Georg" == Georg Nikodym <georgn@canada> writes:

Georg> The --with-cde option to configure adds a -lDtSvc to everything
Georg> including the configuration test programs that it attempts to build
Georg> and run.

Georg> However, on Solaris, this library lives in /usr/dt/lib and as such the 
Georg> wee test programs fall down.

Georg> The correct fix is to not require the test programs to link with crap
Georg> that can't possibly be involved in figuring out the sizeof(long) but
Georg> this involves way too much dorking with configure which is a journey
Georg> into the heart of darkness (welcome back, Martin ;-)

Georg> Instead, I set LDFLAGS in my environment to:

Georg> 	"-R/usr/openwin/lib -R/usr/dt/lib"

I have designed the new configure to do better recognition of CFLAGS,
LDFLAGS and CPPFLAGS environment variables.

As a workaround today, you can use
LDFLAGS="-R/usr/dt/lib:/usr/openwin/lib"
--site-runtime-libraries=/usr/dt/lib:/usr/openwin/lib

Georg> ran configure and SIZEOF_LONG is four again (instead of zero, which
Georg> really messes up the lisp union and stops pretty much everything from
Georg> compiling).

Georg> The troubling thing is that this is redundant in the build of XEmacs
Georg> since elsewhere a -R/usr/dt/lib:/usr/openwin/lib:/opt/SUNWdt/lib which 
Georg> I know to be artificial since I have no /opt/SUNWdt...

/opt/SUNWdt is intentional: the binaries you build may be run someday
on an old Solaris system with the only Motif available in /opt/SUNWdt.

Georg> <rant>
Georg> In my world, here is the compilation command for gnudoit:

Georg> cc -g -xarch=v8plusa -xchip=ultra -DHAVE_CONFIG_H  -I/ot/misc_includes    -I/usr/dt/include  -I/usr/openwin/include -Demacs -I../src -I/import/verve/georgn/xemacs/xemacs-20.3-b1/lib-src -I/import/verve/georgn/xemacs/xemacs-20.3-b1/lib-src/../src  -o gnudoit /import/verve/georgn/xemacs/xemacs-20.3-b1/lib-src/gnudoit.c gnuslib.o -L/usr/ccs/lib -L/ot/misc_libs_static -xildoff -R/usr/dt/lib:/usr/openwin/lib:/opt/SUNWdt/lib   -L/usr/dt/lib -L/usr/openwin/lib  -R/usr/openwin/lib -R/usr/dt/lib -lSM -lICE -lXm -ltiff -lpng -lz -ljpeg -lcompface -lXpm -lDtSvc -ltt  -lXau -lXmu -lXext -lXt -lX11  -lkvm -lkstat -lm  /usr/demo/SOUND/lib/libaudio.a -ltermlib  -lsocket -lnsl -lelf -lgen -ldl 

Georg> gnudoit does not need cde, tooltalk, motif, tiff, png, z, jpef,
Georg> compface, xpm, kvm, kstat, math, sound, elf, or dynamic linking
Georg> support!

Georg> Is it possible for us to acknowledge that we're building more than one 
Georg> binary product and that the same compile options are not necessarily
Georg> appropriate for all of them?
Georg> </rant>

Fixes appreciated.  However, note that gnudoit uses gnuslib.o which
uses Xauth, which pulls in X, so that you're going to get a lot of the
above libraries anyways.  Some of the libs come from LIBS_SYSTEM and
friends in the s&m files, from which we haven't (yet) eliminated them.
Portably figuring out which libs we can leave out may not be the best
way to improve XEmacs.

Martin

