problems with compiling on SPARC solaris 2.7
Brian Harvell
harvell at aol.net
Sat Jan 8 01:38:25 EST 2000
On Fri, 7 Jan 2000, Max Shaposhnikov wrote:
> ssh won't compile on this platform
> log:
> gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\"
> -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H -c atomicio.c -o atomicio.o
> In file included from config.h:294,
> from bsd-misc.h:39,
> from includes.h:91,
> from atomicio.c:26:
> defines.h:74: redefinition of `u_int16_t'
> defines.h:74: `u_int16_t' previously declared here
> defines.h:75: redefinition of `u_int32_t'
> defines.h:75: `u_int32_t' previously declared here
> defines.h:76: redefinition of `u_int64_t'
> defines.h:76: `u_int64_t' previously declared here
apply the following patch to your defines.h
*** defines.h Tue Jan 4 14:23:15 2000
--- defines.h.orig Tue Jan 4 14:22:50 2000
***************
*** 71,77 ****
/* If sys/types.h does not supply u_intXX_t, supply them ourselves */
#ifndef HAVE_U_INTXX_T
# ifdef HAVE_UINTXX_T
- #define HAVE_U_INTXX_T
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
typedef uint64_t u_int64_t;
--- 71,76 ----
Since it's included in multiple files it keeps getting redefined.
(there is probably a more elegant way of doing this but I didn't look for it)
Brian
Brian Harvell harvell at aol.net http://ToolBoy.com/
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc
More information about the openssh-unix-dev
mailing list