Subject: | compilation fails on linux |
$ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Processing hints file hints/linux.pl
Checking if your kit is complete...
Looks good
Writing Makefile for Proc::ProcessTable::Process
Writing Makefile for Proc::ProcessTable
$ make -j2
/usr/bin/perl5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/ExtUtils/xsubpp
-typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap ProcessTable.xs >
ProcessTable.xsc && mv ProcessTable.xsc ProcessTable.c
cp Killall.pm blib/lib/Proc/Killall.pm
cp ProcessTable.pm blib/lib/Proc/ProcessTable.pm
cp example.pl blib/lib/Proc/example.pl
cp Killfam.pm blib/lib/Proc/Killfam.pm
x86_64-mandriva-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -DVERSION=\"0.45\"
-DXS_VERSION=\"0.45\" -fPIC
"-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE" OS.c
OS.c: In function ‘eval_link’:
OS.c:400: error: format not a string literal and no format arguments
OS.c: In function ‘OS_get_table’:
OS.c:621: error: format not a string literal and no format arguments
OS.c:691: attention : passing argument 2 of ‘bless_into_proc’ from
incompatible pointer type
os/Linux.h:4: note: expected ‘char **’ but argument is of type ‘const
char * const*’
make: *** [OS.o] Error 1
the first 2 problems are due to the -Werror=format-security gcc flag,
and should be easily fixable but i don't know about the last one...