i downloaded cppunit-1.10.2 source and tried to compile
$./configure CXX=CC CXXFLAGS="-mt -xtarget=generic -g -features=no%transitions -xildoff" LD=CC LDFLAGS=-xildoff
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
--------
config.log
--------
configure:2069: checking for gcc
configure:2085: found /opt/csw/gcc3/bin/gcc
configure:2095: result: gcc
configure:2339: checking for C compiler version
configure:2342: gcc --version </dev/null >&5
gcc (GCC) 3.4.5
Copyright (C) 2004 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:2345: $? = 0
configure:2347: gcc -v </dev/null >&5
Reading specs from /opt/csw/gcc3/lib/gcc/i386-pc-solaris2.8/3.4.5/specs
Configured with: ../sources/gcc-3.4.5/configure --prefix=/opt/csw/gcc3 --with-local-prefix=/opt/csw --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --enable-languages=all
Thread model: posix
gcc version 3.4.5
configure:2350: $? = 0
configure:2352: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2355: $? = 1
configure:2379: checking for C compiler default output
configure:2382: gcc -xildoff conftest.c >&5
gcc: language ildoff not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
configure:2385: $? = 1
configure: failed program was:
| #line 2358 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "cppunit"
| #define VERSION "1.10.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2424: error: C compiler cannot create executables
----------------
my PATH Setting
----------------
export LD_LIBRARY_PATH=/opt/csw/lib:/usr/local/apr/lib:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/cfw/wine/lib
export PATH=/opt/csw/bin:/opt/csw/sbin:/opt/cfw/wine/bin:/usr/local/bin:/usr/local/sbin:/opt/sfw/bin:/usr/sfw/bin:/usr/sfw/sbin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/uc b:/usr/sadm/bin:/usr/lib/netsvc/yp
pls help!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Obviously, the problem comes from the fact that CC is not being picked up.
Have you tried also specifying CC=CC on the configure command-line ? It's weird that configure ignore your CXX override, but I never managed to understand how that stuff worked...
Baptiste.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i just tried CC=CC but there is still an error!
$>./configure CXX=CC CXXFLAGS="-mt -xtarget=generic -g -features=no%transitions -xildoff" LD=CC LDFLAGS=-xildoff CC=CC
PLEASE HELP!
------------
config.log
------------
configure:2339: checking for C compiler version
configure:2342: CC --version </dev/null >&5
./configure: line 2343: CC: command not found
configure:2345: $? = 127
configure:2347: CC -v </dev/null >&5
./configure: line 2348: CC: command not found
configure:2350: $? = 127
configure:2352: CC -V </dev/null >&5
./configure: line 2353: CC: command not found
configure:2355: $? = 127
configure:2379: checking for C compiler default output
configure:2382: CC -xildoff conftest.c >&5
./configure: line 2383: CC: command not found
configure:2385: $? = 127
configure: failed program was:
| #line 2358 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "cppunit"
| #define VERSION "1.10.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2424: error: C compiler cannot create executables
See `config.log' for more details.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i downloaded cppunit-1.10.2 source and tried to compile
$./configure CXX=CC CXXFLAGS="-mt -xtarget=generic -g -features=no%transitions -xildoff" LD=CC LDFLAGS=-xildoff
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
--------
config.log
--------
configure:2069: checking for gcc
configure:2085: found /opt/csw/gcc3/bin/gcc
configure:2095: result: gcc
configure:2339: checking for C compiler version
configure:2342: gcc --version </dev/null >&5
gcc (GCC) 3.4.5
Copyright (C) 2004 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:2345: $? = 0
configure:2347: gcc -v </dev/null >&5
Reading specs from /opt/csw/gcc3/lib/gcc/i386-pc-solaris2.8/3.4.5/specs
Configured with: ../sources/gcc-3.4.5/configure --prefix=/opt/csw/gcc3 --with-local-prefix=/opt/csw --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --enable-languages=all
Thread model: posix
gcc version 3.4.5
configure:2350: $? = 0
configure:2352: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2355: $? = 1
configure:2379: checking for C compiler default output
configure:2382: gcc -xildoff conftest.c >&5
gcc: language ildoff not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
configure:2385: $? = 1
configure: failed program was:
| #line 2358 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "cppunit"
| #define VERSION "1.10.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2424: error: C compiler cannot create executables
----------------
my PATH Setting
----------------
export LD_LIBRARY_PATH=/opt/csw/lib:/usr/local/apr/lib:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/cfw/wine/lib
export PATH=/opt/csw/bin:/opt/csw/sbin:/opt/cfw/wine/bin:/usr/local/bin:/usr/local/sbin:/opt/sfw/bin:/usr/sfw/bin:/usr/sfw/sbin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/uc b:/usr/sadm/bin:/usr/lib/netsvc/yp
pls help!!
Obviously, the problem comes from the fact that CC is not being picked up.
Have you tried also specifying CC=CC on the configure command-line ? It's weird that configure ignore your CXX override, but I never managed to understand how that stuff worked...
Baptiste.
i just tried CC=CC but there is still an error!
$>./configure CXX=CC CXXFLAGS="-mt -xtarget=generic -g -features=no%transitions -xildoff" LD=CC LDFLAGS=-xildoff CC=CC
PLEASE HELP!
------------
config.log
------------
configure:2339: checking for C compiler version
configure:2342: CC --version </dev/null >&5
./configure: line 2343: CC: command not found
configure:2345: $? = 127
configure:2347: CC -v </dev/null >&5
./configure: line 2348: CC: command not found
configure:2350: $? = 127
configure:2352: CC -V </dev/null >&5
./configure: line 2353: CC: command not found
configure:2355: $? = 127
configure:2379: checking for C compiler default output
configure:2382: CC -xildoff conftest.c >&5
./configure: line 2383: CC: command not found
configure:2385: $? = 127
configure: failed program was:
| #line 2358 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "cppunit"
| #define VERSION "1.10.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2424: error: C compiler cannot create executables
See `config.log' for more details.
after I reinstalled Sun Studio 11
it is working fine now.
sorry for the trouble.