develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #9478] $Config{ccsymbols} contains -Acpu=i386

Thread Previous
From:
James E Keenan via RT
Date:
September 7, 2013 02:44
Subject:
[perl #9478] $Config{ccsymbols} contains -Acpu=i386
Message ID:
rt-3.6.HEAD-1873-1378521862-216.9478-15-0@perl.org
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

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=9478

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About