Amanda-Users

Re: 2.5.0p1 build problemson Soalris 10 AMD64

2006-05-14 12:31:30
Subject: Re: 2.5.0p1 build problemson Soalris 10 AMD64
From: stan <stanb AT panix DOT com>
To: Jon LaBadie <jon AT jgcomp DOT com>
Date: Sun, 14 May 2006 12:24:24 -0400
On Sun, May 14, 2006 at 10:31:05AM -0400, Jon LaBadie wrote:
> On Sun, May 14, 2006 at 09:06:10AM -0400, stan wrote:
> > I tried to build on Soalris 10 AMD64 today, and it failed like this:
> > 
> >  gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src 
> > -D_LARGEFILE_SOURCE
> >  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 
> > -MT alloc.lo -MD -MP
> >  -MF .deps/alloc.Tpo -c alloc.c  -fPIC -DPIC -o .libs/alloc.o
> >  In file included from /usr/include/wait.h:14,
> >  from amanda.h:182,
> >  from alloc.c:33:
> >  /usr/include/sys/siginfo.h:259: error: parse error before
> > "ctid_t"
> > /usr/include/sys/siginfo.h:292: error: parse error before
> > '}' token
> > 
> > This was with gcc version 3.3.2 from SunFreeware
> > 
> > What can I do to fix this?
> > 
> 
> Shot in the dark.  Most gcc installs on Solaris also require
> running a "fix the system headers to work with gcc" program.
> I think it is typically called "fixinclude" or something
> similar.  Was this in the gcc distribution and was it run?

No, In the past (albeit on SPARC) I've been able to
just install the SunFreeware package, and have it "just work".
Having said that, I will certainly check this out.

> 
> Two other notes, blastwave has more recent gcc versions
> and Sun now makes their compilers and IDE available for
> free for Sol10 users.  "I think" it is called Studio 11.
> It is more likely to be optimized for AMD64 as that is
> the processor in many of Sun's new x86 boxes.
> 

Might be worth checking this out, thanks.

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967