Front page | perl.perl5.porters |
Postings from May 2002
[ID 20020508.012] with gcc-3.1, Config.pm's ccsymbols='-Acpu=i386...' is bad (esp for _h2ph_pre.ph)
Thread Next
From:
Pixel
Date:
May 8, 2002 09:20
Subject:
[ID 20020508.012] with gcc-3.1, Config.pm's ccsymbols='-Acpu=i386...' is bad (esp for _h2ph_pre.ph)
Message ID:
ly3cx2wr14.fsf@leia.mandrakesoft.com
This is a bug report for perl from pixel@mandrakesoft.com,
generated with the help of perlbug 1.33 running under perl v5.6.1.
-----------------------------------------------------------------
[Please enter your report here]
gcc's syntax for -Acpu(i386) changed to -Acpu=i386 in gcc-3.1
this causes Config.pm's ccsymbols to be:
ccsymbols='-Acpu=i386 -Amachine=i386 -Asystem=posix __GNUC_PATCHLEVEL__=0 __gnu_linux__=1 __NO_INLINE__=1 __STDC_HOSTED__=1 __tune_i586__=1 __tune_pentium__=1'
the following patch fix the pb.
--- perl-5.6.1/Configure.pix 2001-03-19 04:03:33.000000000 +0100
+++ perl-5.6.1/Configure 2002-05-08 17:59:16.000000000 +0200
@@ -14940,7 +14940,7 @@
do
case "\$i" in
-D*) echo "\$i" | $sed 's/^-D//';;
- -A*) $test "$gccversion" && echo "\$i" | $sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
+ -A*) $test "$gccversion" && echo "\$i" | $sed 's/^-A//' | $sed 's/\(.*\)(\(.*\))/\1=\2/';;
esac
done
$rm -f try.c
more info: gcc(1) says:
-A predicate=answer
Make an assertion with the predicate predicate and
answer answer. This form is preferred to the older
form -A predicate(answer), which is still supported,
because it does not use shell special characters.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.6.1:
Configured by gb at Mon May 6 12:04:15 EDT 2002.
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.17-18mdkenterprise, archname=i386-linux
uname='linux kernel.mandrakesoft.com 2.4.17-18mdkenterprise #1 smp thu feb 14 20:59:03 cet 2002 i686 unknown '
config_args='-des -Darchname=i386-linux -Dd_dosuid -Ud_csh -Duseshrplib -Doptimize=-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -Dprefix=/usr -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Uuselargefiles -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/lib/perl5/man/man3'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing',
optimize='-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce',
cppflags='-fno-strict-aliasing'
ccversion='', gccversion='3.1 (Mandrake Linux 8.3 3.1-0.9mdk)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.6.1/i386-linux/CORE'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.1:
/home/pixel/etc/perl/i386-linux
/home/pixel/etc/perl
/home/pixel/etc/perl/i386-linux
/home/pixel/etc/perl/site_perl/i386-linux
/home/pixel/etc/perl/site_perl
/usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
.
---
Environment for perl v5.6.1:
HOME=/home/pixel
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH=/home/pixel/lib/i386
LOGDIR (unset)
PATH=/home/pixel/bin:/home/pixel/bin/oneliner:/home/pixel/bin/perl:/home/pixel/bin/ruby:/home/pixel/bin/python:/home/pixel/bin/tcl:/home/pixel/bin/i386:/usr/freeware/bin:/usr/etc:/usr/local/bin:/usr/X11R6/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
PERL5LIB=/home/pixel/etc/perl:/home/pixel/etc/perl/i386-linux:/home/pixel/etc/perl/site_perl
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[ID 20020508.012] with gcc-3.1, Config.pm's ccsymbols='-Acpu=i386...' is bad (esp for _h2ph_pre.ph)
by Pixel