Activity log for bug #1275306

Date Who What changed Old value New value Message
2014-02-01 19:37:39 Dylan Morrison bug added bug
2014-02-01 19:37:39 Dylan Morrison attachment added Patch to add #include <unistd.h> to all files that require it to compile correctly. https://bugs.launchpad.net/bugs/1275306/+attachment/3965600/+files/QtSixA-1.5.1-unistd-fix.patch
2014-02-01 19:54:27 Dylan Morrison summary qtsixad does not compile with g++-4.7 and newer unless includes to unistd.h are added to various files. Patch included. qtsixa does not compile with g++-4.7 and newer unless includes to unistd.h are added to various files. Patch included.
2014-02-01 19:54:49 Dylan Morrison description This is the result of trying to compile qtsixad 1.5.1 (the latest obtainable from SourceForge) on a g++-4.7 system: [...] g++ -O2 -Wall -Wl,-Bsymbolic-functions sixad-bin.cpp bluetooth.cpp shared.cpp textfile.cpp -o bins/sixad-bin `pkg-config --cflags --libs bluez` -lpthread -fpermissive sixad-bin.cpp: In function ‘int main(int, char**)’: sixad-bin.cpp:89:18: error: ‘close’ was not declared in this scope close(ctl); ^ sixad-bin.cpp:100:20: error: ‘sleep’ was not declared in this scope sleep(2); [...] And a number of repeat errors of the sort with read, execve, usleep, etc. From a quick google I was able to find that these require unistd.h to be included, which was not included in any of the files that needed it, which were entirely contained in the "sixad" directory of the source. I added it to all the files that need it, and have included a patch. As per the guidelines: Distro: Debian GNU/Linux jessie (testing) QT version: 4.8.5+git209-g718fae5+dfsg-1 PyQT version: 4.10.3+dfsg1-1 QtSixA log: Qt version: 4.8.6 PyQt version: 4.10.3 QtSixA version: 1.5.1 Will use 'sudo' for root actions This is the result of trying to compile qtsixa 1.5.1 (the latest obtainable from SourceForge) on a g++-4.7 system: [...] g++ -O2 -Wall -Wl,-Bsymbolic-functions sixad-bin.cpp bluetooth.cpp shared.cpp textfile.cpp -o bins/sixad-bin `pkg-config --cflags --libs bluez` -lpthread -fpermissive sixad-bin.cpp: In function ‘int main(int, char**)’: sixad-bin.cpp:89:18: error: ‘close’ was not declared in this scope          close(ctl);                   ^ sixad-bin.cpp:100:20: error: ‘sleep’ was not declared in this scope              sleep(2); [...] And a number of repeat errors of the sort with read, execve, usleep, etc. From a quick google I was able to find that these require unistd.h to be included, which was not included in any of the files that needed it, which were entirely contained in the "sixad" directory of the source. I added it to all the files that need it, and have included a patch. As per the guidelines: Distro: Debian GNU/Linux jessie (testing) QT version: 4.8.5+git209-g718fae5+dfsg-1 PyQT version: 4.10.3+dfsg1-1 QtSixA log: Qt version: 4.8.6 PyQt version: 4.10.3 QtSixA version: 1.5.1 Will use 'sudo' for root actions
2014-02-01 20:10:18 Dylan Morrison marked as duplicate 1036744