A question on Compilation errors...
Darren Tucker
dtucker at zip.com.au
Tue Mar 23 16:46:09 EST 2004
Amba giri wrote:
> I am attempting to build on a LynxOS platform and am using a old
> version of zlib and OpenSSL-0.9.6a. I get past the configure stage by
> ignoring the zlib version check. However, at make stage I run into the
> following undefineds. Any idea what may be causing this. I am using
> version 3.8p1 of OpenSSH.
Any reason you don't use newer zlib and openssl? You'll probably save
yourself problems down the line.
[...]
> (cd openbsd-compat && make)
> make[1]: Nothing to be done for `all'.
> gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o
> sshconnect1.o sshconnect2.o -L.
> -Lopenbsd-compat/ -L/usr/local/ssl/lib -lssh -lopenbsd-compat
> -lcrypto -lz
> collect2: ld returned 1 exit status
> readconf.o: In function `parse_token':
> /openssh-3.8p1/readconf.c(263): undefined reference to `strcasecmp'
[...]
That is usually in libc. If your libc doesn't have it, you could
probably borrow an implementation from OpenBSD's libc.
> /openssh-3.8p1/sshconnect.c(243): undefined reference to `howmany'
This is a macro defined in defines.h if MISSING_HOWMANY is defined. Try
adding "#define MISSING_HOWMANY 1" to config.h.
> ./libssh.a(log.o): In function `do_log':
> /openssh-3.8p1/log.c(329): undefined reference to `openlog'
> /openssh-3.8p1/log.c(330): undefined reference to `syslog'
> /openssh-3.8p1/log.c(331): undefined reference to `closelog'
No idea where you'd find this if it's not in libc. Check the OS
documentation.
[...]
> /openssh-3.8p1/openbsd-compat/fake-rfc2553.c(164): undefined reference
> to `getservbyname'
[..]
These are normally in libresolv. Try adding "-lresolv" to LDFLAGS.
I suggest you add a *-lynxos) section to configure.ac with the required
bits.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list