This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: solaris 2.6 compiling problems


On Mar  2, 2000, Mate Wierdl <mw@wierdlmpc.msci.memphis.edu> wrote:

> /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2.1/specs

> I am trying to install gcc-2.95.2 on my solaris 2.6 box, which has

> ../../gcc-2.95.2/gcc/libgcc2.c:3171: `PTHREAD_ONCE_INIT' undeclared
>                  (first use in this function)

Looks like you're having conflicts between the `fixinclude'd version
of some Solaris 2.4 headers with headers from Solaris 2.6 that didn't
need any fixing.

You'd better download some pre-compiled GCC for Solaris 2.6 and use it
to build whatever other version you want with it.  Another option
would be to run fixincludes from GCC 2.7.2.1 on Solaris 2.6, and add
the directory this produces to the -isystem header path.  But, AFAIR,
GCC 2.7's fixincludes has some problems with Solaris 2.6's headers, so
the first option is better.

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaranį
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]