Hi folks,
has anyone gotten PAR compiled on HP-UX 11 ?
I'm not sure if my problems are PAR directly, or some odd ld problems,
since I generally don't have too much fun compiling perl modules on
HPUX-11.
I'm most curious about the :
ld: Unsatisfied symbols:
$global$ (data)
Anyone know what thats from?
The following occurs:
[EMAIL PROTECTED]: ...perl/src/PAR-0.87 > make
cp lib/PAR.pm blib/lib/PAR.pm
cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm
cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
cp lib/PAR/Tutorial.pod blib/lib/PAR/Tutorial.pod
cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm
cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
cp lib/PAR/FAQ.pod blib/lib/PAR/FAQ.pod
cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
cp lib/PAR/Heavy.pm blib/lib/PAR/Heavy.pm
/home/mis/jer/perl/src/PAR-0.87/myldr
make[1]: Entering directory `/home/mis/jer/perl/src/PAR-0.87/myldr'
cc -c -D_HPUX_SOURCE -I/usr/local/include +DAportable -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Ae
-I/usr/local/packages/perl-5.6.1/lib/5.6.1/PA-RISC2.0/CORE main.c
cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of
"sendfile" with a different storage class specifier: "sendfile" will have
internal linkage.
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of
"sendpath" with a different storage class specifier: "sendpath" will have
internal linkage.
cc: "mktmpdir.h", line 35: warning 562: Redeclaration of "PL_statbuf" with
a different storage class specifier: "PL_statbuf" will have internal
linkage.
perl ./file2c.pl ../script/par.pl my_par_pl.c load_me_2 0
cc -c -D_HPUX_SOURCE -I/usr/local/include +DAportable -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Ae
-I/usr/local/packages/perl-5.6.1/lib/5.6.1/PA-RISC2.0/CORE my_par_pl.c
ld main.o my_par_pl.o -Wl,-E -Wl,-B,deferred -L/usr/local/lib
/usr/local/packages/perl-5.6.1/lib/5.6.1/PA-RISC2.0/auto/DynaLoader/DynaLoader.a
-L/usr/local/packages/perl-5.6.1/lib/5.6.1/PA-RISC2.0/CORE -lperl -lnsl
-lnm -ldld -lm -lc -lndir -lcrypt -lsec -o ./par
ld: Unrecognized argument: -Wl,-E
ld: Usage: ld [options] [flags] files
make[1]: *** [par] Error 1
make[1]: Leaving directory `/home/mis/jer/perl/src/PAR-0.87/myldr'
make: *** [subdirs] Error 2
--
Going to myldr and trying the ld without those flags its not liking gets
me:
[EMAIL PROTECTED]: ...perl/src/PAR-0.87 > cd myldr
[EMAIL PROTECTED]: ...src/PAR-0.87/myldr > ld main.o my_par_pl.o
-L/usr/local/lib
/usr/local/packages/perl-5.6.1/lib/5.6.1/PA-RISC2.0/auto/DynaLoader/DynaLoader.a
-L/usr/local/packages/perl-5.6.1/lib/5.6.1/PA-RISC2.0/CORE -lperl -lnsl
-lnm -ldld -lm -lc -lndir -lcrypt -lsec -o ./par
ld: Unsatisfied symbols:
$global$ (data)
zsh: exit 1 ld main.o my_par_pl.o -L/usr/local/lib -lperl -lnsl -lnm
-ldld -lm -lc
--
My perl claims it was build on this machine though (not by me however),
and used those flags:
[EMAIL PROTECTED]: ...src/PAR-0.87/myldr > perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=hpux, osvers=11.00, archname=PA-RISC2.0
uname='hp-ux trabant b.11.00 a 9000800 2002699231 two-user license '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags =' -D_HPUX_SOURCE -I/usr/local/include +DAportable
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae',
optimize='-O',
cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include +DAportable'
ccversion='A.11.01.00', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lnsl -lnm -lndbm -lgdbm -ldld -lm -lc -lndir -lcrypt -lsec
perllibs=-lnsl -lnm -ldld -lm -lc -lndir -lcrypt -lsec
libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under hpux
Compiled at Apr 20 2001 16:36:28
%ENV:
PERL5LIB="/home/mis/jer/perl/hpux11/lib/site_perl/5.6.1/:"
@INC:
/home/mis/jer/perl/hpux11/lib/site_perl/5.6.1//PA-RISC2.0
/home/mis/jer/perl/hpux11/lib/site_perl/5.6.1/
/usr/local/packages/perl-5.6.1/lib/5.6.1/PA-RISC2.0
/usr/local/packages/perl-5.6.1/lib/5.6.1
/usr/local/packages/perl-5.6.1/lib/site_perl/5.6.1/PA-RISC2.0
/usr/local/packages/perl-5.6.1/lib/site_perl/5.6.1
/usr/local/packages/perl-5.6.1/lib/site_perl
Thanks,
Jess