From xemacs-m  Fri May 23 10:56:41 1997
Received: from goggins.bath.ac.uk (pp@goggins.bath.ac.uk [138.38.32.13])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA13465
	for <xemacs-beta@xemacs.org>; Fri, 23 May 1997 10:56:31 -0500 (CDT)
Received: from niss.ac.uk (actually host hands.niss.ac.uk) 
          by goggins.bath.ac.uk with SMTP (PP); Fri, 23 May 1997 15:28:18 +0100
Received: by niss.ac.uk (SMI-8.6/SMI-SVR4)	id OAA11452;
          Fri, 23 May 1997 14:28:22 GMT
Date: Fri, 23 May 1997 14:28:22 GMT
Message-Id: <199705231428.OAA11452@niss.ac.uk>
From: N J Doye <nic@niss.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Subject: 20.3-b2 fails configure Sol2.5+cc
X-Mailer: VM 6.31 under 20.1 XEmacs Lucid (beta10)

Hi all,

sorry, haven't figured out what's going on, yet. ld is getting an
argument it can't handle. (-2 from the -O2, I think).

uname -a: SunOS hands.niss.ac.uk 5.5 Generic_103093-05 sun4m sparc SUNW,SPARCstation-5

-------Compilation script 
-------(included in full, instead of moral equivalent - just in case ;-)

#!/bin/sh

PATH=/opt/SUNWspro/bin:/usr/local/bin:$PATH ; export PATH

XEMACS_SRC=/home/hands/ccsnjd/Src/xemacs-20.3-b2 ; export XEMACS_SRC

#From compiling on *.maths.bath.ac.uk. Yucky OpenWin at *.niss.ac.uk
#LD_RUN_PATH=/tools/X11R6.1/lib; export LD_RUN_PATH
#LD_LIBRARY_PATH=/tools/X11R6.1/lib; export LD_LIBRARY_PATH

$XEMACS_SRC/configure sparc-sun-solaris2.5 \
--with-x=yes --dynamic \
--prefix=/home/hands/ccsnjd/Opt \
--with-sound=native --with-gcc=no --with-gif=yes --with-xpm=yes \
--extra-verbose 

-------Ends (Compilation script)

-------Output:
hands $ ./xemacs-config-niss 
checking whether ln -s works... yes
checking the configuration name
    xemacs will be linked with "debug.o"
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc... cc
checking whether the C compiler (cc -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
-------Ends (Output)

-------Bit of config.log
configure:1556: checking whether the C compiler (cc -g -O2 ) works
configure:1572: cc -o conftest -g -O2             conftest.c         1>&5
Warning: option -2 passed to ld
/usr/ccs/bin/ld: illegal option -- 2
usage: ld [-abd:e:f:h:il:mo:rstu:z:B:D:F:GI:L:M:Q:R:S:VY:] file(s)
        [-a]            create an absolute file
-------Ends (Bit of config.log)

Will try to fix (but I bet Martin'll get there quicker),
nic
-- 
Nic Doye,      Computer Officer,     NISS    | e-mail:    nic@niss.ac.uk
(National Information Services & Systems),   | tel: +44 1225 826826x4757
University of Bath,  Bath.   BA2 7AY.  UK.   | fax:      +44 1225 826117

