Hi,

If I am intruding, I apologize, however I am trying to compile GNUWorld
on a SUN SPARCstation running SunOS 5.8 and I have problems with it I
can fix myself. When trying to compile, I get the following:

g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -Wall -O0 -pipe
-I/export/home0/root/irc/gnuworld/include
-I/export/home0/root/irc/gnuworld/lib -Wp,-MD,.deps/Socket.pp -c
Socket.cc  -fPIC -DPIC -o .libs/Socket.lo
In file included from
/usr/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/c
math:7,
                 from Socket.cc:17:
/usr/include/math.h:75: redefinition of `class exception'
/usr/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/exception:18:
previous definition here
/usr/include/math.h:81: confused by earlier errors, bailing out
cpp0: output pipe has been closed
make[1]: *** [Socket.lo] Error 1
make[1]: Leaving directory `/export/home0/root/irc/gnuworld/lib'
make: *** [all-recursive] Error 1
# 

>From what I understand, it is caused by /usr/include/math.h not being
totally compliant to standards on Solaris, however I don't know if that
is true. I also have no idea of how to fix this. I am using GCC 2.95.3,
which was compiled from source by gcc 2.95.2 which comes along with 5.8
as one of the optional packages. I build the new gcc because I was made
to believe this was caused by a compiler problem, however obviously this
problem persists even after building a new compiler. The system also has
the latest gnu autoconf, automake and related packages compiled.

If you can, please help.

-AB-

AfterBurn
afterburn <at> crashdot <dot> com
http://www.crashdot.com

  _____  

        "Integrity is doing the right thing even if no one will know."
-- Author unknown



Reply via email to