Does not compile in Debian SID

Bug #1036744 reported by Nanakos Chrysostomos
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
QtSixA
Confirmed
Undecided
Unassigned

Bug Description

While trying to compile in Debian SID,

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:84:20: warning: taking address of temporary [-fpermissive]
sixad-bin.cpp:89:18: error: ‘close’ was not declared in this scope
sixad-bin.cpp:100:20: error: ‘sleep’ was not declared in this scope
sixad-bin.cpp:109:22: error: ‘close’ was not declared in this scope
sixad-bin.cpp:117:22: error: ‘close’ was not declared in this scope
sixad-bin.cpp:140:18: error: ‘close’ was not declared in this scope
sixad-bin.cpp:144:14: error: ‘close’ was not declared in this scope
bluetooth.cpp: In function ‘void do_connect(int, bdaddr_t*, bdaddr_t*, int)’:
bluetooth.cpp:104:30: error: ‘close’ was not declared in this scope
bluetooth.cpp:110:24: error: ‘dup2’ was not declared in this scope
bluetooth.cpp:111:22: error: ‘close’ was not declared in this scope
bluetooth.cpp: In function ‘int l2cap_listen(const bdaddr_t*, short unsigned int, int, int)’:
bluetooth.cpp:148:17: error: ‘close’ was not declared in this scope
bluetooth.cpp:162:17: error: ‘close’ was not declared in this scope
bluetooth.cpp: In function ‘void l2cap_accept(int, int, int, int, int)’:
bluetooth.cpp:195:26: error: ‘close’ was not declared in this scope
bluetooth.cpp:201:26: error: ‘close’ was not declared in this scope
bluetooth.cpp:221:26: error: ‘fork’ was not declared in this scope
bluetooth.cpp:228:32: error: ‘dup2’ was not declared in this scope
bluetooth.cpp:229:30: error: ‘close’ was not declared in this scope
bluetooth.cpp:242:57: error: ‘execve’ was not declared in this scope
bluetooth.cpp:254:26: error: ‘close’ was not declared in this scope
bluetooth.cpp: In function ‘int l2cap_connect(bdaddr_t*, bdaddr_t*, short unsigned int)’:
bluetooth.cpp:274:25: error: ‘close’ was not declared in this scope
bluetooth.cpp:291:25: error: ‘close’ was not declared in this scope
make[1]: *** [sixad_bins] Error 1
make[1]: Leaving directory `/home/nanakos/QtSixA-1.5.1/sixad'

Revision history for this message
Nanakos Chrysostomos (nanakos) wrote :
Revision history for this message
Isaac Smith (hunternet93) wrote :

I also had this issue, the patch fixed it for me. I had to apply the patch manually, the patch file didn't like me. :D

Revision history for this message
Distant Thunder (temptempor) wrote :

Ubuntu 12.10 is also affected.

Revision history for this message
Overlord (christopher-ullrich) wrote :

sorry, i'm new to this. how do you patch this manually?

Revision history for this message
Dylan Morrison (insidious) wrote :

Download the patch, copy it to the QtSixA source directory, then run
patch -Np1 -i compilation_sid.patch

that should find and patch the correct files.

-N means apply the patch forward, -p1 means strip the first directory (so that it's not trying to use the .orig/etc bits), and -i specifies an input file.

Revision history for this message
Justin Rowe (jusrowe23) wrote :

I'm really struggling with this on my raspberry pi I can't seem to find an answer anywhere in regards to running this patch for the above error.

Does anyone know how to apply the patch on an Rpi?

I'll be eternally grateful for a nudge in the right direction

Revision history for this message
falkTX (Old) (falk-t-j) wrote :

Just get the source from latest git and you should be fine
https://github.com/falkTX/qtsixa/

Revision history for this message
Justin Rowe (jusrowe23) wrote :

@falkTX YOU SIR ARE A LEGEND!!!!
I copied the files from the link and my PS3 controller is now connected to my RPi :-)

Thank you for your help I'm very very grateful :-)

Revision history for this message
Scorpion (scorpion2185) wrote :

The patch works on debian 9 so if someone can add it to the qtsixa.

Changed in qtsixa:
status: New → Confirmed
Revision history for this message
Scorpion (scorpion2185) wrote :

make install-system
make: *** No rule to make target 'install-system'. Stop.
But I do not know what do make install-system usually you only use make and make install.
The apt starts.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.