WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Configure error  (Read 2006 times)

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Configure error
« on: December 05, 2014, 09:13:02 PM »
So Im finally building extensions for piCore 6 :-) but running into this error when running configure:

Code: [Select]
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?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Configure error
« Reply #1 on: December 05, 2014, 09:41:22 PM »
Hi eno
Did you check   config.log  to see what it's complaining about?

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: Configure error
« Reply #2 on: December 06, 2014, 10:33:59 AM »
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:

Code: [Select]
$ 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.

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: Configure error
« Reply #3 on: December 06, 2014, 10:08:57 PM »
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! :-)