Does not compile in Debian SID

Bug #1036744 reported by Nanakos Chrysostomos on 2012-08-14
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
QtSixA
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'

Nanakos Chrysostomos (nanakos) wrote :
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

Distant Thunder (temptempor) wrote :

Ubuntu 12.10 is also affected.

Overlord (christopher-ullrich) wrote :

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

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.

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

falkTX (falk-t-j) wrote :

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

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 :-)

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

Duplicates of this bug

Other bug subscribers