You are not logged in.

#1 2012-03-19 18:31:34

Duxon
Member
Registered: 2010-12-01
Posts: 41

[SOLVED] Lastfm-Client, Installation fails.

Hello!

A week ago the package lastfm-client moved to the AUR from [community]. Since that I encounter an error trying to install it.
The erroroutput doesn't say me anything so I hoped probably someone of you knows how to fix this.

/usr/bin/ld: ../build/last.fm/release/AbstractBootstrapper.o: undefined reference to symbol 'gzopen'
/usr/bin/ld: note: 'gzopen' is defined in DSO /usr/lib/libz.so.1 so try adding it to the linker command line
/usr/lib/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [../bin/last.fm] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-duxon/aur-lastfm-client/src/lastfm-1.5.4.26862+dfsg/src'
make: *** [sub-src-make_default-ordered] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build lastfm-client.

I've had this on 3 different machines now. So I think this is a general issue.

Last edited by Duxon (2012-03-30 16:47:46)

Offline

#2 2012-03-19 20:33:35

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

Re: [SOLVED] Lastfm-Client, Installation fails.

try adding:
LIBS+="-lz"
to the configure line

Offline

#3 2012-03-20 11:47:09

Duxon
Member
Registered: 2010-12-01
Posts: 41

Re: [SOLVED] Lastfm-Client, Installation fails.

I added LIBS+="-lz" to the PKGBUILD in the build() section. Since I'm a newb I tried following two ways:

build() {
   cd "$srcdir/lastfm-$pkgver+dfsg"
   patch -Np1 -i ../build-fixes.diff
   patch -Np1 -i ../set-locale.diff
   patch -Np1 -i ../set-firstrun-status.diff
   patch -Np1 -i ../qt46.diff
  ./configure LIBS+="-lz"
   MAKEFLAGS=-j1 make src/Makefile
   patch -Np1 -i ../makefile-qt45.patch
   MAKEFLAGS=-j1 make
   (   make || (mv build/fplib/libfplib_debug.a build/fplib/libfplib.a && make ) )
}

build() {
   cd "$srcdir/lastfm-$pkgver+dfsg"
   patch -Np1 -i ../build-fixes.diff
   patch -Np1 -i ../set-locale.diff
   patch -Np1 -i ../set-firstrun-status.diff
   patch -Np1 -i ../qt46.diff
   ./configure
   LIBS+="-lz"
   MAKEFLAGS=-j1 make src/Makefile
   patch -Np1 -i ../makefile-qt45.patch
   MAKEFLAGS=-j1 make
   (   make || (mv build/fplib/libfplib_debug.a build/fplib/libfplib.a && make ) )
}

Both led to the same error as before. What am I doing wrong?

Offline

#4 2012-03-20 18:23:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Lastfm-Client, Installation fails.

If you put it in the PKGBUILD, it wil have to be a sed call to write it to the Makefile - have a look at some PKGBUILDS in AUR to see how it is done...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-03-22 11:05:36

bibstha
Member
Registered: 2011-05-17
Posts: 11

Re: [SOLVED] Lastfm-Client, Installation fails.

I have the same problem. Did you figure out where to make the changes?

Offline

#6 2012-03-23 09:31:28

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

Re: [SOLVED] Lastfm-Client, Installation fails.

try:
LIBS+="-lz"  ./configure

Offline

#7 2012-03-27 13:09:14

av
Member
Registered: 2012-03-17
Posts: 32

Re: [SOLVED] Lastfm-Client, Installation fails.

Same problem here. I tried adding LIBS+="-lz" to PKGBUILD, the way Snowman suggested, but unfortunately I still get those evil errors. Has anyone solved it?

Offline

#8 2012-03-28 11:17:33

Duxon
Member
Registered: 2010-12-01
Posts: 41

Re: [SOLVED] Lastfm-Client, Installation fails.

I can confirm that.
Jasonwryan wrote

If you put it in the PKGBUILD, it wil have to be a sed call to write it to the Makefile

Unfortunately I didn't manage this. Sed always drives me crazy, also I don't understand the logic of his statement.

Last edited by Duxon (2012-03-28 20:19:58)

Offline

#9 2012-03-30 16:45:29

Duxon
Member
Registered: 2010-12-01
Posts: 41

Re: [SOLVED] Lastfm-Client, Installation fails.

Well. This could seem extremely ugly, but it pleased my needs. Sorry for that. I'll explain my way for anyone who wants to use Last-FM player with Arch:

I found the former package in my /var/cache/pacman/pkg/ on an old machine and just copied it to the new one. This package is from before lastfm-client was moved away from [extra].

Then a simple

# pacman -U /path/to/lastfm-client-1.5.4.26862-4-x86_64.pkg.tar.xz

  did the job. Don't forget to install liblastfm from [extra].

Here's the package. http://dl.dropbox.com/u/2475817/don%27t … pkg.tar.xz (1.2 MB)

I hope the AUR package is going to be fixed and updated soon. Unfortunately I don't understand enough about it to do it myself.

Offline

#10 2012-07-16 12:43:29

vooze
Member
Registered: 2011-07-10
Posts: 10

Re: [SOLVED] Lastfm-Client, Installation fails.

Duxon wrote:

Well. This could seem extremely ugly, but it pleased my needs. Sorry for that. I'll explain my way for anyone who wants to use Last-FM player with Arch:

I found the former package in my /var/cache/pacman/pkg/ on an old machine and just copied it to the new one. This package is from before lastfm-client was moved away from [extra].

Then a simple

# pacman -U /path/to/lastfm-client-1.5.4.26862-4-x86_64.pkg.tar.xz

  did the job. Don't forget to install liblastfm from [extra].

Here's the package. http://dl.dropbox.com/u/2475817/don%27t … pkg.tar.xz (1.2 MB)

I hope the AUR package is going to be fixed and updated soon. Unfortunately I don't understand enough about it to do it myself.

You sir, you just made my day!!

Have been looking for a way to install the lastfm client for months now.

Saved on my own dropbox, just in case wink

Offline

Board footer

Powered by FluxBB