Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: installing sybperl on IBM AIX 5.2 system
Date: Apr 16 2004 3:26PM

On Fri, 2004-04-16 at 08:22, Kandarp Desai wrote:
> Hi....
> I am installing sybperl 2.16 on IBM AIX 5.2 system & getting following error messages while compiling. Please help !!!
> (2)root@nygshutl1n51-adm:[/tmp/sybperl-2.16](1025)
> # ln -s /usr/local/bin/gcc /usr/bin/cc_r
> (0)root@nygshutl1n51-adm:[/tmp/sybperl-2.16](1026)
> #
> (0)root@nygshutl1n51-adm:[/tmp/sybperl-2.16](1026)
> # make
>         cc_r -c  -I/data/sybase/include  -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O    -DVERSION=\"2.16\"  -DXS_VERSION=\"2.16\"  "-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE"  -DCTLIBVS=100 -DSYBPLVER='"2.16"' -DDO_TIE CTlib.c
> cc_r: unrecognized option `-qmaxmem=16384'
> cc_r: unrecognized option `-qnoansialias'
> cc_r: unrecognized option `-q32'
> cc_r: unrecognized option `-qlonglong'

In general you must build sybperl (and other binary perl modules) with
the compiler that was used to build perl.
The reason (as you've noticed) is that during the perl build it records
the flags that the compiler needs to build modules. It *is* possible (in
general) to fix the makefiles and or perl's so that building
modules with a different compiler works, but I recommend against it.

In your case I suggest rebuilding perl from source with gcc - this will
make everything a lot easier.

Michael Peppler                              Data Migrations, Inc.             
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions -