Nmap Development mailing list archives

Re: trouble compiling 3.25 on Solaris 9


From: <jaye_gettes () hushmail com>
Date: Wed, 23 Apr 2003 11:29:03 -0700




On Wed, 23 Apr 2003 11:21:55 -0700 Bernd Zeimetz <zeimetz () rbg informatik tu-
darmstadt.de> wrote:
Hi,

I can't even get past configure on solaris 8 or 9 with preinstalled
gcc
3.2.2 and nmap 3.25.  The error is configure is:

Sun doesn't deliver gcc with Solaris AFAIK.

You are correct.  I should have said precompiled gcc from sunfreeware.
 I apologize.  In following your example below, this is obviously not
an nmap issue at all, but a compiler, or more likey, newbie to compiling
code, issue.


Please provide us the output from
touch foo.c
gcc -v foo.c

Odo# touch foo.c                         
Odo# gcc -v foo.c
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/specs
Configured with: ../configure --disable-nls --with-ld=/usr/ccs/bin/ld
--with-as=/usr/ccs/bin/as
Thread model: posix
gcc version 3.2.2
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/cc1 -lang-c -v -D__GNUC__=3
-D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -Dsparc
-Dsun -Dunix -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc__
-D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME
-D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__
-D__STDC_HOSTED__=1 -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int
-D__WCHAR_TYPE__=long int -D__WINT_TYPE__=long int -D__GCC_NEW_VARARGS__
-Acpu=sparc -Amachine=sparc foo.c -quiet -dumpbase foo.c -version -o
/var/tmp//cc2viA9P.s
GNU CPP version 3.2.2 (cpplib) (sparc ELF)
GNU C version 3.2.2 (sparc-sun-solaris2.9)
        compiled by GNU C version 3.2.2.
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/sparc-sun-solaris2.9/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/include
 /usr/include
End of search list.
 /usr/ccs/bin/as -V -Qy -s -o /var/tmp//ccVVEC7u.o /var/tmp//cc2viA9P.s
/usr/ccs/bin/as: Sun WorkShop 6 update 2 Compiler Common 6.2 Solaris_9_CBE
2001/04/02
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/collect2 -V -Y P,/usr/ccs/lib:/usr/lib
-Qy /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/crt1.o /usr/local/lib/gcc-
lib/sparc-sun-solaris2.9/3.2.2/crti.o /usr/ccs/lib/values-Xa.o /usr/local/lib/gcc-
lib/sparc-sun-solaris2.9/3.2.2/crtbegin.o -L/usr/local/lib/gcc-lib/sparc-
sun-solaris2.9/3.2.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib/gcc-
lib/sparc-sun-solaris2.9/3.2.2/../../.. /var/tmp//ccVVEC7u.o -lgcc -lgcc_eh
-lc -lgcc -lgcc_eh -lc /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/crtend.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.374
Undefined                       first referenced
 symbol                             in file
main                                /usr/local/lib/gcc-lib/sparc-sun-
solaris2.9/3.2.2/crt1.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status



and attach config.log to your mail.

configure:1481: checking whether the C++ compiler works
configure:1487: ./a.out
ld.so.1: ./a.out: fatal: libstdc++.so.5: open failed: No such
file or
directory
./configure: line 1:  3159 Killed                  ./$ac_file


but my LDFLAGS is set to -L/usr/local/lib and libstdc++.so.5 is
soft
linked to libstdc++.so.5.0.2, which is there and readable by root,

which
is what I'm compiling as.

_never_ compile as root!! There could be an rm -rf / in make clean.
Or anything else you don't want....



This machine is completely disposable.  but thank you, I will retry as
myself.

Bye,
Bernd

-- 

 Bernd Zeimetz  - DH4PH -               Tel.: +49 (0)6151 16-4333
 RechnerBetriebsGruppe               Raum: S1/13 11a (alt 25/11a)
 Fachbereich Informatik         Technische Universitaet Darmstadt



---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to 
nmap-dev-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).



Current thread: