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

$Config{ccsymbols} contains -Acpu=i386 #5545

Open
p5pRT opened this issue Jun 5, 2002 · 2 comments
Open

$Config{ccsymbols} contains -Acpu=i386 #5545

p5pRT opened this issue Jun 5, 2002 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 5, 2002

Migrated from rt.perl.org#9478 (status was 'open')

Searchable as RT9478$

@p5pRT
Copy link
Author

p5pRT commented Jun 5, 2002

From prj@po.cwru.edu

This is a bug report for perl from prj@​multivac.cwru.edu,
generated with the help of perlbug 1.33 running under perl v5.6.1.


I installed perl 5.6.1, and my Config.pm has​:
ccsymbols='-Acpu=i386 -Amachine=i386 -Asystem=posix [...snip...]'

This causes h2ph to emit these in _h2ph_pre.ph​:
unless (defined &-Acpu) { sub -Acpu() { &i386 } }

unless (defined &-Amachine) { sub -Amachine() { &i386 } }

unless (defined &-Asystem) { sub -Asystem() { &posix } }

But perl chokes on these​:
Warning​: Use of "defined" without parens is ambiguous at /package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1/i686-linux-64int-ld/_h2ph_pre.ph line 2.
Bareword found where operator expected at /package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1/i686-linux-64int-ld/_h2ph_pre.ph line 2, near "&-Acpu"
  (Missing operator before Acpu?)
syntax error at /package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1/i686-linux-64int-ld/_h2ph_pre.ph line 2, near "&-Acpu"

Is it right for $Config{ccsymbols} to include -A*? Is it right for
h2ph to include them? Will parentheses fix this, or should they be
removed entirely? Any ideas on how they got into ccsymbols, and how I
can prevent that the next time I install perl?



Flags​:
  category=install
  severity=low


Site configuration information for perl v5.6.1​:

Configured by prj at Fri May 10 13​:37​:13 EDT 2002.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration​:
  Platform​:
  osname=linux, osvers=2.4.4, archname=i686-linux-64int-ld
  uname='linux multivac.cwru.edu 2.4.4 #1 smp fri may 11 16​:28​:16 edt 2001 i686 unknown '
  config_args='-Dprefix=/package/host/localhost/perl-5.6.1-2 -Uinstallusrbinperl -Dlocincpth=/package/host/localhost/perl-5.6.1-2/conf/gdbm/include -Dloclibpth=/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib -Aprepend​:cppflags= -Accflags= -O2 -Aprepend​:ldflags= -O2 -Wl,-R,/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib -Dusemorebits -de'
  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=define use64bitall=undef uselongdouble=define
  Compiler​:
  cc='cc', ccflags ='-O2 -fno-strict-aliasing -I/package/host/localhost/perl-5.6.1-2/conf/gdbm/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
  optimize='-O2',
  cppflags='-O2 -fno-strict-aliasing -I/package/host/localhost/perl-5.6.1-2/conf/gdbm/include'
  ccversion='', gccversion='3.0.4', gccosandvers=''
  intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
  ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8
  alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries​:
  ld='cc', ldflags =' -O2 -Wl,-R,/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib -L/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib'
  libpth=/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib /lib /usr/lib /usr/local/lib
  libs=-lnsl -lgdbm -ldl -lm -lc -lcrypt -lutil
  perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
  libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
  cccdlflags='-fpic', lddlflags='-shared -L/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib'

Locally applied patches​:
 


@​INC for perl v5.6.1​:
  /package/host/localhost/perl-5.6.1-2/lib/5.6.1/i686-linux-64int-ld
  /package/host/localhost/perl-5.6.1-2/lib/5.6.1
  /package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1/i686-linux-64int-ld
  /package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1
  /package/host/localhost/perl-5.6.1-2/lib/site_perl
  .


Environment for perl v5.6.1​:
  HOME=/home/prj
  LANG (unset)
  LANGUAGE (unset)
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=/home/prj/command​:/command
  PERL_BADLANG (unset)
  SHELL=/command/bashrc

@p5pRT
Copy link
Author

p5pRT commented Sep 7, 2013

From @jkeenan

On Wed Jun 05 07​:01​:18 2002, prj@​po.cwru.edu wrote​:

This is a bug report for perl from prj@​multivac.cwru.edu,
generated with the help of perlbug 1.33 running under perl v5.6.1.

-----------------------------------------------------------------
I installed perl 5.6.1, and my Config.pm has​:
ccsymbols='-Acpu=i386 -Amachine=i386 -Asystem=posix [...snip...]'

This causes h2ph to emit these in _h2ph_pre.ph​:
unless (defined &-Acpu) { sub -Acpu() { &i386 } }

unless (defined &-Amachine) { sub -Amachine() { &i386 } }

unless (defined &-Asystem) { sub -Asystem() { &posix } }

But perl chokes on these​:
Warning​: Use of "defined" without parens is ambiguous at
/package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1/i686-
linux-64int-ld/_h2ph_pre.ph line 2.
Bareword found where operator expected at
/package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1/i686-
linux-64int-ld/_h2ph_pre.ph line 2, near "&-Acpu"
(Missing operator before Acpu?)
syntax error at /package/host/localhost/perl-5.6.1-
2/lib/site_perl/5.6.1/i686-linux-64int-ld/_h2ph_pre.ph line 2, near
"&-Acpu"

Is it right for $Config{ccsymbols} to include -A*? Is it right for
h2ph to include them? Will parentheses fix this, or should they be
removed entirely? Any ideas on how they got into ccsymbols, and how I
can prevent that the next time I install perl?
-----------------------------------------------------------------
---
Flags​:
category=install
severity=low
---
Site configuration information for perl v5.6.1​:

Configured by prj at Fri May 10 13​:37​:13 EDT 2002.

Summary of my perl5 (revision 5.0 version 6 subversion 1)
configuration​:
Platform​:
osname=linux, osvers=2.4.4, archname=i686-linux-64int-ld
uname='linux multivac.cwru.edu 2.4.4 #1 smp fri may 11 16​:28​:16
edt 2001 i686 unknown '
config_args='-Dprefix=/package/host/localhost/perl-5.6.1-2
-Uinstallusrbinperl
-Dlocincpth=/package/host/localhost/perl-5.6.1-2/conf/gdbm/include
-Dloclibpth=/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib
-Aprepend​:cppflags= -Accflags= -O2 -Aprepend​:ldflags= -O2
-Wl,-R,/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib
-Dusemorebits -de'
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=define use64bitall=undef uselongdouble=define
Compiler​:
cc='cc', ccflags ='-O2 -fno-strict-aliasing
-I/package/host/localhost/perl-5.6.1-2/conf/gdbm/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-O2 -fno-strict-aliasing
-I/package/host/localhost/perl-5.6.1-2/conf/gdbm/include'
ccversion='', gccversion='3.0.4', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=12
ivtype='long long', ivsize=8, nvtype='long double', nvsize=12,
Off_t='off_t', lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries​:
ld='cc', ldflags =' -O2
-Wl,-R,/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib
-L/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib'
libpth=/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib /lib
/usr/lib /usr/local/lib
libs=-lnsl -lgdbm -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.4.so, so=so, useshrplib=false,
libperl=libperl.a
Dynamic Linking​:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-
rdynamic'
cccdlflags='-fpic', lddlflags='-shared
-L/package/host/localhost/perl-5.6.1-2/conf/gdbm/lib'

Locally applied patches​:

---
@​INC for perl v5.6.1​:
/package/host/localhost/perl-5.6.1-2/lib/5.6.1/i686-linux-64int-ld
/package/host/localhost/perl-5.6.1-2/lib/5.6.1
/package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1/i686-
linux-64int-ld
/package/host/localhost/perl-5.6.1-2/lib/site_perl/5.6.1
/package/host/localhost/perl-5.6.1-2/lib/site_perl
.

---
Environment for perl v5.6.1​:
HOME=/home/prj
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/prj/command​:/command
PERL_BADLANG (unset)
SHELL=/command/bashrc

This ticket was filed more than 11 years ago, but, AFAICT, it has never
received a reply.

Is there anyone familiar with '-A' in ccsymbols and with h2ph who could
take a crack at a response?

Thank you very much.
Jim Keenan

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

2 participants