Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Attempts at building Perl 5.8.7 on Solaris 10 failing

by blue_cowdawg (Monsignor)
on Feb 01, 2006 at 18:30 UTC ( [id://527136]=perlquestion: print w/replies, xml ) Need Help??

blue_cowdawg has asked for the wisdom of the Perl Monks concerning the following question:

OK... this is supposed to be simple, but it ain't. I'm attempting to build Perl 5.8.7 on Solaris 10 and it is failing miserably.

If I believe my eyes the include files are all mucked up but I'm not willing to go with that idea just yet.

Here's the environment:
OS:Solaris 10, jumbo patch Generic_118822-20, platform SunFire V220
Compiler:gcc 3.3.2
Just to keep things as simple as possible I've run Config with the default options and specified CC as being "gcc -B/usr/css/bin/". When make is run I get the following spew:

webdev01(0)# make `sh cflags "optimize='-O'" miniperlmain.o` miniperlmain.c CCCMD = gcc -B/usr/ccs/bin/ -DPERL_CORE -c -fno-strict-alia +sing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O -Wall In file included from /usr/include/sys/signal.h:34, from /usr/include/signal.h:26, from unixish.h:106, from perl.h:2220, from miniperlmain.c:36: /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 `__faul +t' /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 In file included from /usr/include/signal.h:26, from unixish.h:106, from perl.h:2220, from miniperlmain.c:36: /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" In file included from unixish.h:106, from perl.h:2220, from miniperlmain.c:36: /usr/include/signal.h:111: error: parse error before "siginfo_t" /usr/include/signal.h:113: error: parse error before "siginfo_t" make: *** [miniperlmain.o] Error 1

Dagnabit! Where are all those syntax errors coming from? Is there hope?


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re: Attempts at building Perl 5.8.7 on Solaris 10 failing
by bmann (Priest) on Feb 01, 2006 at 21:14 UTC
    There have been issues reported with gcc 3.3.2 and Solaris 10. Sometimes the fix is:

    cd /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/install-tools ./mkheaders

    Disclaimer: I am not a solaris guy, I just remember seeing this on a postgresql mailing list.

          There have been issues reported with gcc 3.3.2 and Solaris 10.

      YOU DA MONK!

      That was a good call and turned out to be just the problem I was running in to.

      Thanks!

        AND DA!!!! BALLZZZZZZ!!!
Re: Attempts at building Perl 5.8.7 on Solaris 10 failing
by jcoxen (Deacon) on Feb 01, 2006 at 20:26 UTC
    Unless there's a specific reason that you have to compile from source, you can just install the pre-compiled package instead. D/L 'pkg-get' from here. The current version of Perl you can get is "perl 5.8.7,REV=2005.11.08".

    Admittedly, compiling your own will give you much more control over the finished product so if you're trying to squeeze that last bit of performance out of Perl this probably isn't a route you want to take. But it is a whole lot easier.

    Hope this helps,

    Jack

          Unless there's a specific reason that you have to compile from source, you can just install the pre-compiled package instead

      I went that route first. Problem is when we attempted to load things from CPAN afterwards all hell broke loose and anything that required compilation got wiggy and failed to compile.

      I'm beginning to not like Solaris 10 much.

      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: Attempts at building Perl 5.8.7 on Solaris 10 failing
by Fletch (Bishop) on Feb 01, 2006 at 19:13 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://527136]
Approved by sweetblood
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found