make fails during linking
Oliver Schurr
schurro at georgetown.edu
Wed Jun 26 05:51:43 EST 2002
Hi OpenSSH developers
LINUX, i586, libc5, kernel 2.0.39, gcc 2.7.2.3, OpenSSH 3.3p1 source
First I tried just 'configure' and then 'make' but that gave the same
error message as given below.
Next I tried to explicitly tell the 'configure' process where zlib 1.1.4
and openssl 0.9.6d are installed.
configure --with-ssl-dir=/usr/local/ssl --with-zlib=/usr/local
results in
Host: i586-pc-linux-gnulibc1
Compiler: gcc
Compiler flags: -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
Preprocessor flags: -I/usr/local/ssl/include -I/usr/local/include
Linker flags: -L/usr/local/ssl/lib -L/usr/local/lib
Libraries: -lbsd -lz -lcrypto
make fails during linking with the following error message:
gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o
readconf.o clientloop.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib
-L/usr/local/lib -lssh -lopenbsd-compat -lbsd -lz -lcrypto
./libssh.a(monitor_fdpass.o): In function `mm_send_fd':
/home/oliver/test/openssh-3.3p1/monitor_fdpass.c:54: undefined reference
to `CMSG_FIRSTHDR'
/home/oliver/test/openssh-3.3p1/monitor_fdpass.c:58: undefined reference
to `CMSG_DATA'
./libssh.a(monitor_fdpass.o): In function `mm_receive_fd':
/home/oliver/test/openssh-3.3p1/monitor_fdpass.c:114: undefined
reference to `CMSG_FIRSTHDR'
/home/oliver/test/openssh-3.3p1/monitor_fdpass.c:118: undefined
reference to `CMSG_DATA'
make: *** [ssh] Error 1
The SSL libraries and includes are installed in /usr/local/ssl tree.
What is going on here?
The earlier versions of OpenSSH compiled just fine.
Thanks a lot
Oliver Schurr
More information about the openssh-unix-dev
mailing list