Problem with Sybperl 2.07 on HPUX - does not make test 
Author Message
 Problem with Sybperl 2.07 on HPUX - does not make test

Hi,

I am trying to get sybperl 2.07 installed on our new HPUX system with
Perl 5.005 and Sybase OpenClient 11.1.1 which will be connecting to
ASE 11.5 running on a Sun450 Solaris server.

We have perl installed and it tests out ok, and isql can talk to the
server so that seems fine. When initially trying to get sybperl
configured we were getting unknown network type errors, these were
removed by using sybsetup to redefine the network protocols in the
interfaces file & the build now gets to the point of trying to connect
to the database then fails.

The sybperl PWD file is configured with valid user info for the
connection. Any leads would be appreciated, as part of our y2k project
we are scheduled to migrate to the HP platform this weekend and I hope
to have this product working by then.

regards

Andrew Fletcher

------------------------------------

# uname -a
============
============
HP-UX hpdev B.10.20 B 9000/861 2011183661 16-user license

# echo $DSQUERY , $SYBASE , $SHLIB_PATH
==========================
==========================
FAIDEV , /opt/sybase , /opt/sybase/lib

# perl -v
============
============
This is perl, version 5.005 built for PA-RISC2.0

# isql -v
============
============
Sybase CTISQL Utility/11.1.1/P/hp800/HP-UX 10.01/1/OPT/Thu Aug 14
07:37:24 1997

# cat $SYBASE/interfaces
=============
=============
FAIDEV
        master tcp ether sun183 4101
        query tcp ether sun183 4101

# cat CONFIG
=========================
=========================
# Configuration file for Sybperl
#
# DBlibrary version. Set to 1000 (or higher) if you have System 10
# Set to 0 if you do not want to build DBlib or if DBlib is not
available
# (Linux, for example)
DBLIBVS=1000

# CTlib version. Set to 0 if Client Library is not available on your
# system, or if you don't want to build the CTlib module. The Client
# Library started shipping with System 10.
# Note that the CTlib module is still under construction, though the
# core API should be stable now.
# Set to 100 if you have System 10.
CTLIBVS=100

# Where is the Sybase directory on your system (include files &
# libraries are expected to be found at SYBASE/include & SYBASE/lib
SYBASE=/opt/sybase

# Additional libraries.
# Some systems require -lnsl or -lBSD.
# Solaris 2.x needs -ltli
# DEC OSF/1 needs -ldnet_stub
# See the Sybase OpenClient Supplement for your OS/Hardware
# combination.
#EXTRA_LIBS=-ltli
#EXTRA_LIBS=-linsck

# Additional #defines.
# With Perl 5.001m, you will need -DUNDEF_BUG.
# With Perl 5.002, none are normally needed, but you may wish to
# use -DDO_TIE to get the benefit of stricter checking on the
# Sybase::DBlib and Sybase::CTlib attributes.
#EXTRA_DEFS=-DUNDEF_BUG
EXTRA_DEFS=-DDO_TIE

# LINKTYPE
# If you wish to link Sybase::DBlib and/or Sybase::CTlib statically
# into perl uncomment the line below and run the make normally. Then,
# when you run 'make test' a new perl binary will be built.
#LINKTYPE=static
#

# perl Makefile.PL
===================
===================
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good
Writing Makefile for Sybase::BCP
Writing Makefile for Sybase::CTlib
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase

# make test
=============
=============
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Sybase
mkdir blib/lib/auto
mkdir blib/lib/auto/Sybase
cp lib/sql.pl blib/lib/sql.pl
cp lib/sybperl.pl blib/lib/sybperl.pl
cp lib/sybutil.pl blib/lib/sybutil.pl
cp lib/ctutil.pl blib/lib/ctutil.pl
mkdir ../blib/lib/Sybase
mkdir ../blib/arch/auto/Sybase/BCP
mkdir ../blib/lib/auto/Sybase/BCP
mkdir ../blib/man3
cp BCP.pm ../blib/lib/Sybase/BCP.pm
Manifying ../blib/man3/Sybase::BCP.3
mkdir ../blib/arch/auto/Sybase/CTlib
mkdir ../blib/lib/auto/Sybase/CTlib
cp CTlib.pm ../blib/lib/Sybase/CTlib.pm
AutoSplitting ../blib/lib/Sybase/CTlib.pm
(../blib/lib/auto/Sybase/CTlib)
        /usr/bin/perl -I/opt/perl5/lib/5.005/PA-RISC2.0
-I/opt/perl5/lib/5.005 /opt/perl5/lib/5.005/ExtUtils/xsubpp
-prototypes -typemap /opt/perl5/lib/5.005/ExtUtils/typemap CTlib.xs

Quote:
>CTlib.tc && mv CTlib.tc CTlib.c

        cc -c -I/opt/sybase/include -D_HPUX_SOURCE -Aa
-I/usr/local/include -O     -DVERSION=\"2.07\"  -DXS_VERSION=\"2.07\"
+z -I/opt/perl5/lib/5.005/PA-RISC2.0/CORE -DCTLIBVS=100
-DSYBPLVER='"2.07"' -DDO_TIE CTlib.c
cc: constant(): warning 6062: Optdriver: Exceeding compiler resource
limits in constant; some optimizations skipped. Use +Onolimit if
override desired. (6062)
Running Mkbootstrap for Sybase::CTlib ()
        chmod 644 CTlib.bs
        LD_RUN_PATH="/opt/sybase/lib:/lib/pa1.1" ld -o
../blib/arch/auto/Sybase/CTlib/CTlib.sl  -L/opt/sybase/lib -b
-L/usr/local/lib CTlib.o    -L/opt/sybase/lib -lct -lcs -ltcl -lcomn
-lintl -linsck -lm
ld: (Warning) At least one PA 2.0 object file (CTlib.o) was detected.
The linked output may not run on a PA 1.x system.
        chmod 755 ../blib/arch/auto/Sybase/CTlib/CTlib.sl
        cp CTlib.bs ../blib/arch/auto/Sybase/CTlib/CTlib.bs
        chmod 644 ../blib/arch/auto/Sybase/CTlib/CTlib.bs
mkdir ../blib/arch/auto/Sybase/DBlib
mkdir ../blib/lib/auto/Sybase/DBlib
cp DBlib.pm ../blib/lib/Sybase/DBlib.pm
AutoSplitting ../blib/lib/Sybase/DBlib.pm
(../blib/lib/auto/Sybase/DBlib)
        /usr/bin/perl -I/opt/perl5/lib/5.005/PA-RISC2.0
-I/opt/perl5/lib/5.005 /opt/perl5/lib/5.005/ExtUtils/xsubpp
-prototypes -typemap /opt/perl5/lib/5.005/ExtUtils/typemap DBlib.xs
Quote:
>DBlib.tc && mv DBlib.tc DBlib.c

        cc -c -I/opt/sybase/include -D_HPUX_SOURCE -Aa
-I/usr/local/include -O     -DVERSION=\"2.07\"  -DXS_VERSION=\"2.07\"
+z -I/opt/perl5/lib/5.005/PA-RISC2.0/CORE -DDBLIBVS=1000
-DSYBPLVER='"2.07"' -DDO_TIE DBlib.c
cc: "DBlib.xs", line 499: warning 604: Pointers are not
assignment-compatible.
cc: "DBlib.xs", line 499: warning 563: Argument #3 is not the correct
type.
cc: "DBlib.xs", line 512: warning 604: Pointers are not
assignment-compatible.
cc: "DBlib.xs", line 512: warning 563: Argument #6 is not the correct
type.
cc: "DBlib.xs", line 561: warning 604: Pointers are not
assignment-compatible.
cc: "DBlib.xs", line 561: warning 563: Argument #3 is not the correct
type.
cc: "DBlib.xs", line 574: warning 604: Pointers are not
assignment-compatible.
cc: "DBlib.xs", line 574: warning 563: Argument #6 is not the correct
type.
cc: constant(): warning 6062: Optdriver: Exceeding compiler resource
limits in constant; some optimizations skipped. Use +Onolimit if
override desired. (6062)
Running Mkbootstrap for Sybase::DBlib ()
        chmod 644 DBlib.bs
        LD_RUN_PATH="/opt/sybase/lib:/lib/pa1.1" ld -o
../blib/arch/auto/Sybase/DBlib/DBlib.sl  -L/opt/sybase/lib -b
-L/usr/local/lib DBlib.o    -L/opt/sybase/lib -lsybdb -lm
ld: (Warning) At least one PA 2.0 object file (DBlib.o) was detected.
The linked output may not run on a PA 1.x system.
        chmod 755 ../blib/arch/auto/Sybase/DBlib/DBlib.sl
        cp DBlib.bs ../blib/arch/auto/Sybase/DBlib/DBlib.bs
        chmod 644 ../blib/arch/auto/Sybase/DBlib/DBlib.bs
mkdir ../blib/arch/auto/Sybase/Sybperl
mkdir ../blib/lib/auto/Sybase/Sybperl
cp Sybperl.pm ../blib/lib/Sybase/Sybperl.pm
AutoSplitting ../blib/lib/Sybase/Sybperl.pm
(../blib/lib/auto/Sybase/Sybperl)
        PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/arch -I../blib/lib
-I/opt/perl5/lib/5.005/PA-RISC2.0 -I/opt/perl5/lib/5.005 -e 'use

t/*.t
t/bcp...............Value of <HANDLE> construct can be "0"; test with
defined() at ../blib/lib/Sybase/BCP.pm line 567.
Sybase message 4002, Severity 14, state 1
Server `FAIDEV'
Line 1
    Login failed.

Use of uninitialized value at ../blib/lib/sybutil.pl line 38.
Sybase error: Login incorrect.
Can't bless non-reference value at ../blib/lib/Sybase/BCP.pm line 321.
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-9
        Failed 8/9 tests, 11.11% okay
Failed Test  Status Wstat Total Fail  Failed  List of failed
-------------------------------------------------------------------------------
t/bcp.t         255 65280     9    8  88.89%  2-9
Failed 1/1 test scripts, 0.00% okay. 8/9 subtests failed, 11.11% okay.
*** Error exit code 9

Stop.
*** Error exit code 1

Stop.

                                             \\\|///
                                             | ~ ~ |
                                            (- O O -)
+-----------------------------------------oOOo-(_)-oOOo--------------+


+----------------------------------------.oooO-----(  )--------------+
                                          (  )     ) /
                                           \ (    (_/
                                            \_)



Fri, 16 Mar 2001 03:00:00 GMT  
 Problem with Sybperl 2.07 on HPUX - does not make test

Quote:

> The sybperl PWD file is configured with valid user info for the
> connection.

Strange, because:

Quote:
>         PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/arch -I../blib/lib
> -I/opt/perl5/lib/5.005/PA-RISC2.0 -I/opt/perl5/lib/5.005 -e 'use

> t/*.t
> t/bcp...............Value of <HANDLE> construct can be "0"; test with
> defined() at ../blib/lib/Sybase/BCP.pm line 567.
> Sybase message 4002, Severity 14, state 1
> Server `FAIDEV'
> Line 1
>     Login failed.

That would definitely mean that the login failed.

In the sybperl source directory, try:

perl -Mblib -MSybase::DBlib -e '$n = new Sybase::DBlib "user", "pwd",

and see what you get.

Michael

PS - you should probably get sybperl 2.009_05...
--
Michael Peppler         -||-  Data Migrations Inc.

Int. Sybase User Group  -||-  http://www.isug.com



Fri, 16 Mar 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. errors compiling sybperl 2.07

2. Perl 5.004/Sybperl 2.07 on Windows NT

3. Perl 5.004 & Sybperl 2.07

4. SybPerl 2.07 Compile

5. problem making perl 5.6.0 on HPUX

6. problem making perl 5.6.0 on HPUX

7. ANNOUNCE: Switch 2.07

8. relocation error: symbol not found: _fpgetround occurs when making test for GD.pm

9. Help with Sybperl 'make test' problem

10. sybperl test problem

11. Binaries Sybperl for HPUX 9.0x

12. Assistance with Sybperl on HPUX?

 

 
Powered by phpBB® Forum Software