Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Solaris 10 and GCC issues...or not

19 views
Skip to first unread message

Andy Black

unread,
Nov 24, 2004, 8:44:21 PM11/24/04
to
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
/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

Roger Faulkner

unread,
Nov 25, 2004, 1:19:59 AM11/25/04
to
Andy Black <an...@spazthecat.com> wrote in message news:<BDCAA3DB.337F%an...@spazthecat.com>...

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

Jim

unread,
Nov 25, 2004, 10:10:59 AM11/25/04
to
Andy Black wrote:
> Hi,
>
> I am using GCC 3.3.2 and gnumake (from Sunfreeware.com) on Solaris 10 and

[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

Andy Black

unread,
Nov 25, 2004, 5:37:27 PM11/25/04
to


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 Black

unread,
Nov 25, 2004, 5:38:02 PM11/25/04
to
Thanks, that is where I got the package and it is the Solaris 10 version.

Andy


On 11/25/04 10:10 AM, in article 7Cmpd.267$6l5...@newsfe2-gui.ntli.net,

Bart Smaalders

unread,
Nov 26, 2004, 2:55:22 AM11/26/04
to
Andy Black <an...@spazthecat.com> wrote in message news:<BDCBC9E5.33FF%an...@spazthecat.com>...

> Thanks, that is where I got the package and it is the Solaris 10 version.
>
> Andy
>

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

Yong Huang

unread,
Nov 26, 2004, 11:37:30 PM11/26/04
to
Andy Black <an...@spazthecat.com> wrote in message news:<BDCAA3DB.337F%an...@spazthecat.com>...

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

mih

unread,
May 30, 2012, 3:05:46 AM5/30/12
to
>Note that this version of gcc was created on build 60 of Solaris 10. If you are >using a higher version, you will need to redo some of the header files. This is >done by doing the following steps:
>
>cd /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/install-tools/
>
>Put the line SHELL=/bin/sh on the first line of the mkheaders.conf
>file. Then run
>
>./mkheaders
>
>This will correct some files and make the build 60 gcc usable on
>higher builds. I have tested this on build 72 and it works fine.

I'm installing GCC 3.4.6


0 new messages