linking problem telldus-core sensors

Moderator: Telldus

Post Reply
erikd
Posts: 9
Joined: Fri Mar 17, 2023 9:45 am
Location: Nynäs

linking problem telldus-core sensors

Post by erikd »

I have problem linking (compiling?) a simple standard Telldus testprogram. I can compile/link the program on my RasberrryPI but not on my ASUS PC. What can the problem be?

This is what I get:

Code: Select all

erik@erik-1215N:~/Proj$ make
gcc -o sensor -Wall -ltelldus-core main.o
main.o: In function `main':
main.c:(.text+0xeb): undefined reference to `tdInit'
main.c:(.text+0x163): undefined reference to `tdSensorValue'
main.c:(.text+0x1f9): undefined reference to `tdSensorValue'
main.c:(.text+0x284): undefined reference to `tdSensor'
main.c:(.text+0x291): undefined reference to `tdClose'
collect2: error: ld returned 1 exit status
make: *** [all] Error 1
Usning the ld command after compile gives this:

Code: Select all

erik@erik-1215N:~/Proj$ ld -ltelldus-core main.o
ld: main.o: undefined reference to symbol '__stack_chk_fail@@GLIBC_2.4'
//lib/i386-linux-gnu/libc.so.6: error adding symbols: DSO missing from command line
main.c and Makfile are found here:
http://developer.telldus.com/browser#ex ... rs/polling

Tellduscore installation I have used:
http://developer.telldus.com/wiki/TellS ... tionUbuntu
in /etc/apt/sources.list I put
deb http://download.telldus.com/debian/ unstable main

Version of compiler and linker:

Code: Select all

erik@erik-1215N:~/Proj$ gcc –version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
erik@erik-1215N:~/Proj$ ld -version
GNU ld (GNU Binutils for Ubuntu) 2.24
PC-HW
Eeee PC 1215N ASUS
Post Reply