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: bageshwar dot x dot kumar at jpmchase dot com
Subject: Re: Error compililg sybperl-2.18 on Solaris10
Date: Jul 6 2007 1:59PM

Thanks for your mail. Looks like it was done by Sun compiler in my case.


# perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=solaris, osvers=2.10, archname=sun4-solaris-64int
    uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-xarch=v8 -D_TS_ERRNO',
    optimize='-xO3 -xspace -xildoff',
    cppflags=''
    ccversion='Sun WorkShop', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, 
Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R 
/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE'
    cccdlflags='-KPIC', lddlflags='-G'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
  Locally applied patches:
        22667 The optree builder was looping when constructing the ops ...
        22715 Upgrade to FileCache 1.04
        22733 Missing copyright in the README.
        22746 fix a coredump caused by rv2gv not fully converting a PV ...
        22755 Fix 29149 - another UTF8 cache bug hit by substr.
        22774 [perl #28938] split could leave an array without ...
        22775 [perl #29127] scalar delete of empty slice returned garbage
        22776 [perl #28986] perl -e "open m" crashes Perl
        22777 add test for change #22776 ("open m" crashes Perl)
        22778 add test for change #22746 ([perl #29102] Crash on assign 
...
        22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's ...
        22796 [perl #29346] Double warning for int(undef) and abs(undef) 
...
        22818 BOM-marked and (BOMless) UTF-16 scripts not working
        22823 [perl #29581] glob() misses a lot of matches
        22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 
cpu)
        22830 [perl #29637] Thread creation time is hypersensitive
        22831 improve hashing algorithm for ptr tables in perl_clone: ...
        22839 [perl #29790] Optimization busted: '@a = "b", sort @a' ...
        22850 [PATCH] 'perl -v' fails if local_patches contains code 
snippets
        22852 TEST needs to ignore SCM files
        22886 Pod::Find should ignore SCM files and dirs
        22888 Remove redundant %SIG assignments from FileCache
        23006 [perl #30509] use encoding and "eq" cause memory leak
        23074 Segfault using HTML::Entities
        23106 Numeric comparison operators mustn't compare addresses of 
...
        23320 [perl #30066] Memory leak in nested shared data structures 
...
        23321 [perl #31459] Bug in read()
        SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
  Built under solaris
  Compiled at Feb 13 2006 05:12:02
  @INC:
    /usr/perl5/5.8.4/lib/sun4-solaris-64int
    /usr/perl5/5.8.4/lib
    /usr/perl5/site_perl/5.8.4/sun4-solaris-64int
    /usr/perl5/site_perl/5.8.4
    /usr/perl5/site_perl
    /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
    /usr/perl5/vendor_perl/5.8.4
    /usr/perl5/vendor_perl
    .





Barry Callahan  
Sent by: owner-sybperl-l@peppler.org
06/07/2007 12:57

To
bageshwar.x.kumar@jpmchase.com
cc
sybperl-l@peppler.org
Subject
Re: Error compililg sybperl-2.18 on Solaris10






i'm not sure exactly but i did get it installed on my sol 10 AMD/x86/x64
box.

Assumptions:
Since your perl appears to be 64bit, you are using the 64bit sybase
client libraries.

Couple of thoughts:
* my biggest issue on install was the perl executable Was complied w/Sun 
Workshop
compiler (perl -V shows this) which was not on my system.  I had to edit 
All
makefile, did (may not be exactly correct...)

perl Makefile.PL CC=gcc CCCDLFLAGS=-fPIC OPTIMIZE=" " LD=gcc
    # Edited ALL MAKE FILES After perl Makefile.PL
vi Makefile */Makefile
    # CHANGED:
    CC = cc to gcc
    LD = cc to gcc
    CCCDLFLAGS = -KPIC to -fPIC # Probably did not need this one...

Good luck, i know there are others that could help more than me, just saw 
your
mail first.
--barry


bageshwar.x.kumar@jpmchase.com wrote:
> 
> Hello all,
> 
> I am trying to compile sybperl-2.18 to work on a Solaris10 server but 
> see the following issue:
> Anyone can provide any pointers on how to fix this and get sybperl work 
> for us.
> 
> # make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/1_db_dblib...........
> t/1_db_dblib...........ok 
> 
> t/1_db_money...........ok 
> 
> t/2_ct_ctlib...........Can't load 
> '/tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so' for module 
> Sybase::CTlib: ld.so.1: perl: fatal: relocation error: file 
> /tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so: symbol blk_drop: 

> referenced symbol not found at 
> /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
>  at t/2_ct_ctlib.t line 11
> Compilation failed in require at t/2_ct_ctlib.t line 11.
> BEGIN failed--compilation aborted at t/2_ct_ctlib.t line 11.
> t/2_ct_ctlib...........dubious 
> 
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-30
>         Failed 30/30 tests, 0.00% okay
> t/2_ct_cursor..........Can't load 
> '/tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so' for module 
> Sybase::CTlib: ld.so.1: perl: fatal: relocation error: file 
> /tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so: symbol blk_drop: 

> referenced symbol not found at 
> /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
>  at t/2_ct_cursor.t line 12
> Compilation failed in require at t/2_ct_cursor.t line 12.
> BEGIN failed--compilation aborted at t/2_ct_cursor.t line 12.
> t/2_ct_cursor..........dubious 
> 
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-22
>         Failed 22/22 tests, 0.00% okay
> t/2_ct_nsql............Can't load 
> '/tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so' for module 
> Sybase::CTlib: ld.so.1: perl: fatal: relocation error: file 
> /tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so: symbol blk_drop: 

> referenced symbol not found at 
> /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
>  at t/2_ct_nsql.t line 9
> Compilation failed in require at t/2_ct_nsql.t line 9.
> BEGIN failed--compilation aborted at t/2_ct_nsql.t line 9.
> t/2_ct_nsql............dubious 
> 
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-4
>         Failed 4/4 tests, 0.00% okay
> t/2_ct_prepare.........Can't load 
> '/tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so' for module 
> Sybase::CTlib: ld.so.1: perl: fatal: relocation error: file 
> /tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so: symbol blk_drop: 

> referenced symbol not found at 
> /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
>  at t/2_ct_prepare.t line 9
> Compilation failed in require at t/2_ct_prepare.t line 9.
> BEGIN failed--compilation aborted at t/2_ct_prepare.t line 9.
> t/2_ct_prepare.........dubious 
> 
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-15
>         Failed 15/15 tests, 0.00% okay
> t/2_ct_xblk............Can't load 
> '/tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so' for module 
> Sybase::CTlib: ld.so.1: perl: fatal: relocation error: file 
> /tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so: symbol blk_drop: 

> referenced symbol not found at 
> /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
>  at t/2_ct_xblk.t line 11
> Compilation failed in require at t/2_ct_xblk.t line 11.
> BEGIN failed--compilation aborted at t/2_ct_xblk.t line 11.
> t/2_ct_xblk............dubious 
> 
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-21
>         Failed 21/21 tests, 0.00% okay
> t/3_bcp................Sybase message 911, Severity 11, state 2
> Server `test'
> Line 1
>     Attempt to locate entry in sysdatabases for database 'test' by name 
> failed - no entry found under that name. Make sure that name is entered 
> properly.
> 
>     1> create table test..bcp(f1 char(5), f2 int, f3 text) lock allpages
> Sybase message 2702, Severity 16, state 3
> Server `test'
> Line 1
>     Database 'test' does not exist.
> 
>     1> create table test..bcp(f1 char(5), f2 int, f3 text) lock allpages
> Sybase message 208, Severity 16, state 1
> Server `test'
> Line 2
>     test.dbo.syscolumns not found. Specify owner.objectname or use 
> sp_help to check whether the object exists (sp_help may produce lots of 
> output).
> 
>     1>
>     2> select c.name, t.name
>     3> from test.dbo.syscolumns c, test.dbo.systypes t
>     4> where c.id = object_id('test..bcp')
>     5> and   c.usertype *= t.usertype
> Sybase message 208, Severity 16, state 1
> Server `test'
> Line 2
>     test.dbo.systypes not found. Specify owner.objectname or use sp_help 

> to check whether the object exists (sp_help may produce lots of output).
> 
>     1>
>     2> select c.name, t.name
>     3> from test.dbo.syscolumns c, test.dbo.systypes t
>     4> where c.id = object_id('test..bcp')
>     5> and   c.usertype *= t.usertype
> Can't use an undefined value as an ARRAY reference at 
> /tmp/sybperl-2.18/blib/lib/Sybase/BCP.pm line 413.
> t/3_bcp................dubious 
> 
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 3, 5-9
>         Failed 6/9 tests, 33.33% okay
> t/4_blk................Can't load 
> '/tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so' for module 
> Sybase::CTlib: ld.so.1: perl: fatal: relocation error: file 
> /tmp/sybperl-2.18/blib/arch/auto/Sybase/CTlib/CTlib.so: symbol blk_drop: 

> referenced symbol not found at 
> /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
>  at /tmp/sybperl-2.18/blib/lib/Sybase/BLK.pm line 312
> Compilation failed in require at 
> /tmp/sybperl-2.18/blib/lib/Sybase/BLK.pm line 312.
> BEGIN failed--compilation aborted at 
> /tmp/sybperl-2.18/blib/lib/Sybase/BLK.pm line 312.
> Compilation failed in require at t/4_blk.t line 12.
> BEGIN failed--compilation aborted at t/4_blk.t line 12.
> t/4_blk................dubious 
> 
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-19
>         Failed 19/19 tests, 0.00% okay
> t/5_sybperl............ok 
> 
> t/5_sybperl_dbmoney....ok 
> 
> Failed Test      Stat Wstat Total Fail  Failed  List of Failed
> 
------------------------------------------------------------------------------- 

> 
> t/2_ct_ctlib.t    255 65280    30   59 196.67%  1-30
> t/2_ct_cursor.t   255 65280    22   43 195.45%  1-22
> t/2_ct_nsql.t     255 65280     4    7 175.00%  1-4
> t/2_ct_prepare.t  255 65280    15   29 193.33%  1-15
> t/2_ct_xblk.t     255 65280    21   41 195.24%  1-21
> t/3_bcp.t         255 65280     9   11 122.22%  3 5-9
> t/4_blk.t         255 65280    19   38 200.00%  1-19
> Failed 7/11 test scripts, 36.36% okay. 117/215 subtests failed, 45.58% 
> okay.
> *** Error code 29
> make: Fatal error: Command failed for target `test_dynamic'
> 
> Regards,
> Bageshwar

> 





-----------------------------------------
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.