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: Adam Naylor <adam at redbaron dot co dot uk>
Subject: Compiling using gcc on Solaris 9
Date: Jan 9 2004 9:49AM


I'm probably being extremely stupid here - been using sybperl for ages but 
I know very little about makefiles and gcc.

I'm trying to compile using:
perl v5.6.1
Solaris 9 (32-bit)/SPARC
Sybase 12.5.1
Open Client 12.5.1
gcc 3.3.2

I'm sure I compiled with gcc before, but that was on Solaris 2.6/Sybase 
11.5.1 and several years ago.  I get the following:

# perl Makefile.PL
Sybase OpenClient 12.5.1 ASE Edition found.
The sybperl modules need access to a Sybase server to run the tests.
To clear an entry please enter 'undef'
Sybase server to use (default: SYBASE):
User ID to log in to Sybase (default: sa):
Password (default: undef):

* Writing login information, including password, to file PWD.

Sybase OpenClient 12.5.1 ASE Edition found.
Writing Makefile for Sybase::BCP
Writing Makefile for Sybase::BLK
Writing Makefile for Sybase::CTlib
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase
# make
make[1]: Entering directory `/stuff/sybperl-2.16/BCP'
Manifying ../blib/man3/Sybase::BCP.3
make[1]: Leaving directory `/stuff/sybperl-2.16/BCP'
make[1]: Entering directory `/stuff/sybperl-2.16/BLK'
Manifying ../blib/man3/Sybase::BLK.3
make[1]: Leaving directory `/stuff/sybperl-2.16/BLK'
make[1]: Entering directory `/stuff/sybperl-2.16/CTlib'
Skip ../blib/lib/Sybase/ (unchanged)
cc -c -I/sybase/OCS-12_5/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3
-xdepend   -DVERSION=\"2.16\" -DXS_VERSION=\"2.16\" -KPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DCTLIBVS=100 -DSYBPLVER='"2.16"'
-DDO_TIE CTlib.c
make[1]: cc: Command not found
make[1]: *** [CTlib.o] Error 127
make[1]: Leaving directory `/stuff/sybperl-2.16/CTlib'
make: *** [subdirs] Error 2

I did try linking gcc->cc but gcc didn't like the cmdline options it was 
passed (surprise!)

Any ideas?  It's probably something daft as this is a new Solaris install 
and I'm bound to have forgotten something.  Can't find anything in the FAQ 
about compiling using gcc though.

Many thanks!

Adam Naylor