I am installing OpenSSH 2.1.1p4 on a redhat 6.2 box. Don't want to use
RPMs, so am using source.
I have successfully installed OpenSSL, and Apache, both from source.
Now when I compile OpenSSH, make fails (see below for configure followed by
make results.) Any ideas? ;-)
Major TIA,
-Anders Knudsen.
# ./configure --sysconfdir=/etc/ssh --with-pid-dir=/var/run \
> --with-ipv4-default --with-ssl-dir=/usr/local/ssl \
> --prefix=/usr/local/ssh
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking host system type... i686-pc-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking for ar... ar
checking for perl... /usr/bin/perl
checking for ent... no
checking for inline... inline
checking for deflate in -lz... yes
checking for login in -lutil... yes
checking for yp_match in -lnsl... yes
checking for main in -lsocket... no
checking for bstring.h... no
checking for endian.h... yes
checking for floatingpoint.h... no
checking for lastlog.h... yes
checking for limits.h... no
checking for login.h... no
checking for maillock.h... no
checking for netdb.h... no
checking for netgroup.h... no
checking for netinet/in_systm.h... yes
checking for paths.h... yes
checking for poll.h... yes
checking for pty.h... no
checking for shadow.h... yes
checking for security/pam_appl.h... yes
checking for sys/bitypes.h... yes
checking for sys/bsdtty.h... no
checking for sys/cdefs.h... yes
checking for sys/poll.h... yes
checking for sys/select.h... yes
checking for sys/stat.h... yes
checking for sys/stropts.h... yes
checking for sys/sysmacros.h... yes
checking for sys/time.h... yes
checking for sys/ttcompat.h... no
checking for stddef.h... yes
checking for time.h... yes
checking for usersec.h... no
checking for util.h... no
checking for utmp.h... yes
checking for utmpx.h... yes
checking for arc4random... no
checking for atexit... yes
checking for b64_ntop... no
checking for bcopy... yes
checking for bindresvport_af... no
checking for clock... yes
checking for freeaddrinfo... yes
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for getrusage... yes
checking for inet_aton... yes
checking for innetgr... yes
checking for md5_crypt... no
checking for memmove... yes
checking for mkdtemp... no
checking for on_exit... yes
checking for openpty... yes
checking for rresvport_af... no
checking for setenv... yes
checking for seteuid... yes
checking for setlogin... no
checking for setproctitle... no
checking for setreuid... yes
checking for sigaction... yes
checking for sigvec... yes
checking for snprintf... yes
checking for strerror... yes
checking for strlcat... no
checking for strlcpy... no
checking for strsep... yes
checking for vsnprintf... yes
checking for vhangup... yes
checking for _getpty... no
checking for __b64_ntop... no
checking for gettimeofday... yes
checking for time... yes
checking for login... yes
checking for logout... yes
checking for updwtmp... yes
checking for logwtmp... yes
checking for entutent... no
checking for getutent... yes
checking for getutid... yes
checking for getutline... yes
checking for pututline... yes
checking for setutent... yes
checking for utmpname... yes
checking for entutxent... no
checking for getutxent... yes
checking for getutxid... yes
checking for getutxline... yes
checking for pututxline... yes
checking for setutxent... yes
checking for utmpxname... yes
checking for getuserattr... no
checking for getuserattr in -ls... no
checking for login... (cached) yes
checking for daemon... yes
checking for getpagesize... yes
checking whether snprintf correctly terminates long strings... yes
checking for dlopen in -ldl... yes
checking for pam_getenvlist... yes
checking whether pam_strerror takes only one argument... no
checking for OpenSSL directory... /usr/local/ssl
checking for RSA support... yes
checking size of char... 1
checking size of short int... 2
checking size of int... 4
checking size of long int... 4
checking size of long long int... 8
checking for intXX_t types... yes
checking for u_intXX_t types... yes
checking for socklen_t... no
checking for size_t... yes
checking for ssize_t... yes
checking for sa_family_t... no
checking for pid_t... yes
checking for mode_t... yes
checking for struct sockaddr_storage... no
checking for struct sockaddr_in6... no
checking for struct in6_addr... no
checking for struct addrinfo... no
checking for ut_host field in utmp.h... yes
checking for ut_host field in utmpx.h... yes
checking for syslen field in utmpx.h... no
checking for ut_pid field in utmp.h... yes
checking for ut_type field in utmp.h... yes
checking for ut_type field in utmpx.h... yes
checking for ut_tv field in utmp.h... yes
checking for ut_id field in utmp.h... yes
checking for ut_id field in utmpx.h... yes
checking for ut_addr field in utmp.h... yes
checking for ut_addr field in utmpx.h... yes
checking for ut_addr_v6 field in utmp.h... yes
checking for ut_addr_v6 field in utmpx.h... yes
checking for ut_exit field in utmp.h... yes
checking for ut_time field in utmp.h... no
checking for ut_time field in utmpx.h... no
checking for ut_tv field in utmpx.h... yes
checking for ss_family field in struct sockaddr_storage... no
checking for __ss_family field in struct sockaddr_storage... no
checking if libc defines __progname... yes
checking if libc defines sys_errlist... yes
checking for rsh... /usr/bin/rsh
checking for xauth... /usr/bin/X11/xauth
checking for /dev/ptc... no
checking for /dev/urandom... yes
checking if we need to convert IPv4 in IPv6-mapped addresses... yes (default)
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... yes
checking if your system defines UTMP_FILE... yes
checking if your system defines WTMP_FILE... yes
checking if your system defines UTMPX_FILE... no
checking if your system defines WTMPX_FILE... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating ssh_prng_cmds
creating config.h
OpenSSH configured has been configured with the following options.
User binaries: /usr/local/ssh/bin
System binaries: /usr/local/ssh/sbin
Configuration files: /etc/ssh
Askpass program: /usr/local/ssh/libexec/ssh/ssh-askpass
Manual pages: /usr/local/ssh/man/manX
PID file: /var/run
Random number collection: Device (/dev/urandom)
Manpage format: man
PAM support: yes
KerberosIV support: no
AFS support: no
S/KEY support: no
TCP Wrappers support: no
MD5 password support: no
IP address in $DISPLAY hack: no
Use IPv4 by default hack: yes
Translate v4 in v6 hack: yes
Compiler flags: -g -O2 -Wall -I/usr/local/ssl/include
Linker flags: -L/usr/local/ssl/lib -L/usr/local/ssl
Libraries: -ldl -lnsl -lz -lutil -lpam -lcrypto
# make
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/etc/ssh\"
-DSSH_PROGRAM=\"/usr/local/ssh/bin/ssh\"
-DSSH_ASKPASS_DEFAULT=\"/usr/local/ssh/libexec/ssh/ssh-askpass\"
-DHAVE_CONFIG_H -c -o bsd-base64.o bsd-base64.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:30,
from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117,
from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7,
from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11,
from /usr/include/bits/socket.h:31,
from /usr/include/sys/socket.h:34,
from defines.h:7,
from config.h:519,
from bsd-base64.c:45:
/usr/include/bits/local_lim.h:27: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:34,
from defines.h:7,
from config.h:519,
from bsd-base64.c:45:
/usr/include/bits/socket.h:295: asm/socket.h: No such file or directory
In file included from defines.h:8,
from config.h:519,
from bsd-base64.c:45:
/usr/include/sys/param.h:24: linux/limits.h: No such file or directory
/usr/include/sys/param.h:25: linux/param.h: No such file or directory
make: *** [bsd-base64.o] Error 1