From xemacs-m  Sun May 18 19:54:28 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 TAA14813
	for <xemacs-beta@xemacs.org>; Sun, 18 May 1997 19:54:27 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id SAA20754 for <xemacs-beta@xemacs.org>; Sun, 18 May 1997 18:08:34 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id RAA24509; Sun, 18 May 1997 17:53:51 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id RAA04047; Sun, 18 May 1997 17:53:54 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id RAA10051; Sun, 18 May 1997 17:53:50 -0700
Date: Sun, 18 May 1997 17:53:50 -0700
Message-Id: <199705190053.RAA10051@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: Gary.Foster@Corp.Sun.COM (Gary D. Foster)
Cc: xemacs-beta@xemacs.org
Subject: sparc linux configure failure
In-Reply-To: <bcioha8z6at.fsf@corp.Sun.COM>
References: <bcioha8z6at.fsf@corp.Sun.COM>
X-Mailer: VM 6.31 under 20.2 XEmacs Lucid
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Gary" == Gary D Foster <Gary.Foster@Corp> writes:

Gary> Ok, this seems to be the line that it's failing on in the configure
Gary> tests:

Gary> First off, I'm getting the following failure:

Gary>  configure:3865: checking for IceConnectionNumber in -lICE
Gary>  configure:3881: gcc -o conftest     -DFUNCPROTO=11 -DNARROWPROTO-D_BSD_SOURCE    -I/usr/X11R6.1/include       conftest.c -lICE -lm       -lgcc -lc -lgcc /usr/lib/crtn.o  1>&5
Gary> ld: cannot open -lICE: No such file or directory

Gary> This is fixed by adding a -L/usr/X11R6.1/lib to the above compile
Gary> command.  Why isn't it passing the x-libraries path to this command?
Gary> Shouldn't it be?

This is also a mystery to me.

On my X11R6 system (not-yet-released Solaris 2.6) it does correctly
autodetect -lICE and -lSM.

Gary> The next problem (and I think the more serious one is the following:

Gary> configure:4084: checking for XtOpenDisplay in -lXt 
Gary> configure:4100: gcc -o conftest     -DFUNCPROTO=11 -DNARROWPROTO -D_BSD_SOURCE    -I/usr/X11R6.1/include       -L/usr/X11R6.1/lib conftest.c  -lXt   -lX11  -lm       -lgcc -lc -lgcc /usr/lib/crtn.o  1>&5
Gary> /usr/X11R6.1/lib/libXt.so: undefined reference to `SmcSaveYourselfDone'
...

Gary> If I add '-lICE -lSM' to the above to link in the libICE and libSM
Gary> libraries it proceeds without a hitch.  Does this make sense to anyone 
Gary> with more X programming experience than I (not hard...)?  I've never
Gary> even HEARD of libSM before now.  Have I got a screwy setup?

More digging is required (and I'll do some of it).

Martin

