OpenSSH-3.0.2p1 and Linux libc5
Richard Gooch
rgooch at ras.ucalgary.ca
Tue Dec 25 10:43:16 EST 2001
Hi, all. I'm trying to compile OpenSSH-3.0.2p1 on a Linux libc5
system, and it fails when compiling packet.c with the following:
gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I. -DETCDIR=\"/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/libexec/sftp-server\" -D_PATH_SSH_PIDDIR=\"/var/run\" -DHAVE_CONFIG_H -c packet.c
packet.c: In function `packet_set_interactive':
packet.c:1211: `TCP_NODELAY' undeclared (first use in this function)
packet.c:1211: (Each undeclared identifier is reported only once
packet.c:1211: for each function it appears in.)
The naive solution of adding:
#include <linux/tcp.h>
doesn't work:
gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I. -DETCDIR=\"/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/libexec/sftp-server\" -D_PATH_SSH_PIDDIR=\"/var/run\" -DHAVE_CONFIG_H -c packet.c
In file included from packet.c:62:
/usr/include/linux/tcp.h:23: redefinition of `struct tcphdr'
so I fell back to adding the following:
#define TCP_NODELAY 1
Brute force, but it works.
Regards,
Richard....
Permanent: rgooch at atnf.csiro.au
Current: rgooch at ras.ucalgary.ca
More information about the openssh-unix-dev
mailing list