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: "Scott Zetlan" <scottzetlan at aol dot com>
Subject: RE: 2.14 install failure on HP-UX 11
Date: Apr 23 2002 2:37PM

You found libblk.a in /opt/sybase/OCS-12_0/lib/, but that directory does not
appear to be in your SHLIB_PATH.  So ld cannot find it.  Since you're
compiling client libraries, your OCS lib directory has to be in your library
path.

Scott

> -----Original Message-----
> From: owner-SYBPERL-L@list.cren.net
> [mailto:owner-SYBPERL-L@list.cren.net]On Behalf Of abrown@mmm.com
> Sent: Tuesday, April 23, 2002 10:14 AM
> To: SybPerl Discussion List
> Subject: 2.14 install failure on HP-UX 11
>
>
>
> I am attempting to install Sybperl 2.14 on a HP-UX 11.0 server.  I have
> Sybase 12.0.0.4 EBF 10046 and a recent Open Client EBF 9810 installed.  I
> am attempting to link dynamically.  I am using the Ansi C compiler, and
> have attemped the this build on 2 different HP-UX boxes, with the same
> results.
>
> Output from 'perl Makefile.PL' looks good.  However, when I
> attempt to do a
> 'make', I get the following error:
>
> ... begin output...
>
> cp CTlib.pod ../blib/lib/Sybase/CTlib.pod
>         /usr/bin/perl -I/opt/perl5/lib/5.00503/PA-RISC1.1
> -I/opt/perl5/lib/5.00503 /opt/perl5/lib/5.00503/ExtUtils/xsubpp -prototype
> s -typemap /opt/perl5/lib/5.00503/ExtUtils/typemap CTlib.xs >xstmp.c && mv
> xstmp.c CTlib.c
>         cc -c -I/sybase_system/OCS-12_0/include -Ae -O +Onolimit
> -DVERSION=\"2.14\"  -DXS_VERSION=\"2.14\" +z -I/opt/perl5/lib/5
> .00503/PA-RISC1.1/CORE -DCTLIBVS=100 -DSYBPLVER='"2.14"' -DDO_TIE CTlib.c
> Running Mkbootstrap for Sybase::CTlib ()
>         chmod 644 CTlib.bs
>         LD_RUN_PATH="/sybase_system/OCS-12_0/lib:/lib" ld -o
> ../blib/arch/auto/Sybase/CTlib/CTlib.sl  -L/sybase_system/OCS-12_0/lib
> -b -s -a shared CTlib.o    -L/sybase_system/OCS-12_0/lib -lct -lcs -ltcl
> -lcomn -lintl -lblk -lm
> ld: Can't find library for -lblk
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
>
> ... end output ...
>
> A little investigation shows /opt/sybase/OCS-12_0/lib/libblk.a exists, but
> libblk.sl does not.   I tried the same build procedure on a Linux machine,
> and I get a successful build.  However,  my Open Client for Linux only has
> a libblk.a library as well.
>
> I have included the output of 'perl -V' below, if that is helpful, as well
> as my LD_LIBRARY_PATH and SHLIB_PATH.
>
> Any help offered is greatly appreciated.
>
> Thanks,
>
> Arlan
>
> --- (possibly) helpful info below ---
>
> SHLIB_PATH=/sybase_system/ASE-12_0/lib:/sybase_system/FTS-12_0/lib
:/sybase_system/OCS-12_>
0/lib:/usr/lib:/lib:/usr/lib/Motif1.2:/sybase_system/S
> QLRemote/lib
>
> LD_LIBRARY_PATH=/sybase_system/ASE-12_0/lib
> (also tried)
> LD_LIBRARY_PATH=/sybase_system/ASE-12_0/lib:/sybase_system/OCS-12_0/lib
>
> Output of 'perl -V'
> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
>   Platform:
>     osname=hpux, osvers=10.20, archname=PA-RISC1.1
>     uname='hp-ux ural b.10.20 a 9000712 2015389465 two-user license '
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef useperlio=undef d_sfio=undef
>   Compiler:
>     cc='cc', optimize='-O +Onolimit', gccversion=
>     cppflags='-Ae'
>     ccflags ='-Ae'
>     stdchar='unsigned char', d_stdstdio=define, usevfork=false
>     intsize=4, longsize=4, ptrsize=4, doublesize=8
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>     alignbytes=8, usemymalloc=y, prototype=define
>   Linker and Libraries:
>     ld='ld', ldflags =''
>     libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
>     libs=-lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
>     libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
>   Dynamic Linking:
>     dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,
> -B,deferred '
>     cccdlflags='+z', lddlflags='-b -s -a shared'
>
> Characteristics of this binary (from libperl):
>   Built under hpux
>   Compiled at Aug 20 1999 12:09:40
>   @INC:
>     /opt/perl5/lib/5.00503/PA-RISC1.1
>     /opt/perl5/lib/5.00503
>     /opt/perl5/lib/site_perl/5.005/PA-RISC1.1
>     /opt/perl5/lib/site_perl/5.005
>     .
>
>