smatool - libm.so.6 compile problem on arch linux arm

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

smatool - libm.so.6 compile problem on arch linux arm

Postby kabads » Sat Sep 22, 2012 5:55 pm

I had the glibc problems when I first booted the OS, but got round that thanks to problems here [0].
I've installed base-devel and am trying to compile smatool [1].
However, I'm getting a problem with ld -

$this->bbcode_second_pass_code('', '[adam@alarmpi sma]$ gcc -lbluetooth -lcurl -lmysqlclient -g -o smatool smatool.c
/usr/bin/ld: /tmp/ccwVPUq0.o: undefined reference to symbol 'pow@@GLIBC_2.4'
/usr/bin/ld: note: 'pow@@GLIBC_2.4' is defined in DSO /usr/lib/libm.so.6 so try adding it to the linker command line
/usr/lib/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status')

Any tips appreciated.
Adam
[0] viewtopic.php?f=18&t=3775
[1] http://code.google.com/p/sma-bluetooth/ … stallation
kabads
 
Posts: 8
Joined: Sat Sep 22, 2012 5:52 pm

Re: smatool - libm.so.6 compile problem on arch linux arm

Postby karog » Sat Sep 22, 2012 6:03 pm

Did you try adding -lm to your gcc line? The messages tell you the missing symbol is in libm and advises you to add it.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: smatool - libm.so.6 compile problem on arch linux arm

Postby kabads » Sat Sep 22, 2012 6:10 pm

Thanks - that has moved the compile on further but now I'm getting heaps of other errors - I'm going to have to figure out a way of caputring them in a text file to post.
kabads
 
Posts: 8
Joined: Sat Sep 22, 2012 5:52 pm

Re: smatool - libm.so.6 compile problem on arch linux arm

Postby kabads » Sat Sep 22, 2012 7:18 pm

Now, I'm getting these errors while trying to compile - this looks like a whole lot of compile errors.

Any ideas? Has anyone compile smatool on arch linux arm before? There doesn't seem to be any documentation out there.

http://pastebin.com/WjXRf03R
kabads
 
Posts: 8
Joined: Sat Sep 22, 2012 5:52 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 54 guests