Perl 5.6.1 source

I’m trying to compile Perl 5.6.1 (the latest stable release) and it is
barfing at the make step. I am getting the following:

Warning(1028): gethostent_ is an undefined reference
file libperl3r.lib(/home/held/perl-5.6.1/pp_sys.c): undefined symbol
gethostent_
cc: /usr/watcom/10.6/bin/wlink exited 1

I am using QNX 4.25 with the 4.25B tcptk. Any thoughts?

TIA,

Lance Held

Software Engineer - Nanogen, Inc.
voice: (858) 410-4740
fax: (858) 410-4848
mailto:lheld@nanogen.com
http://www.nanogen.com

“Lance Held” <lheld@nanogen.com> wrote in message
news:3BE31FBC.427F4E46@nanogen.com

I’m trying to compile Perl 5.6.1 (the latest stable release) and it is
barfing at the make step. I am getting the following:
Warning(1028): gethostent_ is an undefined reference
file libperl3r.lib(/home/held/perl-5.6.1/pp_sys.c): undefined symbol
gethostent_
cc: /usr/watcom/10.6/bin/wlink exited 1

I am using QNX 4.25 with the 4.25B tcptk. Any thoughts?

in order to access gethostent() function you should link your application
with socket library from tcp/tk. add “-l socket” key to your cc command for
linking.

TIA,

Lance Held

Software Engineer - Nanogen, Inc.
voice: (858) 410-4740
fax: (858) 410-4848
mailto:> lheld@nanogen.com
http://www.nanogen.com

// wbr

FYI, it turned out that the socket library that was being used was a stubbed
version as Norton Allen pointed out to me in an email correspondence:

“This error arises if you don’t have the TCP/IP toolkit
or the socket library is not correctly located. Note
carefully the location of all the socket libraries.
Watcom usually looks first in /usr/watcom/10.6/usr/lib/
before looking directly in /usr/lib/ or other paths
you might specify with -L. Make sure the socket3r.lib
found in those places is the same as the one in
/usr/tcptk/current/usr/lib/socket3r.lib. Note that
Watcom ships with a stub version of socket3r.lib that
does not support TCP/IP but allows some simple
applications to compile anyway.”


ian zagorskih wrote:

“Lance Held” <> lheld@nanogen.com> > wrote in message
news:> 3BE31FBC.427F4E46@nanogen.com> …
I’m trying to compile Perl 5.6.1 (the latest stable release) and it is
barfing at the make step. I am getting the following:
Warning(1028): gethostent_ is an undefined reference
file libperl3r.lib(/home/held/perl-5.6.1/pp_sys.c): undefined symbol
gethostent_
cc: /usr/watcom/10.6/bin/wlink exited 1

I am using QNX 4.25 with the 4.25B tcptk. Any thoughts?

in order to access gethostent() function you should link your application
with socket library from tcp/tk. add “-l socket” key to your cc command for
linking.

TIA,

Lance Held

Software Engineer - Nanogen, Inc.
voice: (858) 410-4740
fax: (858) 410-4848
mailto:> lheld@nanogen.com
http://www.nanogen.com


// wbr


Lance Held

Software Engineer - Nanogen, Inc.
voice: (858) 410-4740
fax: (858) 410-4848
mailto:lheld@nanogen.com
http://www.nanogen.com