[perl #30971] wrong LDFLAGS from configure when use HP ANSIC with 64 bit enabled
by wesun@cisco.com (via RT) other posts by this author
Aug 6 2004 6:22PM messages near this date
[perl #30978] "make test" op/write failure
|
[perl #30970] No rule to make target xsubpp needed by 'Unicode.c'
# New Ticket Created by wesun@[...].com
# Please include the string: [perl #30971]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30971 >
This is a bug report for perl from wesun@[...].com,
generated with the help of perlbug 1.35 running under perl v5.8.5.
-----------------------------------------------------------------
[Please enter your report here]
When using HP ANIS C compiler on a HPUX 11.x server, the "configure" generates LDFLAGS by co
pying CCFLAGS. As a result, when enabling "use64bitall", the compiler only flag "+DD64" is l
eaked into LDFLAGS. This is not causing problem for perl compiling itself as the current mak
efile rulex do not use HP linker "ld" to link the binary. Instead, perl use cc and CFLAGS fo
r linking and cc does accept "+DD64" though "cc" just filter it out before passing the rest
of linking flags onto the linker.
However, with this setup, some of the modules (e.g., DBD-Oracle) is taking LDFLAGS from perl
config for linking with HP linker "ld", which will reject "+DD64" flag and fail "make".
oxen_wesun_1: ld +DD64
ld: Unrecognized argument: +DD64
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=install
severity=low
---
Site configuration information for perl v5.8.5:
Configured by wesun at Mon Jul 26 00:10:36 EDT 2004.
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=hpux, osvers=11.23, archname=IA64.ARCHREV_0-LP64
uname='hp-ux goofy b.11.23 u ia64 2820982338 unlimited-user license '
config_args='-des -Ulocincpth= -Uloclibpth= -Duse64bitall -Dprefix=/usr/local/perl5.8.5
-Duselargefiles -Dmake=gmake -Uinstallusrbinperl -Dlibs=-lnsl -lnm -ldl -ldld -lm -lsec -lpt
hread -lc '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags =' -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 ',
optimize='+O2 +Onolimit',
cppflags='-Aa -D__STDC_EXT__ -D_HPUX_SOURCE -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings'
ccversion='B3910B A.05.55', gccversion='', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='/usr/bin/ld', ldflags =' +DD64 -L/usr/lib/hpux64'
libpth=/usr/lib/hpux64 /lib /usr/lib /usr/ccs/lib /usr/local/lib
libs=-lnsl -lnm -ldl -ldld -lm -lsec -lpthread -lc
perllibs=-lnsl -lnm -ldl -ldld -lm -lsec -lpthread -lc
libc=/usr/lib/hpux64/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
cccdlflags='+Z', lddlflags='-b +vnocompatwarnings -L/usr/lib/hpux64'
Locally applied patches:
---
@INC for perl v5.8.5:
/usr/local/perl5.8.5/lib/5.8.5/IA64.ARCHREV_0-LP64
/usr/local/perl5.8.5/lib/5.8.5
/usr/local/perl5.8.5/lib/site_perl/5.8.5/IA64.ARCHREV_0-LP64
/usr/local/perl5.8.5/lib/site_perl/5.8.5
/usr/local/perl5.8.5/lib/site_perl
.
---
Environment for perl v5.8.5:
HOME=/users/wesun
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/opt/emc/ECC/bin:/usr/symcli/bin:/sbin:/usr/sbin:/etc:/usr/bin:/usr/ccs/bin:/usr/bi
n/X11:/usr/contrib/bin/X11:/usr/local/sbin:/usr/local/bin:/opt/ansic/bin:/opt/imake/bin:/opt
/langtools/bin:/opt/perf/bin:/opt/samba/bin:/users/wesun/bin:/users/wesun/bin/script:.
PERL_BADLANG (unset)
SHELL=/bin/ksh
|