Hi,
I agree... I'm really sorry for the poorly defined problem description... You know how it goes when you are frustrated
Anyways, I have successfully installed telldus before, as mentioned in these threads:
http://www.telldus.se/forum/viewtopic.p ... ebsd#p1900
http://www.telldus.se/forum/viewtopic.p ... ebsd#p2821
Using the tarballs: 2.0.1 - 2.0.3 all gives me the following errors when compiling on a FreeBSD 8.1 system:
[ 82%] Built target telldus-core
[ 86%] Built target tdtool
[ 91%] Building C object rfcmd/CMakeFiles/find_telldus.dir/find_telldus.o
telldus-core-2.0.3/rfcmd/find_telldus.c: In function 'main':
telldus-core-2.0.3/rfcmd/find_telldus.c:22: error: 'EXIT_FAILURE' undeclared (first use in this function)
telldus-core-2.0.3/rfcmd/find_telldus.c:22: error: (Each undeclared identifier is reported only once
telldus-core-2.0.3/rfcmd/find_telldus.c:22: error: for each function it appears in.)
telldus-core-2.0.3/rfcmd/find_telldus.c:41: error: 'EXIT_SUCCESS' undeclared (first use in this function)
... this is actually a different error compared to what I got from trunk...
As far as I understood EXIT_FAILURE is defined as 1 and EXIT_SUCCESS as 0, so when replacing EXIT_FAILURE with 1 and EXIT_SUCCESS with 0, it actually compiles.
However, when running tdtool, I only get the following short error message:
"Turning on device 1, Lamp - TellStick not found", even though my device is clearly recognized by the system when plugging in the USB stick:
ugen1.2: <Telldus> at usbus1
In /etc/tellstick.conf I have set: deviceNode = "LIBUSB"
I actually went back and checked out revision 370, which was the version I used before, and then after replacing EXIT_FAILURE and EXIT_SUCCESS as mentioned above, it actually compiled and installed and WORKS (I can turn on/off lights with tdtool), so there's nothing wrong with the device and FreeBSD 8.1 at least... I really don't know the differences between the tarballs 2.0.1-2.0.3 and revision 370 from trunk, but something has clearly changed which breaks the FreeBSD compatibility...
Hope this is clearer
/Joakim