You are not logged in.

#1 2008-02-25 02:32:25

Oblong_Cheese
Member
Registered: 2007-01-25
Posts: 42

Having trouble compiling

Hi all,

I'm not 100% sure this is the correct forum, but we'll see how we go.

I've recently purchased myself a new mouse, which has a handy-dandy configuration tool: http://www.bu3sch.de/deathadder.php

Though when I try to compile it, I receive the following error:

[owen@oblong deathaddercfg-004]$ make
cc -std=c99 -O2 -fomit-frame-pointer -Wall -D_BSD_SOURCE -D_GNU_SOURCE -DVERSION_=004   -c -o conffile.o conffile.c
conffile.c:49:26: error: config/parse.h: No such file or directory
conffile.c:65: error: expected ')' before '*' token
conffile.c:78: error: expected ')' before '*' token
conffile.c:88: error: expected ')' before '*' token
conffile.c:152: error: expected ')' before '*' token
conffile.c:174: error: expected ')' before '*' token
conffile.c:250: error: expected ')' before '*' token
conffile.c:310: error: expected ')' before '*' token
conffile.c: In function 'dadd_read_conffile':
conffile.c:334: error: 'section_t' undeclared (first use in this function)
conffile.c:334: error: (Each undeclared identifier is reported only once
conffile.c:334: error: for each function it appears in.)
conffile.c:334: error: 'tree' undeclared (first use in this function)
conffile.c:336: warning: implicit declaration of function 'parse'
conffile.c:344: warning: implicit declaration of function 'parse_global_parms'
conffile.c:347: warning: implicit declaration of function 'parse_global_sections'
conffile.c:351: warning: implicit declaration of function 'parse_destroy'
make: *** [conffile.o] Error 1

Any help understanding the source of this error and how to fix it will be greatly appreciated.

Thank-you!

I intend upon making a PKGBUILD for it when I can figure it out.

Offline

#2 2008-02-25 12:00:17

raeven
Member
From: the Herts of Crunchy Nut Land
Registered: 2008-02-19
Posts: 31
Website

Re: Having trouble compiling

depends: libconfig used in debian, not the one if community

pkgname=libconfig-debian
_pkgname=libconfig
pkgver=0.1.5
pkgrel=1
pkgdesc="C/C++ Configuration File Library used in Debian"
arch=('i686' 'x86_64')
url="http://oasis.frogfoot.net/code/libconfig/"
source=(http://oasis.frogfoot.net/code/$_pkgname/download/$pkgver/${_pkgname}_$pkgver.tar.gz)
license=('CUSTOM')
depends=('libdebug')
conflicts=('libconfig')

build() {
    cd $startdir/src/$_pkgname-$pkgver
    mkdir -p $startdir/pkg/usr/share/licenses/libconfig-debian
    cp debian/copyright $startdir/pkg/usr/share/licenses/libconfig-debian
    make # am i missing something ?
    make # i dare not look at the makefile again, it might kill me
    make DESTDIR=$startdir/pkg install # why does adding prefix? break it
    mv $startdir/pkg/usr/local/* $startdir/pkg/usr
    rmdir $startdir/pkg/usr/local
}

deadhadder:

pkgname=deathaddercfg
pkgver=004
pkgrel=1
pkgdesc="A configuration utility for the Razer DeathAdder on Linux systems."
arch=('i686' 'x86_64')
url="http://www.bu3sch.de/deathadder.php"
source=(http://www.bu3sch.de/deathadder/$pkgname-$pkgver.tar.bz2)
license=('GPL2' 'BSD')
depends=('libconfig-debian' 'libusb')

build() {
    cd $startdir/src/$pkgname-$pkgver
    make PREFIX=$startdir/pkg install
    mkdir -p $startdir/pkg/etc/udev/rules.d
    cp udev-deathadder.rules $startdir/pkg/etc/udev/rules.d/01-deathadder.rules
    cp example_config.cfg $startdir/pkg/etc/deathadder.cfg
}

Offline

#3 2008-02-25 12:21:40

LE_Shatai
Member
Registered: 2007-01-04
Posts: 26

Re: Having trouble compiling

Ok, I would say it is this line:

conffile.c:49:26: error: config/parse.h: No such file or directory

The rest errors, caused through the one from above.

You can extend the standard include path through:

export CFLAGS='-I</path/to/include>'

Offline

#4 2008-02-25 12:29:05

raeven
Member
From: the Herts of Crunchy Nut Land
Registered: 2008-02-19
Posts: 31
Website

Re: Having trouble compiling

the missing files are provided by the libconfig pkg in debian.
the libconfig in arch is different.
basically, until you install libconfig-debian; config/parse.h will never exist

Offline

Board footer

Powered by FluxBB