You are not logged in.
Hi,
I'm wanted to try out xxxterm from the AUR but I get a build error from 'JSStringRelease' not being linked to the linker command line, some forum surfing lead me to conclude that this should fit in the makefile, however I could not bring myself to understand how to achieve this.
This is the erroneous output:
/usr/bin/ld: ../xxxterm.o: undefined reference to symbol 'JSStringRelease'
/usr/bin/ld: note: 'JSStringRelease' is defined in DSO /usr/lib/libjavascriptcoregtk-1.0.so.0 so try adding it to the linker command line
/usr/lib/libjavascriptcoregtk-1.0.so.0: could not read symbols: Invalid operation
collect2: ld returnerade avslutningsstatus 1
make: *** [xxxterm] Fel 1
Any help would be greatly appreciated
Ps: Sorry about the bit in swedish after collect2: it is supposed to say: "Id returned finnished status" or something like that
Last edited by mutanabbi (2011-12-11 11:57:25)
Offline
try adding LIBS+="-ljavascriptcoregtk-1.0" in front of the configure line.
Offline
I could not find a configure line in the pkbuild, further it points to some kind of user standard makefile, however I do not know what file that is. I'm rather new at trying to get failing pkbuilds to work.
Offline
When AUR (yaourt or whatever you use) asks you to edit config file, answer YES and edit it.
Just before "make javascript.h" add this line:
sed -i 's:LIBS= gtk+-2.0:LIBS= javascriptcoregtk-1.0 gtk+-2.0:' Makefile
It should work then
Last edited by thiemel (2011-12-11 09:43:03)
Offline
Sadly there is no such line in this pkbuild, this is what's in there, dunno why java should be an usse but:
md5sums=('65fcd94797622126a61521457a049deb'
'f3eeb6e8b70a3dcccb8ee57daf584c9e'
'ab57148880673bd4a8affe7d8b326da3')
build() {
cd "$srcdir/$pkgname-$pkgver"
# no spam
sed -i 's|https://www.cyphertite.com|https://archlinux.org|' xxxterm.{c,conf}
cd linux
sed -i 's/gnutls/& libbsd/' Makefile
make PREFIX="/usr"
}
package() {
cd "$srcdir/$pkgname-$pkgver/linux"
make PREFIX="/usr" DESTDIR="$pkgdir" install
cd ..
install -Dm644 xxxterm.conf "$pkgdir/etc/skel/xxxterm.conf"
cd ../..
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
I tried to use the sed -i line above the two make position, not thinking that'd work, and it didn't, but I guess it should be possible
Last edited by mutanabbi (2011-12-11 10:54:00)
Offline
thiemel said 'edit config file', not the PKGBUILD - see the comments https://aur.archlinux.org/packages.php?ID=35052
Offline
I use yaourt to try to install xxxterm, but the only point at which I'm asked whether to edit is before the pkbuild, with conf-file I guess xxxterm.conf is meant. But I can not find out how to edit this file, or the makefile - which I also still not really know what it is. I am sorry that I bother you with these details, but googling just wasn't enough this time, since I don't really know what questions to ask.
Offline
I don't build in /tmp so I have easy access to the sources, ~/xxxterm is the dir I extract the tAURball to. I just go to ~/xxxterm/src/xxxterm-1.9.0/linux and run the line https://bbs.archlinux.org/viewtopic.php … 7#p1027297 thiemel provided.
Then, from ~/xxxterm I run 'makepkg -sie' and it builds + installs fine.
Offline
Sorry for bumping, I though I might just provide a PKGBUILD:
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=xxxterm
pkgver=1.9.0
pkgrel=1
pkgdesc="A minimalists web browser, vi-like while maintaining traditional web browser behavior."
arch=('i686' 'x86_64')
url="http://opensource.conformal.com/wiki/XXXTerm"
license=('custom:ISC')
depends=('libwebkit' 'gtk2' 'libbsd')
optdepends=()
source=(http://opensource.conformal.com/snapshots/$pkgname/$pkgname-$pkgver.tgz \
LICENSE \
xxxterm.conf)
md5sums=('65fcd94797622126a61521457a049deb'
'f3eeb6e8b70a3dcccb8ee57daf584c9e'
'ab57148880673bd4a8affe7d8b326da3')
build() {
cd "$srcdir/$pkgname-$pkgver/linux"
sed -i 's:LIBS= gtk+-2.0:LIBS= javascriptcoregtk-1.0 gtk+-2.0:' Makefile
cd "$srcdir/$pkgname-$pkgver"
# no spam
sed -i 's|https://www.cyphertite.com|https://archlinux.org|' xxxterm.{c,conf}
cd linux
sed -i 's/gnutls/& libbsd/' Makefile
make PREFIX="/usr"
}
package() {
cd "$srcdir/$pkgname-$pkgver/linux"
make PREFIX="/usr" DESTDIR="$pkgdir" install
cd ..
install -Dm644 xxxterm.conf "$pkgdir/etc/skel/xxxterm.conf"
cd ../..
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
The only difference between this and the one furrently in the AUR are the first 2 lines I've added to 'build()' section:
cd "$srcdir/$pkgname-$pkgver/linux"
sed -i 's:LIBS= gtk+-2.0:LIBS= javascriptcoregtk-1.0 gtk+-2.0:' Makefile
Last edited by karol (2011-12-11 11:56:20)
Offline
Brilliant, thanks. This worked flawlessly.
Offline
The PKGBUILD in the AUR has been updated https://aur.archlinux.org/packages.php?ID=35052
Offline