It's a weird scenario that I had the exact same epiphany, at about the same time. I found that all cryptopp/* files have such #defs. Primarily done in cryptopp/config.h, there's a #if defined(__unix__) then #define OS_RNG_AVAILABLE, and so on.
So, you may need to contact GCC and ask them to add __genode__ for the defined preprocessor. But, with your help, I've discovered a way to proceed. Thank you very much, I'll keep you updated.
Cheers, Aditya
On Thu, May 7, 2015 at 12:06 AM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hello Aditya,
from what I discovered I fear you have to do some additional porting work as the building produces several errors. Please try "make --keep-going ..." to see them all and get about 2000 lines of warnings and errors (mostly from cryptopp). The most suspicious messages from ndn-cxx are
/plain/krishna/src/genode/genode.git/contrib/ndn-cxx-d868c173a4ad62c998b4be62fe3b9dca91e42160/src/lib/ndn-cxx/src/security/sec-tpm-file.cpp: In member function ‘virtual void ndn::SecTpmFile::generateKeyPairInTpm(const ndn::Name&, const ndn::KeyParams&)’: /plain/krishna/src/genode/genode.git/contrib/ndn-cxx-d868c173a4ad62c998b4be62fe3b9dca91e42160/src/lib/ndn-cxx/src/security/sec-tpm-file.cpp:131:4: error: ‘AutoSeededRandomPool’ was not declared in this scope
In file included from /plain/krishna/src/genode/genode.git/contrib/ndn-cxx-d868c173a4ad62c998b4be62fe3b9dca91e42160/src/lib/ndn-cxx/src/security/sec-tpm-osx.cpp:24:0: /plain/krishna/src/genode/genode.git/contrib/ndn-cxx-d868c173a4ad62c998b4be62fe3b9dca91e42160/src/lib/ndn-cxx/src/security/sec-tpm-osx.hpp:30:2: error: #error "This files should not be compiled ..." /plain/krishna/src/genode/genode.git/contrib/ndn-cxx-d868c173a4ad62c998b4be62fe3b9dca91e42160/src/lib/ndn-cxx/src/security/sec-tpm-osx.cpp:38:43: fatal error: CoreFoundation/CoreFoundation.h: No such file or directory
For the first issue please have a look at the following lines in cryptopp/osrng.h
8 #ifdef OS_RNG_AVAILABLE ... 155 #endif
It seems the define is not set in your case and so the contents of the header are not includes in the build. To find this kind of problems I suggest to modify the compilation of the broken source file to just do the preprocessor step (compiler flag -E) and analyze the result. In your case I was looking for AutoSeededRandomPool, which was not there.
Good luck
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main