You are not logged in.
Hi everyone,
I tried building enemylines3 from AUR and it stops building with the following error:
hiscore.cc:4:24: fatal error: curl/types.h: No such file or directory
compilation terminated.
The file /usr/include/curl/types.h is indeed missing on my up-to-date system. As I'm not that much into programming to fix the code with the file missing I just wrote a patch to remove the curl dependency alltogether.
diff -urB enemylines3-1.2/hiscore.cc enemylines3-1.2-patched/hiscore.cc
--- enemylines3-1.2/hiscore.cc 2006-03-30 18:16:47.000000000 +0200
+++ enemylines3-1.2-patched/hiscore.cc 2013-03-02 12:34:29.618621436 +0100
@@ -1,4 +1,5 @@
#include <sstream>
+#define NOCURL
#ifndef NOCURL
#include <curl/curl.h>
#include <curl/types.h>
and updated the PKGBUILD file accordingly
pkgname=enemylines3
pkgver=1.2
pkgrel=1
pkgdesc="Semi-abstract first person 3d-shooter game."
arch=('i686' 'x86_64')
url="http://proj.phk.at/el/3/"
license=('GPL')
depends=('sdl' 'sdl_mixer' 'sdl_ttf')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://proj.phk.at/el/3/$pkgname-$pkgver.tar.bz2
enemylines_gcc43.patch
enemylines3_rmcurldep.patch)
noextract=()
md5sums=('aa9538749df25bc967195fefe1439791'
'd35dfc6f66bbed7d0c936da15b945d64'
'cd6c20ae8a971fdfaa247c7eb808f4f9' )
build() {
cd "$srcdir"
patch -p0 -i enemylines_gcc43.patch || return 1
patch -p0 -i enemylines3_rmcurldep.patch || return 1
cd "$pkgname-$pkgver"
make || return 1
make DESTDIR="$pkgdir/usr" install
}
# vim:set ts=2 sw=2 et:
Now it builds fine but of course without the hiscore functionality (which I don't need).
What should I/we do now? Of course it makes no sense to have a broken package in the AUR but on the other hand some users probably want the hiscore functionality. Is there anyone willing to write another patch to make it work again or is it even an error in the curl package (why is the file missing?).
Offline
http://projects.springlobby.info/issues/1575
https://wiki.openstreetmap.org/wiki/Talk:Gosmore
https://bugs.archlinux.org/task/27094
curl/types.h is deprecated by curl devs and seems to be removed completely since curl version 7.21.7 .
using sed to replace curl/types.h with curl/curl.h seems like it's worth a try.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline