Bug#775009: perl-base: perl is configured to use the 'cc' compiler, it should use 'gcc'

Mikulas Patocka mikulas at artax.karlin.mff.cuni.cz
Fri Jan 9 22:13:37 UTC 2015


Package: perl-base
Version: 5.10.1-17squeeze6
Severity: normal

When compiling modules, perl uses the 'cc' compiler instead of 'gcc'.

If the user installs some other compiler that overrides the 'cc' command (for
example the Sun C compiler), building perl modules results in many warnings or
errors because perl calls 'cc' with gcc-like command line flags (that the cc
compiler doesn't understand) and the C code to be compiled contains gcc-like
attributes (that the cc compiler also doesn't understand). Perl-generated
makefiles should call gcc instead of cc.

Steps to reproduce:
install spamassassin
install some other compiler as cc (or, you can do ln -s /bin/false
/usr/local/bin/cc)
run sa-compile
- it calls cc and fails

cc='cc' is stored in /usr/lib/perl/5.10.1/Config_heavy.pl, but if I change it
to cc='gcc' in that file, it doesn't fix the bug.
It is unclear how the user can select a compiler for sa-compile.



-- System Information:
Debian Release: 6.0.10
  APT prefers squeeze-lts
  APT policy: (500, 'squeeze-lts'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 3.10.55 (PREEMPT)
Locale: LANG=cs_CZ.UTF8, LC_CTYPE=cs_CZ.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages perl-base depends on:
ii  dpkg                     1.15.11         Debian package management system
ii  libc6                    2.11.3-4+deb6u3 Embedded GNU C Library: Shared lib

perl-base recommends no packages.

Versions of packages perl-base suggests:
ii  perl                   5.10.1-17squeeze6 Larry Wall's Practical Extraction 

-- no debconf information




More information about the Perl-maintainers mailing list