|
|
sybperl-l Archive
Up Prev Next
From: Barry Callahan <callahanb at foliofn dot com>
Subject: Re: Error compililg sybperl-2.18 on Solaris10
Date: Jul 6 2007 11:57AM
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
> ----------------------------------------------------------------------------------------------------------------------------------------------
> Exotics & Hybrids Unix Team - London
> Tel: +44 (0) 2077771838 || Mob: +44 (0) 7881930014 || Email:
> bageshwar.x.kumar@jpmchase.com
> Team Contacts - Email: E&H Unix Support London || Hotline - 8742 1800
>
> ------------------------------------------------------------------------
>
> 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.
>
|