AIX compilation issues - openssh V 3.8.1p1 and 3.9p1
Darren Tucker
dtucker at zip.com.au
Thu Sep 9 10:38:53 EST 2004
Anthony wrote:
> I'm getting the following error when I compile openssh with IBM's xlc compiler.
>
> /usr/vac/bin/xlc -g -I. -I.. -I. -I./.. -I/opt/freeware/include
> -I/usr/local/include -DHAVE_CONFIG_H -c bsd-arc4random.c
> "/usr/include/syms.h", line 288.9: 1506-213 (S) Macro name T_NULL
> cannot be redefined.
> "/usr/include/syms.h", line 288.9: 1506-358 (I) "T_NULL" is defined on
> line 150 of /usr/include/arpa/onameser_compat.h.
> make[1]: *** [bsd-arc4random.o] Error 1
> make[1]: Leaving directory `/build/openssh/aix52/openssh-3.8.1p1/openbsd-compat'
> make: *** [openbsd-compat/libopenbsd-compat.a] Error 2
>
> I realize that both onameser_compat.h and syms.h are part of the
> system include files, but I was wondering if anyone had any ideas on
> how I can get past this. I can comment out the T_NULL in
> onameser_compat.h and the compile works, but I don't like doing that.
Try adding this to the openssh code just before the #include that pulls
in the second conflicting define:
#ifdef T_NULL
# undef T_NULL
#endif
If it works, let us know...
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list