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. OS ver: AIX 5.2 ML4 Compiler: Visual Age C for AIX 5.0.2.0 Openssh ver: 3.8.1p1 and 3.9p1>From /usr/include/syms.h:#define T_NULL 0>From /usr/include/arpa/onameser_compat.h:#define T_NULL 10 /* null resource record */
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.
Possibly Parallel Threads
- Call for testing: OpenSSH 6.9
- Call for testing: OpenSSH 6.9
- [Bug 2370] New: make fails with "rmd160.c", line 35.10: 1506-296 (S) #include file <endian.h> not found. when using --without-openssl on AIX
- OpenSSH 4.7: call for testing.
- Call for testing: OpenSSH 7.9