(06-02-2014, 03:12 PM)ferdyh Wrote:Normally the file receive.c should be located in:Code:ferdy@raspberrypi ~ $ gdb pilight-receive
...
Reading symbols from /usr/local/bin/pilight-receive...done.
...
Starting program: /usr/local/bin/pilight-receive -S 192.168.10.251 -P 5001
...
Program received signal SIGSEGV, Segmentation fault.
...
(gdb) backtrace
#0 0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
#1 0x00009238 in main (argc=<optimized out>, argv=0xbefff804)
at /home/ferdy/pilight/pilight/receive.c:152
(gdb) frame 0
#0 0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) frame 1
#1 0x00009238 in main (argc=<optimized out>, argv=0xbefff804)
at /home/ferdy/pilight/pilight/receive.c:152
152 if(strcmp(message, "accept client") == 0) {
(gdb)
Code:
/home/ferdy/pilight/
and not in
/home/ferdy/pilight/pilight/
Check the versions of pilight-receive in
Code:
/usr/local/bin/
/home/ferdy/pilight
/home/ferdy/pilight/pilight
I do propose to cleanup the directory structures in order to be in sync with the standard, do a retest and provide us with some feedback.
(08-11-2014, 10:37 PM)pallago Wrote: ...
Regarding the installation: I tried 2 different ways:
1) git clone --depth 5 -b master https://github.com/pilight/pilight.git
2) sudo apt-get install pilight=XXXXXXXXXX -y
both according to different how-to(s) / tutorials.
Moreover, I had to fix a libraray problem first by:
sudo service pilight stop
sudo ln -s /usr/local/lib/pilight/libpilight.so.5.0.17-gb1bb205 /usr/lib/libpilight.so
sudo ldconfig
sudo service pilight start
Any further ideas?
Pretty interessting that the issue is dragging on for month ...
The problem is to provide help on the base of limited information provided ....
Let's get started:
I never tried to mix both installation methods and libraries.
With the link you may mix up the pilight library from the development branch with the pilight software from the master branch.
(Yes there is a problem with that library, but there is a workaround for the time being.)
I would recommend to get back to the starting point.
Delete the library link and delete the complete pilight directory created in your /home/user directory.
Follow the steps for Manually Compiled Version
Use the software from the development branch.
If the missing library is reported, just compile all stuff again using the ./setup.sh script.