Portál AbcLinuxu, 14. května 2025 00:09

Dotaz: Kompilace programu s libssh

3.1.2009 21:31 Patrik
Kompilace programu s libssh
Přečteno: 350×
Odpovědět | Admin

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?

Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

kozzi avatar 3.1.2009 23:30 kozzi | skóre: 55 | blog: vse_o_vsem | Pacman (Bratrušov)
Rozbalit Rozbalit vše Re: Kompilace programu s libssh
Odpovědět | | Sbalit | Link | Blokovat | Admin
problem je ve verzi libssh mas verzi 0.2 a potrebujes 0.11. Zkousel jsme ten programek predelat na tu verzi 0.2 ale bylo by to slozite jelikoz verze 0.2 obsahuje velke api zmeny, takze si odinstaluj tu verzi libssh co mas a nainstaluj tuto: http://0xbadc0de.be/libssh/libssh-0.11.tgz
Linux je jako mušketýři "jeden za všechny, všichni za jednoho"

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.