LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-18-2009, 02:59 PM   #1
anders_hp
LQ Newbie
 
Registered: Feb 2009
Distribution: Debian, Ubuntu
Posts: 8

Rep: Reputation: 0
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)

Last edited by anders_hp; 12-18-2009 at 03:39 PM.
 
Old 12-18-2009, 06:25 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.

Last edited by MS3FGX; 12-18-2009 at 06:28 PM.
 
Old 01-23-2010, 10:52 AM   #3
maome
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Rep: Reputation: 0
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.
 
  


Reply

Tags
compiling, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
THC Hydra BULPulse Slackware 18 09-15-2010 11:10 PM
Hydra Gtk ericksonboy7 Linux - Newbie 0 10-08-2007 02:06 PM
Hydra 5.3 build error J_K9 Linux - Software 2 07-10-2006 05:49 AM
Error during compiling 2.6.9 kernel on ubuntu 5.10 ozzy_linux Ubuntu 1 02-17-2006 01:11 PM
Hydra 2.2 deepsix Linux - Security 1 08-29-2003 09:07 AM


All times are GMT -5. The time now is 06:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration