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

This is a discussion on openssh-4.3p2/openssh-SNAP-20060626 build failure for SunOS4.1.4 within the OpenSSH Development forums, part of the Networking and Network Related category; Openssh: openssh-4.3p2 or openssh-SNAP-20060626 System: SunOS 4.1.4 Compiler: gcc 2.8.1 BUILD FAILURE ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-30-2006
Russell Ruby
 
Posts: n/a
Default 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

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:36 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0