openssh-4.3p2/openssh-SNAP-20060626 build failure for SunOS4.1.4

Russell Ruby russ at sludge.net
Fri Jun 30 09:22:20 EST 2006


Openssh:        openssh-4.3p2 or openssh-SNAP-20060626
System:         SunOS 4.1.4
Compiler:       gcc 2.8.1

BUILD FAILURE and fix:

../../openbsd-compat/bsd-snprintf.c:792: conflicting types for `snprintf'
../../openbsd-compat/../openbsd-compat/openbsd-compat.h:156: previous declaration of `snprintf'
gmake[1]: *** [bsd-snprintf.o] Error 1
gmake[1]: Leaving directory `/mfg/sd2f/src/security/openssh/openssh-4.3p2/objdir/openbsd-compat'
gmake: *** [openbsd-compat/libopenbsd-compat.a] Error 2


Both versions have the same parameter type conflict between the
declaration of snprintf found in "./openbsd-compat/openbsd-compat.h
and the definition of snprintf found in "./openbsd-compat/bsd-snprintf.c".
(conflict: for SunOS SNPRINTF_CONST has a value which is not "const")

Fix by updating the declaration found in openbsd-compat.h to be
consistent with the previously altered bsd-snprintf.c:

*** openbsd-compat/openbsd-compat.h.orig     Fri Dec 30 21:33:37 2005
--- openbsd-compat/openbsd-compat.h     Wed Jun 28 13:45:49 2006
***************
*** 153,159 ****
  /* #include <sys/types.h> XXX needed? For size_t */
  
  #ifndef HAVE_SNPRINTF
! int snprintf(char *, size_t, const char *, ...);
  #endif 
  
  #ifndef HAVE_STRTOLL
--- 153,159 ----
  /* #include <sys/types.h> XXX needed? For size_t */
  
  #ifndef HAVE_SNPRINTF
! int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
  #endif 
  
  #ifndef HAVE_STRTOLL




More information about the openssh-unix-dev mailing list