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: Sybase 12, AIX 5.1 - cannot compile DBD::Sybase
Date: Mar 21 2003 7:40PM

On Fri, 2003-03-21 at 11:27, J. J. Yuan wrote:
> Michael,
> 
> In CONFIG, I have commented out the line for 64-bit.  Doesn't this enable
> the link process to do it in 32-bit mode?
> 
> I don't know if I can get everything 64-bit.  So, I'd like to stay with
> 32-bit.  Can't this be done?

I don't know much about AIX - do you have the regular (32bit libraries)
for Sybase installed? If so then you should be able to build in 32 bit
mode, assuming you have a compiler,etc. that can do this.

Michael

> --- Michael Peppler  wrote:
> > On Thu, 2003-03-20 at 17:18, J. J. Yuan wrote:
> > 
> > > I'd like to re-state my situation first.  The fact is that the
> > compilation
> > > of the C code had got through, some files are copied and chmod/chown
> > was
> > > done.  It seems to have trouble with linking.
> > 
> > 
> > 
> > >        LD_RUN_PATH="/sybase_I002/OCS-12_5/lib:/lib" ld -o
> > blib/arch/auto/DBD/Sy
> > > base/Sybase.so  -L/sybase_I002/OCS-12_5/lib -bhalt:4 -bM:SRE
> > -bI:/usr/opt/perl5/
> > > lib/5.6.0/aix/CORE/perl.exp -bE:Sybase.exp -b noentry -lC -lc 
> > Sybase.o  dbdimp.
> > > o    -L/sybase_I002/OCS-12_5/lib -lct64 -lcs64 -ltcl64 -lcomn64
> > -lintl64 -ldl -l
> > > m
> > > ld: 0711-317 ERROR: Undefined symbol: .ct_dynamic
> > > ld: 0711-317 ERROR: Undefined symbol: .ct_command
> > > ld: 0711-317 ERROR: Undefined symbol: .ct_param
> > 
> > One possibility is that the perl binary and the compilation of Sybase.so
> > is done in 32 bit mode. So when the linker is trying to load the 64 bit
> > libraries it fails and can't find the symbols that it's looking for.
> > 
> > Michael
> > 
> > > 
> > > --- Michael Peppler  wrote:
> > > > On Thu, 2003-03-20 at 15:33, Jay J. Yuan wrote:
> > > > > I have tried a lot of things but I am still stuck.  I searched
> > usual
> > > > web 
> > > > > sites to clue but I still can't get it to compile. I wonder if
> > there
> > > > is 
> > > > > a place to look for more tips.  Is there an incompatibility?
> > > > 
> > > > Not as far as I know. What errors do you get?
> > > > 
> > > > Michael
> > 
> > -- 
> > Michael Peppler                              Data Migrations, Inc.
> > mpeppler@peppler.org                 http://www.mbay.net/~mpeppler
> > Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
> > or 
> > long term contract positions - http://www.mbay.net/~mpeppler/resume.html
> 
> 
> =====
> -- Jay Jie Yuan  Ԭ½Ü   ---------------------  j1yuan@yahoo.com  --
> --  6487 Copperleaf Lane   --  Cincinnati,  OH 45230  --  USA   --
> == (513) 232-1301(H)  = 336-4711 (W)  =  623-2245 (cell)   ==
> == text page (140 chars): 5136232245@messaging.nextel.com=
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                 http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions - http://www.mbay.net/~mpeppler/resume.html