Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: eno on December 05, 2014, 09:13:02 PM
-
So Im finally building extensions for piCore 6 :-) but running into this error when running configure:
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
I installed compile-essentials but is there anything I need to build extensions?
-
Hi eno
Did you check config.log to see what it's complaining about?
-
So it couldn't find an include file (linux/limits.h) which I solved by installing linux-3.16.y_api_headers.
But now the build fails:
$ sudo make install
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT btcontent.o -MD -MP -MF ".deps/btcontent.Tpo" -c -o btcontent.o btcontent.cpp; \
then mv -f ".deps/btcontent.Tpo" ".deps/btcontent.Po"; else rm -f ".deps/btcontent.Tpo"; exit 1; fi
btcontent.cpp: In function 'void Sha1(char*, size_t, unsigned char*)':
btcontent.cpp:70:3: error: 'SHA_CTX' was not declared in this scope
SHA_CTX context;
^
btcontent.cpp:71:14: error: 'context' was not declared in this scope
SHA1_Init(&context);
^
btcontent.cpp:71:21: error: 'SHA1_Init' was not declared in this scope
SHA1_Init(&context);
^
btcontent.cpp:72:47: error: 'SHA1_Update' was not declared in this scope
SHA1_Update(&context,(unsigned char*)ptr,len);
^
btcontent.cpp:73:25: error: 'SHA1_Final' was not declared in this scope
SHA1_Final(dm,&context);
^
Makefile:301: recipe for target 'btcontent.o' failed
make: *** [btcontent.o] Error 1
$
I have sent a message to the developers for help.
-
Never mind: I figured out that simply configuring --with-ssl bypasses the SHA1 code that was producing the error.
Another build completed - another shiny new extension for piCore 6! :-)