>> I'm trying to compile apache on Solaris 10 and been unable to do so --
>> I keep getting Pthread.h parse errors during make. Since i'm using the
>> SunFreeware Solaris 9 gcc 3.3.2 package on it, I think the problem is
>> that compiler is linked against Solaris 9 specific libraries, headers,
>> etc and won't work on Solaris 10. I tried compiling gcc 3.3.3 on it
>> using this compiler (my only option) which of course failed.
> It's not a linking problem -- Sun pays a lot of attention to binary
> compatibility.
> This is almost certainly a side-effect of gcc's fixincludes madness --
> it squirrels away slightly modified copied of a bunch of system
> headers. In particular, you are probably getting errors relating to
> pthread_spinlock_t or pthread_barrier_t, which were recently added to
> <sys/types.h> in S10.
> fixincludes *always* mucks with <sys/types.h>, so you are probably
> getting the S9 version of the header. (or whatever version the GCC
> package you are using picked up)
> Unfortunately, I have no idea how to update the headers without
> re-doing the entire gcc installation. Any GCC gurus in the house?
I had to do something similar when I was compiling some programs dealing
with processes (check http://groups.google.ca/groups?th=c7dd731392085b94)
and was given the following advise by a Sun engineer (thanks Mike!):
"you might have to rebuild gcc or rerun fixincludes. It has a munged copy of
sys/types.h and that needs to be updated to work with the system headers
it didn't munge :)"
So I rerun fixincludes and everything worked fine afterwards. I don't know
if I had to get fixincludes from the source distribution of gcc though.
HTH, Dragan
--
Dragan Cvetkovic,
To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer
!!! Sender/From address is bogus. Use reply-to one !!!