Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling Sybperl on Dec Alpha #772

Closed
p5pRT opened this issue Oct 22, 1999 · 7 comments
Closed

Compiling Sybperl on Dec Alpha #772

p5pRT opened this issue Oct 22, 1999 · 7 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 22, 1999

Migrated from rt.perl.org#1696 (status was 'resolved')

Searchable as RT1696$

@p5pRT
Copy link
Author

p5pRT commented Oct 22, 1999

From Eman.Abohebeish@disney.com

I have Sybase Open Client 10.0.4 installed on Dec Alpha (V4.0). I have also
sucessfully installed PERL 5.005-3.

I have sucessfully unziped the the Sybperl-2.11.tar file.

I followed all the steps in the README file, but when I try to do 'make
test', I get the following error. I have read the FAQ section for this
problem, and everything checks out O.K.

Any idea why this is happening? Thanks.

- Eman

/home/users/psoft_qa/sybperl/sybperl-2.11>> make test
PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/arch -I../blib/lib
-I/usr/local/lib/pe
rl5/5.00503/alpha-dec_osf -I/usr/local/lib/perl5/5.00503 -e 'use
Test​::Harness q
w(&runtests $verbose); $verbose=0; runtests @​ARGV;' t/*.t
t/bcp...............Can't load '../blib/arch/auto/Sybase/DBlib/DBlib.so' for
mod
ule Sybase​::DBlib​: Unresolved symbol in
/usr/sybase_qa_11.9.2/lib/libsybdb.so​: g
etnodebyname at /usr/local/lib/perl5/5.00503/alpha-dec_osf/DynaLoader.pm
line 16
9.

at ../blib/lib/Sybase/BCP.pm line 278
BEGIN failed--compilation aborted at ../blib/lib/Sybase/BCP.pm line 278.
BEGIN failed--compilation aborted at t/bcp.t line 14.
dubious
  Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-9
  Failed 9/9 tests, 0.00% okay
Failed Test Status Wstat Total Fail Failed List of failed



t/bcp.t 255 65280 9 9 100.00% 1-9
Failed 1/1 test scripts, 0.00% okay. 9/9 subtests failed, 0.00% okay.
*** Exit 2
Stop.
*** Exit 1
Stop.

@p5pRT
Copy link
Author

p5pRT commented Oct 23, 1999

From [Unknown Contact. See original ticket]

On Fri, 22 Oct 1999 18​:16​:21 -0700, "Abohebeish, Eman" wrote (in part)​:

Eman> Can't load '../blib/arch/auto/Sybase/DBlib/DBlib.so' for
Eman> module Sybase​::DBlib​: Unresolved symbol in
Eman> /usr/sybase_qa_11.9.2/lib/libsybdb.so​: getnodebyname at
Eman> /usr/local/lib/perl5/5.00503/alpha-dec_osf/DynaLoader.pm
Eman> line 169.

This looks like a problem with your libsybdb.so. It looks like
it was linked on a DECnet-using system, and was mis-configured to
look for -ldnet rather than -ldnet_stub. What does
"odump -Dl /usr/sybase_qa_11.9.2/lib/libsybdb.so" show for
library dependencies?

--
Spider Boardman (at home) spider@​Orb.Nashua.NH.US
The management (my cats) made me say this. http​://www.ultranet.com/~spiderb
PGP public key fingerprint​: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC

@p5pRT
Copy link
Author

p5pRT commented Oct 25, 1999

From [Unknown Contact. See original ticket]

Hi,

I get the following for library dependencies​:

/home/users/psoft_qa/sybperl/sybperl-2.11>> odump -Dl
/usr/sybase_qa_11.9.2/lib/libsybdb.so

  ***LIBRARY LIST SECTION***
  Name Time-Stamp CheckSum Flags Version
/usr/sybase_qa_11.9.2/lib/libsybdb.so​:
/home/users/psoft_qa/sybperl/sybperl-2.11>>

-----Original Message-----
From​: spider-perl@​Orb.Nashua.NH.US [mailto​:spider-perl@​Orb.Nashua.NH.US]
Sent​: Saturday, October 23, 1999 1​:59 AM
To​: Abohebeish, Eman
Cc​: perl5-porters@​perl.org
Subject​: Re​: [ID 19991022.014] Compiling Sybperl on Dec Alpha

On Fri, 22 Oct 1999 18​:16​:21 -0700, "Abohebeish, Eman" wrote (in part)​:

Eman> Can't load '../blib/arch/auto/Sybase/DBlib/DBlib.so' for
Eman> module Sybase​::DBlib​: Unresolved symbol in
Eman> /usr/sybase_qa_11.9.2/lib/libsybdb.so​: getnodebyname at
Eman> /usr/local/lib/perl5/5.00503/alpha-dec_osf/DynaLoader.pm
Eman> line 169.

This looks like a problem with your libsybdb.so. It looks like
it was linked on a DECnet-using system, and was mis-configured to
look for -ldnet rather than -ldnet_stub. What does
"odump -Dl /usr/sybase_qa_11.9.2/lib/libsybdb.so" show for
library dependencies?

--
Spider Boardman (at home) spider@​Orb.Nashua.NH.US
The management (my cats) made me say this.
http​://www.ultranet.com/~spiderb
PGP public key fingerprint​: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC

@p5pRT
Copy link
Author

p5pRT commented Oct 25, 1999

From [Unknown Contact. See original ticket]

On Mon, 25 Oct 1999 10​:17​:43 -0700, "Abohebeish, Eman" wrote (in part)​:

Eman> I get the following for library dependencies​:

[nothing, not even libc]

Ah, then the problem is that libsybdb.so wasn't built properly.
You'll need to augment the LIBS portion of the sybperl's build to
include '-ldnet_stub' to get this to work.

This can probably be done with a hints file, but I'm only
guessing, since I don't have Sybase and thus have no way to test
with a successful build of Sybase​::DBlib. If my guess is right,
though, it should look something like the following​:

--- begin sample hints/dec_osf.pl file ---
unshift @​{$self->{LIBS}}, '-lsybdb -ldnet_stub';
--- end sample hints/dec_osf.pl file ---

Be sure to take a look at the LIBS portion of the Makefile.PL
file to be sure that I've not overlooked anything else essential
there. The idea is to ensure that libdnet_stub gets loaded when
libsybdb does, so that calls into the sybase library will work.

--
Spider Boardman (at home) spider@​Orb.Nashua.NH.US
The management (my cats) made me say this. http​://www.ultranet.com/~spiderb
PGP public key fingerprint​: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC

@p5pRT
Copy link
Author

p5pRT commented Oct 25, 1999

From [Unknown Contact. See original ticket]

"spider" == spider-perl <spider-perl@​Orb.Nashua.NH.US> writes​:

  spider> On Mon, 25 Oct 1999 10​:17​:43 -0700, "Abohebeish, Eman"
  spider> wrote (in part)​:
  Eman> I get the following for library dependencies​:

  spider> [nothing, not even libc]

  spider> Ah, then the problem is that libsybdb.so wasn't built
  spider> properly. You'll need to augment the LIBS portion of the
  spider> sybperl's build to include '-ldnet_stub' to get this to
  spider> work.

You might want to check that the tcl.so lib is what you think it is
(i.e. Sybase tcl, not tcl tcl)

  spider> This can probably be done with a hints file, but I'm only
  spider> guessing, since I don't have Sybase and thus have no way
  spider> to test with a successful build of Sybase​::DBlib. If my
  spider> guess is right, though, it should look something like the
  spider> following​:

  spider> --- begin sample hints/dec_osf.pl file --- unshift
  spider> @​{$self->{LIBS}}, '-lsybdb -ldnet_stub'; --- end sample
  spider> hints/dec_osf.pl file ---

  spider> Be sure to take a look at the LIBS portion of the
  spider> Makefile.PL file to be sure that I've not overlooked
  spider> anything else essential there. The idea is to ensure that
  spider> libdnet_stub gets loaded when libsybdb does, so that calls
  spider> into the sybase library will work.

@p5pRT
Copy link
Author

p5pRT commented Oct 25, 1999

From [Unknown Contact. See original ticket]

Hi,

I did not see a LIBS portion in Makefile.PL, however, I did add these to my
CONFIG file as follows​:

EXTRA_LIBS=-linsck -lsybdb -ldnet_stub -lsdna -lnsl -lsocket

Also, I only get libsybdb.so for library dependencies.

I'm not sure how to use a "hints" file - do I just create it and sybperl
will find it?

Eman

-----Original Message-----
From​: spider-perl@​Orb.Nashua.NH.US [mailto​:spider-perl@​Orb.Nashua.NH.US]
Sent​: Monday, October 25, 1999 10​:33 AM
To​: Abohebeish, Eman
Cc​: perl5-porters@​perl.org
Subject​: Re​: [ID 19991022.014] Compiling Sybperl on Dec Alpha

On Mon, 25 Oct 1999 10​:17​:43 -0700, "Abohebeish, Eman" wrote (in part)​:

Eman> I get the following for library dependencies​:

[nothing, not even libc]

Ah, then the problem is that libsybdb.so wasn't built properly.
You'll need to augment the LIBS portion of the sybperl's build to
include '-ldnet_stub' to get this to work.

This can probably be done with a hints file, but I'm only
guessing, since I don't have Sybase and thus have no way to test
with a successful build of Sybase​::DBlib. If my guess is right,
though, it should look something like the following​:

--- begin sample hints/dec_osf.pl file ---
unshift @​{$self->{LIBS}}, '-lsybdb -ldnet_stub';
--- end sample hints/dec_osf.pl file ---

Be sure to take a look at the LIBS portion of the Makefile.PL
file to be sure that I've not overlooked anything else essential
there. The idea is to ensure that libdnet_stub gets loaded when
libsybdb does, so that calls into the sybase library will work.

--
Spider Boardman (at home) spider@​Orb.Nashua.NH.US
The management (my cats) made me say this.
http​://www.ultranet.com/~spiderb
PGP public key fingerprint​: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC

@p5pRT
Copy link
Author

p5pRT commented Oct 25, 1999

From [Unknown Contact. See original ticket]

On Mon, 25 Oct 1999 11​:08​:29 -0700, "Abohebeish, Eman" wrote (in part)​:

Eman> I'm not sure how to use a "hints" file - do I just create
Eman> it and sybperl will find it?

The use of hints files from a Makefile.PL is a MakeMaker feature.
Try `perldoc ExtUtils​::MakeMaker' for more info.

Your other [elided] questions are getting too specific to
sybperl, of which I'm deliberately ignorant. They're no longer
really platform questions for Tru64 UNIX, which I do know.
Anyone who really knows sybperl care to chime in?

--
Spider Boardman (at home) spider@​Orb.Nashua.NH.US
The management (my cats) made me say this. http​://www.ultranet.com/~spiderb
PGP public key fingerprint​: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant