Subject: | cc1: Invalid option `-fmessage-length=0' |
Version 0.03 of Tie::HASH::Indexed does not build on SuSE Linux 9.0. The relevant message is "cc1: Invalid option `-fmessage-length=0'". Removing this option manual in Makefile, enable building (with warnings) and all tests are okay.
My installed version of Perl is 5.8.1, the compiler is gcc version 2.95.3 20010315 (SuSE). Both are installed from original SuSE RPM.
See my log for details:
flint:~/.cpan/build/Tie-Hash-Indexed-0.03 # make
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -pipe -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fPIC "-I/usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE" -DNDEBUG Indexed.c
cc1: Invalid option `-fmessage-length=0'
In file included from /usr/include/asm/sigcontext.h:4,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:326,
from /usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE/unixish.h:107,
from /usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE/perl.h:1969,
from Indexed.xs:30:
/usr/include/linux/compiler.h:71: warning: `__attribute_used__' redefined
/usr/include/sys/cdefs.h:195: warning: this is the location of the previous definition
Indexed.c: In function `XS_Tie__Hash__Indexed_TIEHASH':
Indexed.xs:228: warning: unused variable `method'
Indexed.c: In function `XS_Tie__Hash__Indexed_NEXTKEY':
Indexed.c:429: warning: unused variable `last'
Indexed.c: In function `XS_Tie__Hash__Indexed_STORABLE_freeze':
Indexed.c:594: warning: unused variable `cloning'
Indexed.c: In function `XS_Tie__Hash__Indexed_STORABLE_thaw':
Indexed.c:644: warning: unused variable `cloning'
make: *** [Indexed.o] Fehler 1
flint:~/.cpan/build/Tie-Hash-Indexed-0.03 # vi Makefile
flint:~/.cpan/build/Tie-Hash-Indexed-0.03 # make
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -Wall -pipe -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fPIC "-I/usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE" -DNDEBUG Indexed.c
In file included from /usr/include/asm/sigcontext.h:4,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:326,
from /usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE/unixish.h:107,
from /usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE/perl.h:1969,
from Indexed.xs:30:
/usr/include/linux/compiler.h:71: warning: `__attribute_used__' redefined
/usr/include/sys/cdefs.h:195: warning: this is the location of the previous definition
Indexed.c: In function `XS_Tie__Hash__Indexed_TIEHASH':
Indexed.xs:228: warning: unused variable `method'
Indexed.c: In function `XS_Tie__Hash__Indexed_NEXTKEY':
Indexed.c:429: warning: unused variable `last'
Indexed.c: In function `XS_Tie__Hash__Indexed_STORABLE_freeze':
Indexed.c:594: warning: unused variable `cloning'
Indexed.c: In function `XS_Tie__Hash__Indexed_STORABLE_thaw':
Indexed.c:644: warning: unused variable `cloning'
Running Mkbootstrap for Tie::Hash::Indexed ()
chmod 644 Indexed.bs
rm -f blib/arch/auto/Tie/Hash/Indexed/Indexed.so
LD_RUN_PATH="" cc -shared Indexed.o -o blib/arch/auto/Tie/Hash/Indexed/Indexed.so
chmod 755 blib/arch/auto/Tie/Hash/Indexed/Indexed.so
cp Indexed.bs blib/arch/auto/Tie/Hash/Indexed/Indexed.bs
chmod 644 blib/arch/auto/Tie/Hash/Indexed/Indexed.bs
Manifying blib/man3/Tie::Hash::Indexed.3pm
flint:~/.cpan/build/Tie-Hash-Indexed-0.03 # make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/101_basic.......ok
t/102_storable....ok
All tests successful.
Files=2, Tests=51, 0 wallclock secs ( 0.34 cusr + 0.03 csys = 0.37 CPU)
flint:~/.cpan/build/Tie-Hash-Indexed-0.03 #