Author Topic: <solved> need help for packaging audacious  (Read 692 times)

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
<solved> need help for packaging audacious
« on: August 08, 2012, 02:43:38 PM »
Hi friends,

i'm working on an update for audacious. but i have a bit trouble with the plugins package.

i got the following error

Quote
/usr/lib/sidplay/builders/libresid-builder.a(sid.o): In function `SID::set_sampling_parameters(double, sampling_method, double, double, double)':
sid.cc:(.text+0xd02): undefined reference to `log10'
sid.cc:(.text+0xe23): undefined reference to `log'
sid.cc:(.text+0xe3c): undefined reference to `log'
sid.cc:(.text+0x1088): undefined reference to `sin'
sid.cc:(.text+0x1134): undefined reference to `sqrt'
collect2: ld gab 1 als Ende-Status zurück
Failed to link sid.so!
make[5]: *** [sid.so] Fehler 1
make[4]: *** [all] Fehler 2
make[3]: *** [subdirs] Fehler 2
make[2]: *** [all] Fehler 2
make[1]: *** [subdirs] Fehler 2
make: *** [all] Fehler 2
Fehler: Fehler-Status beim Beenden von /home/ghostbunny/RPM/tmp/rpm-tmp.EIlNAW (%build)


Fehler beim Bauen des RPM:
    Fehler-Status beim Beenden von /home/ghostbunny/RPM/tmp/rpm-tmp.EIlNAW (%build)


if i use the %configure and %configure2_5x macros i get this above.

if i use just ./configure it build without error but it is highly overlinked

does someone know a solution?

regards
ghostbunny
« Last Edit: August 13, 2012, 03:42:38 PM by ghostbunny »
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3791
Re: need help for packaging audacious
« Reply #1 on: August 08, 2012, 06:40:45 PM »
I would look at the contents of %configure and %configure2_5x and try to figure out which argument causes the failure, then over ride it in the spec file.

Quote
[galen@localhost ~]$ rpm --eval %configure
  CFLAGS="${CFLAGS:--O2  -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export CFLAGS ;
  CXXFLAGS="${CXXFLAGS:--O2  -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
  FFLAGS="${FFLAGS:--O2  -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export FFLAGS ;
  LDFLAGS="$LDFLAGS -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id"; export LDFLAGS ;
  CONFIGURE_TOP="${CONFIGURE_TOP:-.}";
  /usr/lib/rpm/rambo/force-as-needed-for-shared-lib-in-libtool ;
  /usr/lib/rpm/rambo/drop-ld-no-undefined-for-shared-lib-modules-in-libtool ;
  /usr/lib/rpm/rambo/fix-libtool-ltmain-from-overlinking ;
  /usr/lib/rpm/rambo/fix-libtool-from-moving-options-after-libs $CONFIGURE_TOP ;
  /usr/lib/rpm/rambo/fix-dlsearch-path-in-libtool-for-multilib $CONFIGURE_TOP lib ;
  (cd $CONFIGURE_TOP; [ ! -f configure.in -a ! -f configure.ac ] || libtoolize --copy --force);
  [ -f $CONFIGURE_TOP/configure.in -o -f $CONFIGURE_TOP/configure.ac ] &&
  CONFIGURE_XPATH="--x-includes=/usr/include --x-libraries=/usr/lib"
  $CONFIGURE_TOP/configure i586-mandriva-linux-gnu \
   --program-prefix= \
    --prefix=/usr \
   --exec-prefix=/usr \
   --bindir=/usr/bin \
   --sbindir=/usr/sbin \
   --sysconfdir=/etc \
   --datadir=/usr/share \
   --includedir=/usr/include \
   --libdir=/usr/lib \
   --libexecdir=/usr/lib \
   --localstatedir=/var \
   --sharedstatedir=/usr/com \
   --mandir=/usr/share/man \
   --infodir=/usr/share/info \
    $CONFIGURE_XPATH

Quote
[galen@localhost ~]$ rpm --eval %configure2_5x
  CFLAGS="${CFLAGS:--O2  -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export CFLAGS ;
  CXXFLAGS="${CXXFLAGS:--O2  -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
  FFLAGS="${FFLAGS:--O2  -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export FFLAGS ;
  LDFLAGS="$LDFLAGS -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id"; export LDFLAGS ;
  CONFIGURE_TOP="${CONFIGURE_TOP:-.}";
  /usr/lib/rpm/rambo/force-as-needed-for-shared-lib-in-libtool ;
  /usr/lib/rpm/rambo/drop-ld-no-undefined-for-shared-lib-modules-in-libtool ;
  /usr/lib/rpm/rambo/fix-libtool-ltmain-from-overlinking ;
  /usr/lib/rpm/rambo/fix-libtool-from-moving-options-after-libs $CONFIGURE_TOP ;
  /usr/lib/rpm/rambo/fix-dlsearch-path-in-libtool-for-multilib $CONFIGURE_TOP lib ;
   
  [ -f $CONFIGURE_TOP/configure.in -o -f $CONFIGURE_TOP/configure.ac ] &&
  CONFIGURE_XPATH="--x-includes=/usr/include --x-libraries=/usr/lib"
  $CONFIGURE_TOP/configure --build=i586-mandriva-linux-gnu \
    --prefix=/usr \
   --exec-prefix=/usr \
   --bindir=/usr/bin \
   --sbindir=/usr/sbin \
   --sysconfdir=/etc \
   --datadir=/usr/share \
   --includedir=/usr/include \
   --libdir=/usr/lib \
   --libexecdir=/usr/lib \
   --localstatedir=/var \
   --sharedstatedir=/usr/com \
   --mandir=/usr/share/man \
   --infodir=/usr/share/info \
    $CONFIGURE_XPATH
[galen@localhost ~]$

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
Re: need help for packaging audacious
« Reply #2 on: August 09, 2012, 01:15:48 AM »
seems like the LDFLAGS are the problem but without them i got also the high overlinking (see file)

http://dl.dropbox.com/u/53507975/overlinked
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3791
Re: need help for packaging audacious
« Reply #3 on: August 09, 2012, 01:58:17 AM »
seems like the LDFLAGS are the problem but without them i got also the high overlinking (see file)

http://dl.dropbox.com/u/53507975/overlinked


Wow! That's a lot of overlinking! :) I did a little searching but didn't find an answer yet. But after looking closer to your post, it appears that it is not finding some type of basic math -devel file.
Code: [Select]
sid.cc:(.text+0xd02): undefined reference to `log10'
sid.cc:(.text+0xe23): undefined reference to `log'
sid.cc:(.text+0xe3c): undefined reference to `log'
sid.cc:(.text+0x1088): undefined reference to `sin'
sid.cc:(.text+0x1134): undefined reference to `sqrt'

Galen

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
Re: need help for packaging audacious
« Reply #4 on: August 09, 2012, 02:07:35 AM »
maybe but which lib provides them?
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3791
Re: need help for packaging audacious
« Reply #5 on: August 09, 2012, 02:47:42 AM »
It's a long shot, but I would try this:
Quote
lib64commoncpp-devel
A GNU package for creating portable C++ program
Common C++ is a GNU package which offers portable "abstraction" of system
services such as threads, networks, and sockets. Common C++ also offers
individual frameworks generally useful to developing portable C++ applications
including a object persistance engine, math libraries, threading, sockets, etc.

I also found this:
Quote
lib64cln-devel
C++ Class Library for Numbers
A GPLed collection of C++ math classes and functions, that will bring
efficiency, type safety, algebraic syntax to everyone in a memory
and speed efficient library.
« Last Edit: August 09, 2012, 02:53:10 AM by gseaman »

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
Re: need help for packaging audacious
« Reply #6 on: August 12, 2012, 11:37:03 AM »
sorry for the delay but both packages don't help
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3791
Re: need help for packaging audacious
« Reply #7 on: August 12, 2012, 04:21:20 PM »
sorry for the delay but both packages don't help

I am not surprised. It was a long-shot. I would google the error and see if anyone else has run into the same problem on another distro.

Galen

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
Re: need help for packaging audacious
« Reply #8 on: August 13, 2012, 01:27:36 AM »
OK solved via

Code: [Select]
export LDFLAGS="$LDFLAGS -lm"

this causes only overlinking against libpthread and libm and no more against the half repo ;D

hope this is ok
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2115
Re: <solved> need help for packaging audacious
« Reply #9 on: August 14, 2012, 02:05:00 PM »
Running fine on my 64-bit  install now  :)
Playing now for almost 8 hours  nonstop without a issue!

thx  ghostbunny!

JohnW
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
Re: <solved> need help for packaging audacious
« Reply #10 on: August 14, 2012, 03:28:26 PM »
Nice to hear John,

i'm also thinking about changing to audacious, it impressed me but i also like deadbeef ;D mh we have to many music players in the repo lol
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD