You are not logged in.
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
try adding:
LIBS+="-lz"
to the configure line
Offline
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
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...
Offline
I have the same problem. Did you figure out where to make the changes?
Offline
try:
LIBS+="-lz" ./configure
Offline
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
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
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.xzdid 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
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.xzdid 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 ![]()
Offline