You are not logged in.
Hi,
I am trying to install opendx using
sudo yaourt -S opendx
The first problem was, that it would download a wrong .tar.gz and fail the md5sum, so I edited the PKGBUILD (cf. below) with a known source and the correct md5sum.
However running like that, the compilation breaks, even though there should be a workaround in the PKGBUILD (which I uncommented once to try to get it to run).
the last few lines of the compilation output:
---
(cd .libs && rm -f libcallm.la && ln -s ../libcallm.la libcallm.la)
sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -march=x86-64 -mtune=generic -O2 -pipe -D_GNU_SOURCE -c -o mem.lo mem.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -march=x86-64 -mtune=generic -O2 -pipe -D_GNU_SOURCE -c mem.c -o mem.o
sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -march=x86-64 -mtune=generic -O2 -pipe -D_GNU_SOURCE -c -o memory.lo memory.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -march=x86-64 -mtune=generic -O2 -pipe -D_GNU_SOURCE -c memory.c -o memory.o
memory.c:69:46: fatal error: /usr/lib/klibc/include/linux/sys.h: No such file or directory
compilation terminated.
make[4]: *** [memory.lo] Error 1
make[4]: Leaving directory `/tmp/yaourt-tmp-root/aur-opendx/src/dx-4.4.4/src/exec/libdx'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/yaourt-tmp-root/aur-opendx/src/dx-4.4.4/src/exec/libdx'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-opendx/src/dx-4.4.4/src/exec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-opendx/src/dx-4.4.4/src'
make: *** [all-recursive] Error 1
---
I would be very grateful for any help.
The new PKGBUILD:
-------snip-------
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
pkgname=opendx
pkgver=4.4.4
pkgrel=2
pkgdesc="A uniquely powerful, full-featured software package for the visualization of scientific, engineering and analytical data"
arch=('i686' 'x86_64')
url="http://www.opendx.org/"
license=('custom')
depends=('lesstif' 'netcdf' 'imagemagick')
makedepends=('flex')
options=('!libtool' '!makeflags')
source=(http://opendx.informatics.jax.org/source/dx-4.4.4.tar.gz opendx.desktop LICENSE)
md5sums=('6da0c4cd21d3c08f97b7662e3aee5b7b' '9e3771c3881e1126fa74225d5525c1fa'\
'cb5e74007c76ca289235092e5c13e2cb')
build() {
cd ${srcdir}/dx-${pkgver}
# quick hack to fix compile linux/sys.h error
# ln -s /usr/lib/klibc/include /usr/include/klibc
sed -i -e 's|linux/sys.h|/usr/lib/klibc/include/linux/sys.h|' configure.ac src/exec/libdx/memory.c || return 1
./configure --prefix=/usr/lib --exec-prefix=/usr/bin --with-javadx=no
CPPFLAGS="$CPPFLAGS -I/usr/lib/klibc/include" make || return 1
make DESTDIR=${pkgdir} install || return 1
rm -r ${pkgdir}/usr/lib/dx/{html,doc}
# fix bin prefix
mv ${pkgdir}/usr/lib/bin ${pkgdir}/usr
# install license
install -D -m644 ${srcdir}/dx-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
# install freedesktop stuff
install -D -m644 ${srcdir}/opendx.desktop ${pkgdir}/usr/share/applications/opendx.desktop
# fix manpath - ugly but it works
install -D -m644 ${pkgdir}/usr/lib/dx/man/manl/dx.l ${pkgdir}/usr/share/man/manl/dx.l
install -D -m644 ${pkgdir}/usr/lib/dx/man/catl/dx.l ${pkgdir}/usr/share/man/catl/dx.l
rm -R ${pkgdir}/usr/lib/dx/man
}
md5sums=('6da0c4cd21d3c08f97b7662e3aee5b7b'
'9e3771c3881e1126fa74225d5525c1fa'
'cb5e74007c76ca289235092e5c13e2cb')
-------snip-------
Offline