A question on Compilation errors...

Amba giri agiri at sj.symbol.com
Wed Mar 24 08:34:28 EST 2004


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 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.

________________________________________________________________________
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.




More information about the openssh-unix-dev mailing list