Hello 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. Thank you in advance for your response Amba (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' readconf.o: In function `process_config_line': /openssh-3.8p1/readconf.c(723): undefined reference to `strcasecmp' /openssh-3.8p1/readconf.c(725): undefined reference to `strcasecmp' /openssh-3.8p1/readconf.c(727): undefined reference to `strcasecmp' sshconnect.o: In function `timeout_connect': /openssh-3.8p1/sshconnect.c(243): undefined reference to `howmany' sshconnect.o: In function `ssh_connect': /openssh-3.8p1/sshconnect.c(330): undefined reference to `getservbyname' sshconnect.o: In function `confirm': /openssh-3.8p1/sshconnect.c(545): undefined reference to `strncasecmp' /openssh-3.8p1/sshconnect.c(549): undefined reference to `strncasecmp' ./libssh.a(log.o): In function `log_facility_number': /openssh-3.8p1/log.c(101): undefined reference to `strcasecmp' ./libssh.a(log.o): In function `log_level_number': /openssh-3.8p1/log.c(113): undefined reference to `strcasecmp' ./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' ./libssh.a(cipher.o): In function `cipher_by_name': /openssh-3.8p1/cipher.c(149): undefined reference to `strcasecmp' ./libssh.a(channels.o): In function `channel_prepare_select': /openssh-3.8p1/channels.c(1668): undefined reference to `howmany' ./libssh.a(packet.o): In function `packet_read_seqnr': /openssh-3.8p1/packet.c(833): undefined reference to `howmany' /openssh-3.8p1/packet.c(858): undefined reference to `howmany' ./libssh.a(packet.o): In function `packet_write_wait': /openssh-3.8p1/packet.c(1371): undefined reference to `howmany' /openssh-3.8p1/packet.c(1375): undefined reference to `howmany' ./libssh.a(canohost.o): In function `check_ip_options': /openssh-3.8p1/canohost.c(150): undefined reference to `getprotobyname' openbsd-compat//libopenbsd-compat.a(fake-rfc2553.o): In function `ssh_getnameinfo': /openssh-3.8p1/openbsd-compat/fake-rfc2553.c(64): undefined reference to `gethostbyaddr' openbsd-compat//libopenbsd-compat.a(fake-rfc2553.o): In function `ssh_getaddrinfo': /openssh-3.8p1/openbsd-compat/fake-rfc2553.c(164): undefined reference to `getservbyname' /openssh-3.8p1/openbsd-compat/fake-rfc2553.c(198): undefined reference to `gethostbyname' openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o): In function `getrrsetbyname': /openssh-3.8p1/openbsd-compat/getrrsetbyname.c(190): undefined reference to `_res' /openssh-3.8p1/openbsd-compat/getrrsetbyname.c(190): undefined reference to `res_init' /openssh-3.8p1/openbsd-compat/getrrsetbyname.c(206): undefined reference to `res_query' /openssh-3.8p1/openbsd-compat/getrrsetbyname.c(209): undefined reference to `_h_errno' openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o): In function `parse_dns_qsection': /openssh-3.8p1/openbsd-compat/getrrsetbyname.c(436): undefined reference to `dn_expand' openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o): In function `parse_dns_rrsection': /openssh-3.8p1/openbsd-compat/getrrsetbyname.c(482): undefined reference to `dn_expand' collect2: ld returned 1 exit status make: *** [ssh] Error 1 WS5000# Amba Giri Symbol Technologies, San Jose P: 408-528-2721 E:agiri at sj.symbol.com Symbol. The Enterprise Mobility Company.
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.
Darren Thank you very much for your response. Yes- I will be upgrading to zlib 1.1.4. I have suceeded in completing a successful build of ssh and sshd on lynxos. Many thanks to you. I do have 2 further questions: 1. After configure and the first run of make-- I notice the that the make just hangs after displaying the following: if test ! -2 "yes"; then \ /usr/bin/perl ./fixpage ssh_prng_cmds; \ fi --- I then do a ^Z and a second invocation of make causes everything tho build and compile. What is causing this? 2. If I attempt to execute ssh and connect to my local IP address: I get the error: Couldn't exec /usr/local/libexec/ssh-rand-helper. This file does not exist on my system and I am wondering hw it gets built Thank you for the 3rd time :) Amba 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 stageby> ignoring the zlib version check. However, at make stage I run intothe> 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): undefinedreference> 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. ________________________________________________________________________ This email has been scanned for computer viruses. Amba Giri Symbol Technologies, San Jose P: 408-528-2721 E:agiri at sj.symbol.com Symbol. The Enterprise Mobility Company.