Russell Ruby
2006-Jun-29 23:22 UTC
openssh-4.3p2/openssh-SNAP-20060626 build failure for SunOS4.1.4
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
Possibly Parallel Threads
- Problem building openssh-4.3p2 under cygwin and windows XP
- Where is the tdbsam password database file?
- 2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
- Incorrect return types for snprintf() and vsnprintf()
- SunOS 4.1.4 "configure: WARNING" for sys/audit.h and sys/dir.h