Portál AbcLinuxu, 14. května 2025 00:09
Dobry den, uz nejakou dobu se pokousim zkompilovat tento program qg.ic.cz/brutessh.txt stahnul jsem si i libssh, ale stale to pise toto:
$ gcc brutessh.c -o sshbrute -lssh brutessh.c: In function ‘conectar_ssh’: brutessh.c:122: warning: assignment makes pointer from integer without a cast brutessh.c:126: warning: passing argument 1 of ‘ssh_connect’ from incompatible pointer type brutessh.c:126: warning: assignment makes pointer from integer without a cast brutessh.c:152: warning: passing argument 3 of ‘ssh_userauth_password’ discards qualifiers from pointer target type /tmp/cckSvUHC.o: In function `conectar_ssh': brutessh.c:(.text+0x30e): undefined reference to `ssh_getopt' brutessh.c:(.text+0x323): undefined reference to `options_set_username' brutessh.c:(.text+0x335): undefined reference to `options_set_host' brutessh.c:(.text+0x38d): undefined reference to `pubkey_get_hash' collect2: ld returned 1 exit status
Muzete mi prosim poradit jak program zkompilovat?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.