[Botan-devel] Help with QNX/Momentics build

Pat McHenry pmchenry at cspeed.com
Tue Feb 27 17:02:52 EST 2007


I'm trying to build Botan for the QNX Neutrino (x86) environment using their
Momentics C/C++ build tools.  Momentics appears to be just a GUI front-end
to a QNX-flavored version of gcc, so I configured Botan with gcc-qnx-ia32
and then used the Makefile as a guide to configure a Momentics project.

 

I ran into the issue with 64-bit integer constants and added the
-fpermissive option to resolve that.  I also found a _QNX_SOURCE #define
referenced in sys/platform.h that seemed appropriate, and that resolved a
lot of compilation issues after I turned it on.  Here are my current
compilation options as seen by the compiler:

 

-O2 -D_REENTRANT -D_QNX_SOURCE -ansi -Wno-long-long -fexceptions -march=i586
-momit-leaf-frame-pointer -fpermissive -finline-functions -fPIC

 

With these options I almost get past compilation.  I'm left with three
errors for undeclared references:

 

libstate.o: 'abort' undeclared

unix_cmd.o: 'exit' undeclared

x509_ca.o: 'back_inserter' undeclared

 

These seem odd to me - especially abort and exit - and it's not immediately
obvious why they are not declared in these particular instances.  I could
just add the relevant #includes (see, e.g., the 2/16 post by Felix
Gartsman), but I'm concerned that I might be missing some key #define that I
need.  Does anyone have any suggestions on this immediate problem or, better
yet, some general experience using Botan under QNX/Momentics that you'd be
willing to share?

 

TIA!

 

Patrick McHenry

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.randombit.net/pipermail/botan-devel/attachments/20070227/5cc909f4/attachment.htm


More information about the botan-devel mailing list