Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.91k stars 542 forks source link

Qnx compile/link errors with perl-5.7.2 #4622

Closed p5pRT closed 16 years ago

p5pRT commented 22 years ago

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

Searchable as RT7949$

p5pRT commented 22 years ago

From JMeyer@aksys.com

I am having difficulties compiling perl-5.7.2 on our Qnx system. I downloaded the development version (5.7.2) and performed the configuration step. When I attempt to build via "make" I encounter an error with libperl3r for pp_pack.c (undefined symbols my_swap\, my htohl\, and my_ntonl).

The reason that I started doing this is because my company needs the Digest​:MD5 for running cons and I need to re-build Perl because our system does not support dynamic loading.

I have included the screen output of the error\, as well as\, my configuration file. \<\<output.txt>> \<\> Any help would be greatly appreciated. I also encountered the same errors with perl-5.6.1

Thanks Jim

p5pRT commented 22 years ago

From JMeyer@aksys.com

/usr/watcom/10.6/bin/wcc386 -zq -d+ -dPERL_CORE -w4 -i=/usr/include -oil -mf -wcd=202 -wcd= 203 -wcd=302 -fi=unix.h -4r -i=/usr/watcom/10.6/usr/include -i=/usr/include pp_pack.c pp_pack.c(795)​: Warning! W301​: No prototype found for 'my_ntohl' pp_pack.c(561)​: Warning! W301​: No prototype found for 'my_swap' pp_pack.c(1693)​: Warning! W301​: No prototype found for 'my_htonl' rm -f libperl3r.lib /bin/ar rcu libperl3r.lib perl.o malloc.o gv.o toke.o perly.o op.o regcomp.o dump.o util.o mg.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o u tf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o locale.o p p_pack.o WATCOM Library Manager Version 10.6 Copyright by WATCOM International Corp. 1988\, 1996. All rights reserved. WATCOM is a trademark of WATCOM International Corp. rm -f opmini.c cp op.c opmini.c `sh cflags libperl3r.lib opmini.o` -DPERL_EXTERNAL_GLOB opmini.c   CCCMD = cc -DPERL_CORE -c -mf -w4 -Wc\,-wcd=202 -Wc\,-wcd=203 -Wc\,-wcd=302 -Wc\,-fi =unix.h -I/usr/include -O /usr/watcom/10.6/bin/wcc386 -zq -d+ -dPERL_CORE -w4 -i=/usr/include -oil -dPERL_EXTERNAL_GL OB -mf -wcd=202 -wcd=203 -wcd=302 -fi=unix.h -4r -i=/usr/watcom/10.6/usr/include -i=/usr/in clude opmini.c opmini.c(4389)​: Warning! W201​: Unreachable code rm -f opmini.c cc -g -N1M -L/usr/local/lib -o miniperl \   miniperlmain.o opmini.o libperl3r.lib /usr/watcom/10.6/bin/wlink op quiet form qnx flat na miniperl op priv=3 op c libp /usr/loca l/lib​:/usr/watcom/10.6/usr/lib​:/usr/lib​:. de all f miniperlmain.o f opmini.o l libperl3r.li b op offset=1032k op st=1M Warning(1028)​: my_swap_ is an undefined reference Warning(1028)​: my_ntohl_ is an undefined reference Warning(1028)​: my_htonl_ is an undefined reference file libperl3r.lib(/home/jmeyer/TEST/perl-5.7.2/pp_pack.c)​: undefined symbol my_swap_ file libperl3r.lib(/home/jmeyer/TEST/perl-5.7.2/pp_pack.c)​: undefined symbol my_ntohl_ file libperl3r.lib(/home/jmeyer/TEST/perl-5.7.2/pp_pack.c)​: undefined symbol my_htonl_ cc​: /usr/watcom/10.6/bin/wlink exited 1 make​: *** [miniperl] Error 1

p5pRT commented 22 years ago

From JMeyer@aksys.com

myconfig

p5pRT commented 22 years ago

From [Unknown Contact. See original ticket]

  I see from your configuration that 'libs' is empty.   My configuration has 'libs=-lsocket -lcrypt -lunix'   -lunix is probably required to pick up common unix functions   not defined elsewhere. -lcrypt is required if you want to   use perl's crypt function. -lsocket is required unless you   explicitly exclude the Socket extension (and hence all   internet access). You will obviously need the TCP/IP toolkit   in order to have the correct socket library. The Watcom   compiler ships with a stub version of socket3r.lib that   will allow some simple programs to compile and link\, but   not something as complex as perl.

  Let me know how it goes...

  -Norton Allen

p5pRT commented 16 years ago

p5p@spam.wizbit.be - Status changed from 'open' to 'resolved'