Tengo el siguiente problema, en la ultima versión 4.2 de retropie no consigo instalar el driver de ps3, para poder usar mi control alternativo shanwan por bluetooth.
En versiones anteriores como retropie 4.1 no tuve ningún drama.
el "RetroPie-Setip Script" esta actualizado a la 4.2.7
Dejo todos los pasos que e seguido junto con el log del error






Log started at: Mon 12 Jun 23:07:08 UTC 2017
= = = = = = = = = = = = = = = = = = = = =
Installing dependencies for 'ps3controller' : PS3 controller driver and pair via sixad
= = = = = = = = = = = = = = = = = = = = =
/home/pi/RetroPie-Setup/tmp/build/ps3controller /home/pi
= = = = = = = = = = = = = = = = = = = = =
Getting sources for 'ps3controller' : PS3 controller driver and pair via sixad
= = = = = = = = = = = = = = = = = = = = =
git clone --recursive --depth 1 "https://github.com/RetroPie/sixad.git" "/home/pi/RetroPie-Setup/tmp/build/ps3controller/sixad"
Cloning into '/home/pi/RetroPie-Setup/tmp/build/ps3controller/sixad'...
/home/pi
/home/pi/RetroPie-Setup/tmp/build/ps3controller /home/pi
= = = = = = = = = = = = = = = = = = = = =
Building 'ps3controller' : PS3 controller driver and pair via sixad
= = = = = = = = = = = = = = = = = = = = =
rm -f *~ bins/*
mkdir -p bins
mkdir -p bins
g++ -O2 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 -O2 -Wall -DSHORT_NAME -Wl,-Bsymbolic-functions sixad-bin.cpp bluetooth.cpp shared.cpp textfile.cpp -o bins/sixad-bin `pkg-config --cflags --libs bluez` -lpthread -fpermissive
cc -O2 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -Wl,-Bsymbolic-functions sixpair.c -o bins/sixpair `pkg-config --cflags --libs libusb`
In file included from /usr/include/string.h:25:0,
from sixpair.c:30:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
# include <sys/cdefs.h>
^
compilation terminated.
In file included from /usr/include/stdio.h:27:0,
from /usr/include/bluetooth/bluetooth.h:33,
from bluetooth.h:21,
from sixad-bin.cpp:18:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
# include <sys/cdefs.h>
^
compilation terminated.
Makefile:26: recipe for target 'sixpair_bin' failed
make: *** [sixpair_bin] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/stdio.h:27:0,
from /usr/include/bluetooth/bluetooth.h:33,
from bluetooth.h:21,
from bluetooth.cpp:18:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
# include <sys/cdefs.h>
^
compilation terminated.
In file included from /usr/include/unistd.h:25:0,
from shared.h:21,
from shared.cpp:18:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
# include <sys/cdefs.h>
^
compilation terminated.
In file included from /usr/include/arm-linux-gnueabihf/c++/4.9/bits/os_defines.h:39:0,
from /usr/include/arm-linux-gnueabihf/c++/4.9/bits/c++config.h:430,
from /usr/include/c++/4.9/cstdlib:41,
from textfile.h:21,
from textfile.cpp:18:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
# include <sys/cdefs.h>
^
compilation terminated.
Makefile:18: recipe for target 'sixad_bins' failed
make: *** [sixad_bins] Error 1
/home/pi
Could not successfully build ps3controller - PS3 controller driver and pair via sixad (/home/pi/RetroPie-Setup/tmp/build/ps3controller/sixad/bins/sixad-bin not found).
Log ended at: Mon 12 Jun 23:07:13 UTC 2017
Total running time: 0 hours, 0 mins, 5 secs