PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
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 21 2004 7:04PM

On Wed, 2004-04-21 at 20:48, Kandarp Desai wrote:
> Hi....Michael....
> 
> I have installed IBM VAC & IBM C/C++ compilers on my server & try to compile Sybperl. Now receive following error messages. Please advice.
> 
> # 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
> "CTlib.xs", line 41.10: 1506-296 (S) #include file  not found.

Looks like you don't have the Sybase include files in
/data/sybase/include. Without them nothing will work...

Michael


>                                                                                                                                        
>                       Michael Peppler                                                                                                  
>                                              .org>                    cc:       Sybperl-L Mailing List                                 
>                                                Subject:  Re: installing sybperl on IBM AIX 5.2 system                                  
>                       04/16/2004 12:24                                                                                                 
>                       PM                                                                                                               
>                                                                                                                                        
>                                                                                                                                        
> 
> 
> 
> 
> On Fri, 2004-04-16 at 08:38, Kandarp Desai wrote:
> > Hi....Michael...
> >
> > Thanks for your quick reply. Would you be more specific about "In your
> > case I suggest rebuilding perl from source with gcc" ??? What do you
> > mean by that??? Please advice.
> 
> Download the perl source (from www.perl.org, for example), and build
> from source (essentially: unpack the source, run Configure, make, make
> test and make install).
> 
> Now use this copy of perl to build sybperl.
> 
> Alternatively, maybe there is a repository for pre-compiled freeware
> binaries for AIX similar to www.sunfreeware.com which uses gcc as the
> compiler. If that is the case you can maybe find a pre-compiled perl
> binary there for you to use.
> 
> Michael
> 
> >
> >                       Michael Peppler
> >                        >                       .org>                    cc:       Sybperl-L Mailing List 
> >                                                Subject:  Re: installing sybperl on IBM AIX 5.2 system
> >                       04/16/2004 11:26
> >                       AM
> >
> >
> >
> >
> >
> >
> > 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 Config.pm 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
> > --
> > Michael Peppler                              Data Migrations, Inc.
> > mpeppler@peppler.org                       http://www.peppler.org/
> > Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
> > long term contract positions - http://www.peppler.org/resume.html
> >
> >
> >
> >
> >
> > --
> >
> > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
> --
> Michael Peppler                              Data Migrations, Inc.
> mpeppler@peppler.org                       http://www.peppler.org/
> Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
> long term contract positions - http://www.peppler.org/resume.html
> 
> 
> 
> 
> 
> --
> 
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                       http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html