I am trying to compile/build an application using gcc (snort).
I got and installed gcc 3.4.6 from the sun freeware site along with the 3.4.6
libraries.
I used the package add utility to install them.
When I try to run configure I get the error: C compiler cannot create
executables
My path is:
/usr/gun/bin:/usr/local/bin:/opt/SDK/jdk/bin:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin:/opt/SDK/bin:/opt/openoffice.org2.4/program:/opt/SDK/jdk/jre/bin:/usr/sfw/bin:/opt/csw/bin
I have exported the following:
export CC=gcc
export CXX=g++
Any thoughts on my problem?
The config.log follows:
***************
uname -m = i86pc
uname -r = 5.11
uname -s = SunOS
uname -v = snv_86
/usr/bin/uname -p = i386
/bin/uname -X = System = SunOS
Node = fabbri-server
Release = 5.11
KernelID = snv_86
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 4
/bin/arch = i86pc
/usr/bin/arch -k = i86pc
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/gun/bin
PATH: /usr/local/bin
PATH: /opt/SDK/jdk/bin
PATH: /usr/gnu/bin
PATH: /usr/bin
PATH: /usr/X11/bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/SDK/bin
PATH: /opt/openoffice.org2.4/program
PATH: /opt/SDK/jdk/jre/bin
PATH: /usr/sfw/bin
PATH: /opt/csw/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2036: checking for a BSD-compatible install
configure:2092: result: /usr/bin/ginstall -c
configure:2103: checking whether build environment is sane
configure:2146: result: yes
configure:2174: checking for a thread-safe mkdir -p
configure:2213: result: /usr/gnu/bin/mkdir -p
configure:2226: checking for gawk
configure:2256: result: no
configure:2226: checking for mawk
configure:2256: result: no
configure:2226: checking for nawk
configure:2242: found /usr/bin/nawk
configure:2253: result: nawk
configure:2264: checking whether make sets $(MAKE)
configure:2285: result: yes
configure:2490: checking whether to enable maintainer-specific portions of
Makefiles
configure:2499: result: no
configure:2524: checking for style of include used by make
configure:2552: result: GNU
configure:2622: checking for gcc
configure:2649: result: gcc
configure:2887: checking for C compiler version
configure:2894: gcc --version >&5
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2897: $? = 0
configure:2904: gcc -v >&5
Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
configure:2907: $? = 0
configure:2914: gcc -V >&5
gcc: `-V' option must have argument
configure:2917: $? = 1
configure:2940: checking for C compiler default output file name
configure:2967: gcc conftest.c >&5
ld: fatal: file values-Xa.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
configure:2970: $? = 1
configure:3008: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "snort"
| #define VERSION "2.8.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3014: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
This message posted from opensolaris.org