Hello,

I have not had any problems compiling SSH1 or SSH2 before, but I decided to update to 
the latest versions. So, I removed the versions I had installed, and tried to compile 
ssh-1.2.30 and ssh-2.3.0, but had problems with both....

Any ideas?

SSH1 -->

gcc -pipe  -o ssh ssh.o sshconnect.o log-client.o readconf.o hostfile.o readpass.o 
tildexpand.o clientloop.o canohost.o  idea.o rsa.o randoms.o md5.o buffer.o emulate.o 
packet.o compress.o xmalloc.o ttymodes.o newchannels.o bufaux.o authfd.o authfile.o 
crc32.o rsaglue.o cipher.o des.o match.o arcfour.o mpaux.o userfile.o signals.o 
blowfish.o deattack.o  \
        -Lgmp-2.0.2-ssh-2 -lgmp -Lzlib-1.0.4 -lz  -lnsl -lcrypt -L/usr/local/lib  
-lutil 
sshconnect.o: In function `ssh_connect':
/root/ssh/ssh-1.2.30/sshconnect.c:457: undefined reference to `__inet_addr'
/root/ssh/ssh-1.2.30/sshconnect.c:466: undefined reference to `__inet_ntoa'
/root/ssh/ssh-1.2.30/sshconnect.c:533: undefined reference to `__inet_ntoa'
canohost.o: In function `get_remote_hostname':
/root/ssh/ssh-1.2.30/canohost.c:118: undefined reference to `__inet_ntoa'
/root/ssh/ssh-1.2.30/canohost.c:120: undefined reference to `__inet_ntoa'
/root/ssh/ssh-1.2.30/canohost.c:128: undefined reference to `__inet_ntoa'
canohost.o:/root/ssh/ssh-1.2.30/canohost.c:163: more undefined references to 
`__inet_ntoa' follow
newchannels.o: In function `channel_request_local_forwarding':
/root/ssh/ssh-1.2.30/newchannels.c:1443: undefined reference to `__inet_addr'
newchannels.o: In function `channel_input_port_open':
/root/ssh/ssh-1.2.30/newchannels.c:1695: undefined reference to `__inet_addr'
newchannels.o: In function `x11_input_open':
/root/ssh/ssh-1.2.30/newchannels.c:2076: undefined reference to `__inet_addr'
collect2: ld returned 1 exit status
make: *** [ssh] Error 1



SSH2 -->

gcc  -D_GNU_SOURCE -g -O2 -Wall -Wno-unknown-pragmas  -o ssh2 ssh2.o -L. -L../../lib 
-lssh2 -lssh -lnsl -L/usr/local/lib -lshadow -lcrypt -lncurses -lnsl  -lutil
../../lib/libssh.a(sshunixtcp.o): In function `ssh_socket_low_connect_try':
/root/ssh/ssh-2.3.0/lib/sshutil/sshnet/unix/sshunixtcp.c:152: undefined reference to 
`__inet_addr'
../../lib/libssh.a(sshunixtcp.o): In function `ssh_tcp_make_listener':
/root/ssh/ssh-2.3.0/lib/sshutil/sshnet/unix/sshunixtcp.c:339: undefined reference to 
`__inet_addr'
../../lib/libssh.a(sshunixtcp.o): In function `ssh_tcp_get_remote_address':
/root/ssh/ssh-2.3.0/lib/sshutil/sshnet/unix/sshunixtcp.c:434: undefined reference to 
`__inet_ntoa'
../../lib/libssh.a(sshunixtcp.o): In function `ssh_tcp_get_local_address':
/root/ssh/ssh-2.3.0/lib/sshutil/sshnet/unix/sshunixtcp.c:485: undefined reference to 
`__inet_ntoa'
../../lib/libssh.a(sshunixtcp.o): In function `ssh_tcp_get_host_addrs_by_name_sync':
/root/ssh/ssh-2.3.0/lib/sshutil/sshnet/unix/sshunixtcp.c:643: undefined reference to 
`__inet_ntoa'
collect2: ld returned 1 exit status
make[4]: *** [ssh2] Error 1
make[4]: Leaving directory `/root/ssh/ssh-2.3.0/apps/ssh'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/ssh/ssh-2.3.0/apps/ssh'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/ssh/ssh-2.3.0/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ssh/ssh-2.3.0'
make: *** [all-recursive-am] Error 2



Thanks!


Bye for Now,

Ian


                     \|||/ 
                     (o o)
 /----------------ooO-(_)-Ooo----------------\
 |  Ian Chilton                              |
 |  E-Mail : [EMAIL PROTECTED]              |
 \-------------------------------------------/


Reply via email to