compiling OpenSSH v4.7p1-2 on windows 2003 in cygwin



running "make" after "./configure" produces the following:

gcc -o ssh.exe ssh.o readconf.o clientloop.o sshtty.o sshconnect.o
sshconnect1.o
sshconnect2.o -L. -Lopenbsd-compat/ -lssh -lopenbsd-compat
-lcrypto -lz /usr/
lib/textreadmode.o -lcrypt
openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o): In function
`parse_dns_rr
section':
/home/Administrator/openssh-4.7p1-2-chroot/openbsd-compat/getrrsetbyname.c:515:
undefined reference to `___dn_expand'
openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o): In function
`getrrsetbyna
me':
/home/Administrator/openssh-4.7p1-2-chroot/openbsd-compat/getrrsetbyname.c:219:
undefined reference to `__res'
/home/Administrator/openssh-4.7p1-2-chroot/openbsd-compat/getrrsetbyname.c:235:
undefined reference to `___res_query'
/home/Administrator/openssh-4.7p1-2-chroot/openbsd-compat/getrrsetbyname.c:468:
undefined reference to `___dn_expand'
/home/Administrator/openssh-4.7p1-2-chroot/openbsd-compat/getrrsetbyname.c:219:
undefined reference to `___res_init'
Info: resolving ___progname by linking to __imp____progname (auto-import)
Info: resolving _optind by linking to __imp__optind (auto-import)
Info: resolving _optreset by linking to __imp__optreset (auto-import)
Info: resolving _optarg by linking to __imp__optarg (auto-import)
collect2: ld returned 1 exit status
make: *** [ssh.exe] Error 1

i had to "borrow" nameser.h and resolv.h from the cygwin src to even
get it this far.

and i was also getting some in6a undefined so i commented out that
section in resolv.h

Thank you,
-Rami

--
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!



Relevant Pages