You are not logged in.

#1 2010-06-20 08:26:14

pootzko
Member
From: Nerdvana
Registered: 2008-06-23
Posts: 109
Website

[Solved] hyrda svn problem

hi,

this is my first time trying to make pkgbuild and I got stuck right away ^^^
I get an error when doing makepkg -s

this is the error

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

Writing Makefile.in ...
now type "make"
gcc -I. -Wall -O2 -c hydra-svn.c -DLIBOPENSSL -DLIBPOSTGRES -DLIBSVN -DLIBSSH -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/subversion-1 -I/usr/include/apr-1
In file included from /usr/include/subversion-1/svn_client.h:29:0,
                 from hydra-svn.c:17:
/usr/include/apr-1/apr.h:285:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
In file included from /usr/include/apr-1/apr_file_io.h:29:0,
                 from /usr/include/subversion-1/svn_client.h:34,
                 from hydra-svn.c:17:
/usr/include/apr-1/apr_file_info.h:198:5: error: expected specifier-qualifier-list before 'apr_off_t'
In file included from /usr/include/subversion-1/svn_client.h:34:0,
                 from hydra-svn.c:17:
/usr/include/apr-1/apr_file_io.h:653:36: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_file_io.h:881:58: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from /usr/include/subversion-1/svn_types.h:34:0,
                 from /usr/include/subversion-1/svn_client.h:37,
                 from hydra-svn.c:17:
/usr/include/apr-1/apr_strings.h:303:50: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_strings.h:321:49: error: expected ')' before '*' token
/usr/include/apr-1/apr_strings.h:358:44: error: expected ')' before 'size'
In file included from /usr/include/subversion-1/svn_wc.h:54:0,
                 from /usr/include/subversion-1/svn_client.h:39,
                 from hydra-svn.c:17:
/usr/include/subversion-1/svn_io.h:1499:18: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_io.h:1545:19: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from /usr/include/subversion-1/svn_wc.h:57:0,
                 from /usr/include/subversion-1/svn_client.h:39,
                 from hydra-svn.c:17:
/usr/include/subversion-1/svn_ra.h:195:57: error: expected ')' before 'progress'
/usr/include/subversion-1/svn_ra.h:494:3: error: expected specifier-qualifier-list before 'svn_ra_progress_notify_func_t'
In file included from /usr/include/subversion-1/svn_client.h:39:0,
                 from hydra-svn.c:17:
/usr/include/subversion-1/svn_wc.h:2195:3: error: expected specifier-qualifier-list before 'apr_off_t'
In file included from /usr/include/subversion-1/svn_client.h:43:0,
                 from hydra-svn.c:17:
/usr/include/subversion-1/svn_diff.h:225:33: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:226:33: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:227:33: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:228:33: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:229:33: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:230:33: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:244:40: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:245:40: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:246:40: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:247:40: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:248:40: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:249:40: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:258:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:259:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:260:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:261:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:262:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:263:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:270:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:271:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:272:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:273:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:274:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:275:38: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:287:35: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:288:35: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:289:35: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:290:35: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:291:35: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/subversion-1/svn_diff.h:292:35: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from hydra-svn.c:17:0:
/usr/include/subversion-1/svn_client.h:878:3: error: expected specifier-qualifier-list before 'svn_ra_progress_notify_func_t'
hydra-svn.c: In function 'start_svn':
hydra-svn.c:106:7: warning: 'svn_client_get_simple_prompt_provider' is deprecated (declared at /usr/include/subversion-1/svn_client.h:111)
hydra-svn.c:120:3: warning: 'svn_client_ls' is deprecated (declared at /usr/include/subversion-1/svn_client.h:4077)
make: *** [hydra-svn.o] Error 1
==> ERROR: Build Failed.
    Aborting...

from what I understand it calls some svn functions that are no longer in use? or am I wrong?
how do I fix this?

this is the PKGBUILD

pkgname=hydra
pkgver=5.7
pkgrel=1
pkgdesc="A very fast network logon cracker which support many different services"
depends=('openssl' 'postgresql-libs' 'subversion' 'apr' 'apr-util' 'libssh')
source=("http://freeworld.thc.org/releases/$pkgname-$pkgver-src.tar.gz")
url="http://www.thc.org/thc-hydra/"
md5sums=('a8ad06ed726208800ca9a3c09aaf9cf7')
arch=('i686' 'x86_64')
license="GPL"

build() {
    mkdir -p $pkgdir/usr/bin

    cd $srcdir/$pkgname-$pkgver-src

    # Fixes some weird file-location stuff
    sed -i s/apr-0/apr-1/g configure
    sed -i s/aprutil-0/aprutil-1/g configure

    ./configure --prefix=$pkgdir/usr || return 1
    make || return 1
    make install || return 1

}

thank you

Last edited by pootzko (2010-06-25 18:21:54)


...I put on my robe and a wizard hat...

Offline

#2 2010-06-20 09:27:02

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] hyrda svn problem

Googling (it really works wink) gives me this:

This is due to the fact that not all options are passed to the compiler. Change the first line in the Makefile file to:

CC=gcc `/usr/local/bin/apr-1-config -cppflags -cflags`

If that indeed fixes it (mind the apr-1-config path, it won't be /usr/local/bin on Arch), then post a commend on the AUR about it.

If you're not familiar with how to read this kind of errors, the 'real' error is often on top:

/usr/include/apr-1/apr.h:285:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'

Combine that with the name of the program you're trying to compile and if there is anything similar out there Google will find it.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-06-20 15:55:13

pootzko
Member
From: Nerdvana
Registered: 2008-06-23
Posts: 109
Website

Re: [Solved] hyrda svn problem

thank you very much

this was very helpful, made me look into right direction... I was google-ing this "make: *** [hydra-svn.o] Error 1" and the results did not make much sense to me...


...I put on my robe and a wizard hat...

Offline

#4 2010-06-20 17:50:44

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] hyrda svn problem

You're welcome smile.

Did you get it fixed?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-06-20 19:19:59

pootzko
Member
From: Nerdvana
Registered: 2008-06-23
Posts: 109
Website

Re: [Solved] hyrda svn problem

I thought I did until I found out that configure file puts binaries to the wrong place. So... there's still a little to be done before it's good..
xhydra can be run for example but when you try to use it, it asks for the path to hydra binary...

I'll get it fixed alright smile
it's fun

Last edited by pootzko (2010-06-20 19:20:31)


...I put on my robe and a wizard hat...

Offline

#6 2010-06-25 18:17:50

pootzko
Member
From: Nerdvana
Registered: 2008-06-23
Posts: 109
Website

Re: [Solved] hyrda svn problem

fixed smile

here it is: http://aur.archlinux.org/packages.php?ID=4458

thanks to Jinx who found a mistake I made in PKGBUILD and pointed me into the right direction

Last edited by pootzko (2010-06-25 18:18:00)


...I put on my robe and a wizard hat...

Offline

#7 2010-06-25 18:19:12

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] hyrda svn problem

Congrats smile.

Please add [Solved] to your topic title, thanks smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB