You are not logged in.
Hi,
I tried to build a package for beboCD but it fails with this error.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -march=i686 -mtune=generic -O2 -pipe -MT callbacks.o -MD -MP -MF ".deps/callbacks.Tpo" \
-c -o callbacks.o `test -f 'callbacks.c' || echo './'`callbacks.c; \
then mv -f ".deps/callbacks.Tpo" ".deps/callbacks.Po"; \
else rm -f ".deps/callbacks.Tpo"; exit 1; \
fi
callbacks.c: In function 'loop_action':
callbacks.c:156: error: 'data' redeclared as different kind of symbol
callbacks.c:146: error: previous definition of 'data' was here
make[1]: *** [callbacks.o] Error 1
make[1]: Leaving directory `/home/michael/AUR/bebocd/src/bebocd-0.4/src'
make: *** [install-recursive] Error 1
==> ERROR: Build Failed.
Aborting...
this is the PKGBUILD
# Contributor: SiD/sidious <miste78 at web de>
pkgname=bebocd
pkgver=0.4
pkgrel=1
pkgdesc="Cdplayer based on GTK2 and libcdaudio libraries."
arch=('i686')
url="http://bebocd.sourceforge.net/"
license=('GPL')
depends=('gtk2' 'libcdaudio')
makedepends=()
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('381b8e759d1568add4e42e76ea2061b9')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr \
make || return 1
make DESTDIR="$pkgdir/" install
}
Last edited by SiD (2011-06-24 06:24:16)
Offline
with this patch it works.
diff -ur src/callbacks.c srcpatched/callbacks.c
--- src/callbacks.c 2009-03-20 14:42:09.000000000 +0100
+++ srcpatched/callbacks.c 2009-03-20 15:11:06.000000000 +0100
@@ -143,7 +143,7 @@
* Actions taken every 500 miliseconds ;)
*/
gint
-loop_action (gpointer data)
+loop_action (gpointer user_data)
{
GList *bebo_list = NULL;
diff -ur src/callbacks.h srcpatched/callbacks.h
--- src/callbacks.h 2003-08-18 16:27:18.000000000 +0200
+++ srcpatched/callbacks.h 2009-03-20 15:11:21.000000000 +0100
@@ -54,7 +54,7 @@
gpointer user_data);
gint
-loop_action (gpointer data);
+loop_action (gpointer user_data);
void
diff -ur src/cddb.c srcpatched/cddb.c
--- src/cddb.c 2003-07-02 00:52:34.000000000 +0200
+++ srcpatched/cddb.c 2009-03-20 18:11:46.000000000 +0100
@@ -38,7 +38,7 @@
fprintf (conf, "# CD server conf file generated for libcdaudio by beboCD.\n");
fprintf (conf, "# Please edit this file to fit your options.\n\n");
fprintf (conf, "ACCESS=REMOTE\n");
- fprintf (conf, "SERVER=http://www.freedb.org:80/cgi-bin/cddb.cgi CDDB\n");
+ fprintf (conf, "SERVER=http://freedb.freedb.org/~cddb/cddb.cgi CDDB\n");
fclose (conf);
free (buff);
Thanx to portix for posting the patch in the german forums!
Offline