LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   aubio compiling fails : /lib/libm.so.6... (http://www.linuxquestions.org/questions/slackware-14/aubio-compiling-fails-lib-libm-so-6-a-945901/)

Shininggg 05-19-2012 11:03 AM

aubio compiling fails : /lib/libm.so.6...
 
Hi i'm trying to compile latest aubio to test Ardour 3 on my new Slackware current machine

i get this

gcc -DAUBIO_PREFIX=\"/usr/local\" -I../src -I../ext -Wall -Wextra -I/usr/local/include -fPIC -o .libs/aubioonset aubioonset.o utils.o -L/usr/local/src/aubio-0.3.2/src -L/usr/local/src/aubio-0.3.2/ext /usr/local/src/aubio-0.3.2/ext/.libs/libaubioext.so /usr/local/src/aubio-0.3.2/src/.libs/libaubio.so -L/usr/lib/ /usr/lib/libjack.so -lrt -lpthread
/usr/lib/gcc/i486-slackware-linux/4.7.0/../../../../i486-slackware-linux/bin/ld: utils.o: undefined reference to symbol 'floor@@GLIBC_2.0'
/usr/lib/gcc/i486-slackware-linux/4.7.0/../../../../i486-slackware-linux/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [aubioonset] Error 1
make[2]: Leaving directory `/usr/local/src/aubio-0.3.2/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/aubio-0.3.2/examples'
make: *** [all-recursive] Error 1

thanks all

brianL 05-20-2012 06:49 AM

There's a SlackBuild for aubio-0.3.2, it's for 13.37, so I'm not sure if it would be OK for current. But you could try it.
http://slackbuilds.org/repository/13...braries/aubio/

Shininggg 05-20-2012 07:47 AM

I tried the slackbuild for 13.37 and i get the same error. I also tried reverting back 0.3.1 and i get the same thing. Googling around, people people are talking about linker issue and stuff i don't really understand.

brianL 05-20-2012 07:49 AM

Press the Report button and ask for this thread to be moved to the Slackware forum, possibly get more help there.

x360539 06-14-2012 12:26 PM

Did anyone ever get a solution to this problem. I'm in the same boat.

ponce 06-14-2012 12:43 PM

Quote:

Originally Posted by Shininggg (Post 4682693)
/usr/lib/gcc/i486-slackware-linux/4.7.0/../../../../i486-slackware-linux/bin/ld: utils.o: undefined reference to symbol 'floor@@GLIBC_2.0'
/usr/lib/gcc/i486-slackware-linux/4.7.0/../../../../i486-slackware-linux/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line

luckily gcc-4.7 is very eloquent :)

add a line
Code:

LDFLAGS="-lm" \
to the configure block of the slackbuild, like
Code:

LDFLAGS="-lm" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \


x360539 06-14-2012 01:01 PM

Thanks so much! That did the trick!


All times are GMT -5. The time now is 03:16 PM.