You are not logged in.

#1 2011-12-11 08:58:53

mutanabbi
Member
Registered: 2011-04-15
Posts: 29

[Solved] Compile issue - xxxterm

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

#2 2011-12-11 09:01:19

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [Solved] Compile issue - xxxterm

try adding LIBS+="-ljavascriptcoregtk-1.0" in front of the configure line.

Offline

#3 2011-12-11 09:05:02

mutanabbi
Member
Registered: 2011-04-15
Posts: 29

Re: [Solved] Compile issue - xxxterm

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

#4 2011-12-11 09:36:31

thiemel
Member
Registered: 2011-04-18
Posts: 4

Re: [Solved] Compile issue - xxxterm

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 wink

Last edited by thiemel (2011-12-11 09:43:03)

Offline

#5 2011-12-11 10:52:45

mutanabbi
Member
Registered: 2011-04-15
Posts: 29

Re: [Solved] Compile issue - xxxterm

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

#6 2011-12-11 10:56:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Compile issue - xxxterm

thiemel said 'edit config file', not the PKGBUILD - see the comments https://aur.archlinux.org/packages.php?ID=35052

Offline

#7 2011-12-11 11:20:21

mutanabbi
Member
Registered: 2011-04-15
Posts: 29

Re: [Solved] Compile issue - xxxterm

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

#8 2011-12-11 11:41:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Compile issue - xxxterm

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

#9 2011-12-11 11:48:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Compile issue - xxxterm

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

#10 2011-12-11 11:54:58

mutanabbi
Member
Registered: 2011-04-15
Posts: 29

Re: [Solved] Compile issue - xxxterm

Brilliant, thanks. This worked flawlessly.

Offline

#11 2011-12-22 17:20:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Compile issue - xxxterm

The PKGBUILD in the AUR has been updated https://aur.archlinux.org/packages.php?ID=35052

Offline

Board footer

Powered by FluxBB