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: brown at young dot epc dot lmms dot lmco dot com (Bob Brown)
Subject: ld output doesn't build perl/Sybperl 2.0.9
Date: Jun 1 1998 9:25PM

Hi,

I'm getting referencing errors with ld when I compile "test".  So what am I missing?  The file 
sybperl.output is the output from first 2 steps on the command line (Steps #3 and #4).  Please look 
in it as I see a comment about not finding "-lm" though there is such a library (libm.a) in /usr/lib. 
 I don't know if that's important or not.  

Everything below my contact info is info and output I thought you might need to help fix the problem. 
 Sorry for all the output, but I don't know what you might need to point out my "idiocy".

Thanks.

Bob Brown
Unix Sys Admin
Lockheed Martin Missiles and Space
mailto: brown@young.epc.lmms.lmco.com

Ps.  Maybe the Version output sheds some light on my problem?

Here's some of the particulars for our system set up here.
Sybperl: 2.0.9
Sybase : 11.0.2
Open Client (CT): 10.0.2
Perl: 5.0.3
OS: Sun Solaris 2.5.1

Sybase info:
SYBASE=/sw/sybase11
DSQUERY=SYBASE
SYB_BACKUP=SYB_BACKUP


###### PERL INFO  #####################
brown@wallace> perl -v

This is perl, version 5.003 with EMBED
        built under solaris at Sep 14 1996 22:39:00
        + suidperl security patch

Copyright 1987-1996, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

#########  sybperl Version output  ##########
brown@wallace> perl ./Version
Can't load module Sybase::DBlib, dynamic loading not available in this perl.
  (You may need to build a new perl executable which either supports
  dynamic loading or has the Sybase::DBlib module statically linked into it.)
 at blib/lib/Sybase/DBlib.pm line 290



#########  My defined $path  ############
/usr/local/zip /sw/samba/bin /home/brown/ie4/bin 
/usr/local/xemacs/xemacs-19.15/bin/sparc-sun-solaris2.4-sparcworks /home/brown/povray/povray3 
/sw/xdesigner-4.6a/bin /sw/jdk-1.1.4/bin /sw/mae-u4/bin /sw/workshop-3.1-sol2/SUNWspro/bin 
/sw/sybase11/bin /bin/posix /usr/local/bin /usr/ccs/bin /bin /usr/bin /usr/etc /etc /usr/sbin 
/usr/dt/bin /usr/proc/bin /usr/ucb /sw/sysadmin/bin /home/brown/scripts /sw/sunsolve/bin 
/sw/Acrobat/bin /usr/ccs/bin /usr/local/news/bin /etc/nis/bin /usr/oasys/bin /usr/local/flexlm 
/backups /opt/SUNWvxva/bin /opt/vxva/bin /sw/hpnp/bin /sw/adamat21/bin /usr/openwin/bin


############ My LD_LIBRARY_PATH  ################
/sw/workshop-3.1-sol2/SUNWspro/lib.SC3.0.1:/sw/workshop-3.1-sol2/SUNWspro/lib:/sw/sybase11/lib:/usr/o
penwin/lib:/usr/lib:/usr/local/lib:/sw/hpnp/lib:/sw/sunsolve/lib:/home/brown/lib


##### output on the command line #########
brown@wallace> make clean
cd BCP && test -f Makefile && make clean
make[1]: Entering directory `/home/brown/sybperl/sybperl-2.09/BCP'
brown@wallace> perl Makefile.PL >> sybperl.output
brown@wallace> make >> sybperl.output
brown@wallace> more PWD
# This file contains optional login id, passwd and server info for the test
# programs:
# You probably don't want to have it lying around after you've made
# sure that everything works OK.

UID=brown
PWD=abc123
SRV=SYBASE
brown@wallace> make test
make[1]: Entering directory `/home/brown/sybperl/sybperl-2.09/BCP'
make[1]: Leaving directory `/home/brown/sybperl/sybperl-2.09/BCP'
make[1]: Entering directory `/home/brown/sybperl/sybperl-2.09/CTlib'
make[1]: Leaving directory `/home/brown/sybperl/sybperl-2.09/CTlib'
make[1]: Entering directory `/home/brown/sybperl/sybperl-2.09/DBlib'
make[1]: Leaving directory `/home/brown/sybperl/sybperl-2.09/DBlib'
make[1]: Entering directory `/home/brown/sybperl/sybperl-2.09/Sybperl'
make[1]: Leaving directory `/home/brown/sybperl/sybperl-2.09/Sybperl'
Writing "Makefile.aperl" for this perl
Writing Makefile.aperl for Sybase
make -f Makefile.aperl perl
make[1]: Entering directory `/home/brown/sybperl/sybperl-2.09'
Writing perlmain.c
cd . && gcc -c  -I/opt/GNUperl5/lib/sun4-solaris/5.003/CORE   -O \
   -DVERSION=\"2.09\" \
-DXS_VERSION=\"2.09\" -I/opt/GNUperl5/lib/sun4-solaris/5.003/CORE perlmain.c
cat /home/brown/sybperl/sybperl-2.09/blib/arch/auto/Sybase/CTlib/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
cat /home/brown/sybperl/sybperl-2.09/blib/arch/auto/Sybase/DBlib/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
cat /sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/DynaLoader/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
cat /sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/Fcntl/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
cat /sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/FileHandle/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
cat /sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/NDBM_File/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
cat /sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
cat /sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/SDBM_File/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
cat /sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/Safe/extralibs.ld >> 
blib/arch/auto/Sybase/extralibs.all
gcc -o perl -O ./perlmain.o /opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a 
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/Safe/Safe.a 
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/SDBM_File/SDBM_File.a 
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a 
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/NDBM_File/NDBM_File.a 
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/FileHandle/FileHandle.a  
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/Fcntl/Fcntl.a 
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/DynaLoader/DynaLoader.a  
/home/brown/sybperl/sybperl-2.09/blib/arch/auto/Sybase/DBlib/DBlib.a 
/home/brown/sybperl/sybperl-2.09/blib/arch/auto/Sybase/CTlib/CTlib.a `cat 
./blib/arch/auto/Sybase/extralibs.all` 
Undefined                       first referenced
 symbol                             in file
t_snd                               /sw/sybase11/lib/libtli.so
tan                                 
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
t_errno                             /sw/sybase11/lib/libtli.so
t_rcvdis                            /sw/sybase11/lib/libtli.so
gethostbyname                       /sw/sybase11/lib/libtli.so
t_close                             /sw/sybase11/lib/libtli.so
gethostbyname_r                     /sw/sybase11/lib/libtcl.so
log                                 /opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o)
ceil                                
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
pow                                 /opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o)
t_rcvrel                            /sw/sybase11/lib/libtli.so
log10                               
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
sinh                                
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
tanh                                
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
t_alloc                             /sw/sybase11/lib/libtli.so
sqrt                                /opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o)
t_connect                           /sw/sybase11/lib/libtli.so
t_accept                            /sw/sybase11/lib/libtli.so
floor                               
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
t_bind                              /sw/sybase11/lib/libtli.so
inet_addr                           /sw/sybase11/lib/libtcl.so
fmod                                
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
atan2                               /opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o)
t_rcv                               /sw/sybase11/lib/libtli.so
t_sync                              /sw/sybase11/lib/libtli.so
exp                                 /opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o)
inet_ntoa                           /sw/sybase11/lib/libtcl.so
t_look                              /sw/sybase11/lib/libtli.so
asin                                
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
t_optmgmt                           /sw/sybase11/lib/libtli.so
t_snddis                            /sw/sybase11/lib/libtli.so
acos                                
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
gethostbyaddr_r                     /sw/sybase11/lib/libtcl.so
t_getinfo                           /sw/sybase11/lib/libtli.so
atan                                
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
t_unbind                            /sw/sybase11/lib/libtli.so
t_sndrel                            /sw/sybase11/lib/libtli.so
t_rcvconnect                        /sw/sybase11/lib/libtli.so
t_free                              /sw/sybase11/lib/libtli.so
sin                                 /opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o)
cosh                                
/sw/gnu/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o)
t_open                              /sw/sybase11/lib/libtli.so
cos                                 /opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o)
t_listen                            /sw/sybase11/lib/libtli.so
ld: fatal: Symbol referencing errors. No output written to perl
make[1]: *** [perl] Error 1
make[1]: Leaving directory `/home/brown/sybperl/sybperl-2.09'
make: *** [perl] Error 2
brown@wallace>