openssh-2.9p2 compilation on LynxOS

hari sekar a_ghsek at yahoo.co.in
Fri Jul 27 17:20:31 EST 2001


To whoever can help me,
 I tried to compile OpenSSH-2.9p2 on i386-LynxOS. I
made a

# ./configure --without-pam --without-shadow \
--with-ssl-dir=/usr/local/ssl --with-pcre \
--disable-libutil --sysconfdir=/etc/ssh

Then,
# make

gave the following error:

 gcc -o ssh ssh.o sshconnect.o sshconnect1.o
sshconnect2.o sshtty.o reonf.o clientloop.o -L.
-Lopenbsd-compat/ -L/usr/local/ssl/lib  -lssh
-lopenbsompat -lz  -lpcreposix -lpcre -lcrypto 
collect2: ld returned 1 exit status
sshconnect.o: In function `ssh_connect':
/openssh/openssh-2.9p2/sshconnect.c(207): undefined
reference to `getservbynareadconf.o: In function
`parse_token':
/openssh/openssh-2.9p2/readconf.c(235): undefined
reference to `strcasecmp'
./libssh.a(log.o): In function `log_facility_number':
/openssh/openssh-2.9p2/log.c(97): undefined reference
to `strcasecmp'
./libssh.a(log.o): In function `log_level_number':
/openssh/openssh-2.9p2/log.c(108): undefined reference
to `strcasecmp'
./libssh.a(log.o): In function `do_log':
/openssh/openssh-2.9p2/log.c(383): undefined reference
to `openlog'
/openssh/openssh-2.9p2/log.c(384): undefined reference
to `syslog'
/openssh/openssh-2.9p2/log.c(385): undefined reference
to `closelog'
./libssh.a(cipher.o): In function `cipher_by_name':
/openssh/openssh-2.9p2/cipher.c(440): undefined
reference to `strcasecmp'
./libssh.a(packet.o): In function `packet_read':
/openssh/openssh-2.9p2/packet.c(692): undefined
reference to `howmany'
/openssh/openssh-2.9p2/packet.c(717): undefined
reference to `howmany'
./libssh.a(packet.o): In function `packet_write_wait':
/openssh/openssh-2.9p2/packet.c(1216): undefined
reference to `howmany'
/openssh/openssh-2.9p2/packet.c(1220): undefined
reference to `howmany'
./libssh.a(channels.o): In function
`channel_prepare_select':
/openssh/openssh-2.9p2/channels.c(1171): undefined
reference to `howmany'
./libssh.a(canohost.o): In function
`check_ip_options':
/openssh/openssh-2.9p2/canohost.c(152): undefined
reference to
`getprotobynamopenbsd-compat//libopenbsd-compat.a(fake-getaddrinfo.o):
In function `getaddri':
/openssh/openssh-2.9p2/openbsd-compat/fake-getaddrinfo.c(99):
undefined refere to `gethostbyname'
openbsd-compat//libopenbsd-compat.a(fake-getnameinfo.o):
In function `getnamei':
/openssh/openssh-2.9p2/openbsd-compat/fake-getnameinfo.c(41):
undefined refere to `gethostbyaddr'
collect2: ld returned 1 exit
statusat/fake-getnameinfo.c(41): undefined refer
make: *** [ssh] Error 1            

The errors pertaining to gethostbyaddr, openlog,
syslog and other buit-in functions are removed, if I
add the following option:
# ./configure --with-cflags -I/usr/include

But, the error: "undefined reference to howmany"
persists. 
** I could not find the definition of howmany() in the
openssh directory.
Could anyone hellp me out.
Thanks for any help,
A.Gnana Hari Sekar

____________________________________________________________
Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com



More information about the openssh-unix-dev mailing list