Re: Solaris 10/Sybperl-2.18 build problem.

Michael Peppler <[email protected]> Fri, 15 Aug 2008 07:19:41 +0200
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
On Aug 14, 2008, at 9:36 PM, Roger A. Katz wrote:

> Hi Michael.
>
> I have a:
> SunOS acnsun03 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC- 
> Enterprise-T5220
>
> Running :
> # perl --version
>
> This is perl, v5.8.4 built for sun4-solaris-64int
>
> I am using Sybase OpenClient 15-0
> I am using gcc  cc --version
> cc (GCC) 3.4.6.

> /bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -prototypes -typemap / 
> usr/perl5/5.8.4/lib/ExtUtils/typemap  CTlib.xs > CTlib.xsc && mv  
> CTlib.xsc CTlib.c
> cc -c  -I/home/sybase/OCS-15_0/include  -D_LARGEFILE_SOURCE - 
> D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff - 
> DVERSION=\"2.18\"  -DXS_VERSION=\"2.18\" -KPIC "-I/usr/perl5/5.8.4/ 
> lib/sun4-solaris-64int/CORE"  -DCTLIBVS=100 -DSYBPLVER='"2.18"' - 
> DDO_TIE CTlib.c
> cc: unrecognized option `-KPIC'
> cc: language ildoff not recognized
> cc: CTlib.c: linker input file unused because linking not done

Are you using the perl binary that ships with Solaris?

If yes, then that binary was built with Sun's cc, not gcc, and so the  
compiler directives that are included in perl's Config.pm file are  
wrong.

It is possible to change these to work with gcc, though I don't  
remember the details (and I don't have a Solaris host available to  
play around with this).

Alternatively, you can build an ad-hoc binary of perl from scratch  
with gcc, or even download a pre-built binary from sunfreeware.

Michael
--
Michael Peppler              -                    Peppler Consulting  
SaRL
[email protected]         -                     http://www.peppler.org
Sybase DBA/Developer         -      TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ          -      http://www.peppler.org/FAQ/linux.html