I just upgraded to TC 6.0 and while I am trying to install some Perl modules I got this error when installing XML::Parser:
cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
make[1]: Entering directory '/root/.cpan/build/XML-Parser-2.44-hHh8w9/Expat'
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
Running Mkbootstrap for XML::Parser::Expat ()
chmod 644 "Expat.bs"
"/tmp/tcloop/perl5/usr/local/bin/perl" "/usr/local/lib/perl5/5.20.0/ExtUtils/xsubpp" -noprototypes -typemap "/usr/local/lib/perl5/5.20.0/ExtUtils/typemap" -typemap "typemap" Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.44\" -DXS_VERSION=\"2.44\" -fPIC "-I/usr/local/lib/perl5/5.20.0/i486-linux/CORE" Expat.c
In file included from Expat.xs:12:0:
/usr/local/include/expat.h:17:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
So it says it cannot find stdlib.h.
I have this modules installed and loaded:
tc@fhem:/mnt/sda1/tce/optional$ ls -la gcc*
-rw-r--r-- 1 tc staff 23740416 Jan 24 14:38 gcc.tcz
-rw-r--r-- 1 tc staff 65 Jan 24 14:38 gcc.tcz.dep
-rw-r--r-- 1 tc staff 42 Jan 24 14:38 gcc.tcz.md5.txt
-rw-r--r-- 1 tc staff 606208 Jan 24 14:38 gcc_base-dev.tcz
-rw-r--r-- 1 tc staff 51 Jan 24 14:38 gcc_base-dev.tcz.md5.txt
-rw-r--r-- 1 tc staff 4096 Jan 24 14:38 gcc_libs-dev.tcz
-rw-r--r-- 1 tc staff 13 Jan 24 14:38 gcc_libs-dev.tcz.dep
-rw-r--r-- 1 tc staff 51 Jan 24 14:38 gcc_libs-dev.tcz.md5.txt
-rw-r--r-- 1 tc staff 602112 Jan 24 14:38 gcc_libs.tcz
-rw-r--r-- 1 tc staff 47 Jan 24 14:38 gcc_libs.tcz.md5.txt
Also I have the header in some C++ include dir:
tc@fhem:/usr/local$ find -name stdlib.h
./include/c++/4.9.1/tr1/stdlib.h
I simplified the problem by compiling a simple program:
#include <stdlib.h>
int main(int argc, char* argv[]) {
return 1;
}
But it also fails:
tc@fhem:~$ gcc test.cpp
test.cpp:1:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
Well, any hints please?