Installing Apache on Sol 10 - Compiler Error



Hello Gurus,

I am installing apache 2.2 on Sol 10. To test before installing, I tried this:

./configure --prefix=/app/apache/apache2 --no-create

It came back with the error -
checking for gcc... /opt/gcc/bin/gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables

Below are a couple of env variables:

bash-3.00# echo $CC
/opt/gcc/bin/gcc
bash-3.00# echo $LD_LIBRARY_PATH
/opt/gcc/lib

I'd been googling for past 4 hours with very little luck. I tried suggestions but in vain:

Installed gcc-3.4.6 from sunfreeware in /usr/local/bin and amended the PATH, library path and CC, still got the same C output file error

Installed libiconv-1.11 from Sunfreeware in /usr/local/bin and tried again, still got the same C output file error

Installed SUNW0scgfss and SUNW0gccfss - free compilers (cool tool) from SUN in /opt/gcc/bin. Set the path, library path, cc to /opt/gcc/bin/gcc and /opt/gcc/lib. Ran the same command and got the same C output file error

I am downloading the gcc package from http://www.gnu.org/software/gcc/gcc.html as a last resort but I don't have much hope.

I know the error message is related to the C compiler but I am running out of idea on where to debug. Config.log file is long and has no error messages recorded in it. I couldn't find any summary on this in Sunmanagers archive list.

Please can someone point out what wrong I am doing here?

Many thanks
Ketan



---------------------------------
Check out the hottest 2008 models today at Yahoo! Autos.
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: Error a: _mayn.c:12 illegal return type, found int expected void
    ... > a given compiler writer allows or forbids is ... The error message I recieved was in plain english ... >Do you, Jacob, perhaps have a belief that all C programers ... the purpose of lint is to provide error messages. ...
    (comp.compilers.lcc)
  • Re: operator function
    ... >> of them have anything to do with what the error message seems ... Setting (int h, int m, int s, int TT) ... Now the compiler knows, that it is safe to use that function on a const ... >> operator returns a Setting object. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
    ... SU-AI and run Lisp 1.6 or UCI-Lisp. ... kernel of an operating system or a compiler etc. ... have the power of Lisp instead of only C to manipulate those lists. ... apply so the error message doesn't occur. ...
    (comp.lang.lisp)
  • c89 problem w/ irrhfsu
    ... i've got a lot of experience setting up and configuring OMVS but not ... by means of the c89 compiler, inside the OMVS environment, (this is ... and i received the following error message: ...
    (bit.listserv.ibm-main)
  • Re: Why C/C++ errors are SO obscure/devious??
    ... you could use something like the Zeus IDE. ... Since code folding is done on braces, if a brace is missing the code ... go back and revisit the compiler error message. ... On most occasions I think you will find the compiler error message was ...
    (comp.lang.c)