[Botan-devel] Help with QNX/Momentics build

Pat McHenry pmchenry at cspeed.com
Tue Feb 27 18:01:19 EST 2007


Regarding exit, it's declared in stdlib.h - which apparently just didn't get
pulled in anywhere for unix_cmd.cpp under the _QNX_SOURCE setup.  I just
included stdlib.h directly (and made the other two fixes you mentioned) and
the build is now error-free.

Thanks for your help.

-----Original Message-----
From: botan-devel-bounces at randombit.net
[mailto:botan-devel-bounces at randombit.net] On Behalf Of Jack Lloyd
Sent: Tuesday, February 27, 2007 5:23 PM
To: Botan development list
Subject: Re: [Botan-devel] Help with QNX/Momentics build

On Tue, Feb 27, 2007 at 05:02:52PM -0500, Pat McHenry wrote:

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

I think the _QNX_SOURCE define was already supposed to be there for
you, it may have gotten lost when I partially rewrote the configure
script. Fortunately it's much easier to add it back now that that code
isn't a (total) mess.

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

Bug. I just looked, it's there, it's not supposed to be (I must have
been trying to track something down, certainly something that drastic
is not a good way of handling a simple error). You should remove the
call entirely.

> 
> unix_cmd.o: 'exit' undeclared

Where is exit() declared on QNX? It's in (or at least made available
by) unistd.h on most platforms/standards I'm aware
of/encountered. That is a strange one.

> x509_ca.o: 'back_inserter' undeclared

Bug again, just forgot to include <iterator> there (GCC is too
forgiving (or alternately GCC drags too much stuff in when you include
standard headers)).

> 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?

I'm afraid I don't have much. I occasionally do builds on QNX running
in VMware, but that really is the extent of it for me.

-Jack
_______________________________________________
botan-devel mailing list
botan-devel at randombit.net
http://www.randombit.net/mailman/listinfo/botan-devel



More information about the botan-devel mailing list