[Bug 397] Openssh build failure AIX 4.3.3

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Sep 18 22:44:10 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=397





------- Additional Comments From dtucker at zip.com.au  2002-09-18 22:44 -------
I think I've figured out error 3. Short answer: comment out "#define 
HAVE_STRSEP 1" from config.h and re-run "make".

Long answer: the error that stops the build is:

"cipher.c", line 154.17: 1506-068 (S) Operation between types "char*" and "int" 
is not allowed.

This is caused by "p = strsep(&cp, CIPHER_SEP)" where p is a char *. Strsep 
should return a char *, but in /usr/include/string.h, the prototype is inside a 
"#ifdef _LINUX_SOURCE_COMPAT".

Configure finds strsep (in libc, probably) and defines HAVE_STRSEP, but since 
the prototype is #ifdef'ed out, it defaults to returning int, hence the type 
conflict.

Not sure about a long-term fix.  Would it be bad form to add the following to 
openbsd-compat/strsep.h?

#ifdef _AIX
# undef HAVE_STRSEP
#endif



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list