LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error when compiling hydra on ubuntu 9.10 (https://www.linuxquestions.org/questions/linux-software-2/error-when-compiling-hydra-on-ubuntu-9-10-a-776753/)

anders_hp 12-18-2009 02:59 PM

Error when compiling hydra on ubuntu 9.10
 
Hi
I'm trying to compile the program called "hydra", but when I do, i get the following error messages:

Sorry for the really long quote. Any help, with solving this and maybe compiling in generel, since I've only done it a couple of times before, but I can't figure this out, at all. My system is Ubuntu 9.10.
Quote:

anders@anders-linux:/usr/local/src/hydra-5.4-src$ sudo ./configure
[sudo] password for anders:

Starting hydra auto configuration ...

Checking for openssl (libssl/ssl.h) ...
... found
Checking for Postgres (libpq) ...
... found
Checking for SVN (ibsvn_client-1 libapr-0.so libaprutil-0.so) ...
... found
Checking for SAP/R3 (librfc/saprfc.h) ...
... NOT found, module sapr3 disabled
Get it from http://www.sap.com/solutions/netweav...eval/index.asp
Checking for libssh (libssh/libssh.h) ...
... found
NOTE: ensure that you have libssh v0.11 installed!! Get it from http://0xbadc0de.be !

Hydra will be installed into .../bin of: /usr/local
(change this by running ./configure --prefix=path)

Writing Makefile.in ...

NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES
=======================================================================
ARM/PalmPilot users: please run ./configure-arm or ./configure-palm respectivly

now type "make"
anders@anders-linux:/usr/local/src/hydra-5.4-src$ sudo make
cd hydra-gtk && ./make_xhydra.sh
Trying to compile xhydra now (hydra gtk gui) - dont worry if this fails, this is really optional ...
Error: could not compile. Analyse this:
callbacks.c: In function ‘popen_re_unbuffered’:
callbacks.c:532: warning: format not a string literal and no format arguments
callbacks.c: In function ‘on_btnSave_clicked’:
callbacks.c:668: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
In file included from /usr/include/fcntl.h:217,
from callbacks.c:27:
In function ‘open’,
inlined from ‘on_btnSave_clicked’ at callbacks.c:666:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In file included from /usr/include/stdio.h:910,
from /usr/include/pango-1.0/pango/pango-utils.h:25,
from /usr/include/pango-1.0/pango/pango.h:46,
from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from callbacks.c:11:
In function ‘snprintf’,
inlined from ‘hydra_get_options’ at callbacks.c:247:
/usr/include/bits/stdio2.h:65: warning: call to __builtin___snprintf_chk will always overflow destination buffer
make[3]: *** [callbacks.o] Fejl 1
make[2]: *** [all-recursive] Fejl 1
make[1]: *** [all-recursive-am] Fejl 2

Do not worry, as I said, xhydra is really optional. ./hydra is ready to go!

Now type make install
anders@anders-linux:/usr/local/src/hydra-5.4-src$ sudo make install
test -e hydra.exe && touch Makefile || strip hydra pw-inspector
test -e hydra.exe && strip hydra.exe pw-inspector.exe || touch hydra
test -e xhydra && strip xhydra || touch Makefile
test -e hydra.exe && touch Makefile || cp hydra pw-inspector /usr/local/bin && cd /usr/local/bin && chmod 755 hydra pw-inspector
test -e hydra.exe && cp hydra.exe pw-inspector.exe /usr/local/bin && cd /usr/local/bin && chmod 755 hydra.exe pw-inspector.exe || touch Makefile
test -e xhydra && cp xhydra /usr/local/bin && cd /usr/local/bin && chmod 755 xhydra
make: [install] Error 1 (ignored)

MS3FGX 12-18-2009 06:25 PM

Hydra is very old software, and doesn't work with modern versions of libssh. There is a Hydra patch (written by the libssh maintainers), that is supposed to add support for newer libssh releases, but I have not personally used it.

Though it also looks like you are running into some sort of X-related issue there. I would still try applying the patch and seeing if that helps, since that is certainly required on a modern system no matter what.

maome 01-23-2010 10:52 AM

Change the source
 
You can find instructions on how to compile hydra on Ubuntu here: http://www.hacktoolrepository.com/tool/37/Hydra. It mentions your problem as well.


All times are GMT -5. The time now is 12:26 PM.