I am using GCC 3.3.2 and gnumake (from Sunfreeware.com) on Solaris 10 and
have been unsuccessful at getting Squid 2.5 stable-7 to build. I think it is
a problem with the headers included with Solaris 10 but can't quite figure
it out.
Anyways, the configure script completes without error but when I try to
build it I get the following errors:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
Anyone else having problems with building stuff on Solaris 10?
Thanks,
Andy
The system header files have changed in Solaris 10 (relative to
Solaris 9 or earlier).
Your gcc installation needs to be updated.
In particular, you need to redo the 'fixincludes' so that
gcc's 'fixed' header files match what the system has to offer.
Roger Faulkner
roger.f...@sun.com
[SNIP]
> Thanks,
>
> Andy
>
It may be of help to know that the excellent sunfreeware.com now have
various packages including gcc available for Solaris 10
On 11/25/04 1:19 AM, in article
a412da98.04112...@posting.google.com, "Roger Faulkner"
<roger.f...@sun.com> wrote:
> Andy Black <an...@spazthecat.com> wrote in message
> news:<BDCAA3DB.337F%an...@spazthecat.com>...
>> Hi,
>>
>> I am using GCC 3.3.2 and gnumake (from Sunfreeware.com) on Solaris 10 and
>> have been unsuccessful at getting Squid 2.5 stable-7 to build. I think it is
>> a problem with the headers included with Solaris 10 but can't quite figure
>> it out.
>>
>> Anyways, the configure script completes without error but when I try to
>> build it I get the following errors:
>>
>> /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
>> /usr/include/sys/siginfo.h:292: error: parse error before '}' token
<snip>
>
> The system header files have changed in Solaris 10 (relative to
> Solaris 9 or earlier).
>
> Your gcc installation needs to be updated.
> In particular, you need to redo the 'fixincludes' so that
> gcc's 'fixed' header files match what the system has to offer.
>
> Roger Faulkner
> roger.f...@sun.com
I take it the GCC package for Solaris 10 from Sunfreeware.com needs to fixed
then? I've been looking for how to redo the fixincludes but haven't had much
luck. Is that something that is distributed with GCC?
Thanks,
Andy
Andy
On 11/25/04 10:10 AM, in article 7Cmpd.267$6l5...@newsfe2-gui.ntli.net,
Keep in mind that the headers have been changing pretty quickly;
running the fix headers script to update the install would be a good
idea.
- Bart
I've gone through this. On my Solaris 10 x86, a C file containing
#include <procfs.h> throws errors regarding some header files. I
downgraded GCC from 3 to 2.95 and it works. Alternatively, it's said
that running
/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/install-tools/mkheaders.conf
also fixes it, if you have not just the gcc compiler binary installed.
See http://groups.yahoo.com/group/solarisx86/message/11897.
Yong Huang