sixpair: many errors during make amd64 && sudo make install

Bug #362406 reported by Alex on 2009-04-16
4
Affects Status Importance Assigned to Milestone
SixA
Undecided
Daniel Holm

Bug Description

Many sixpair-related errors during make and make install. (Is sixpair still necessary? bluez-sixaxis has worked perfectly for me without going through the old sixpair / USB procedure.)

Ubuntu "Jaunty" 9.04 (Beta)
amd64 (Intel Core 2 Duo)

x@mbp:~/gsixaxis$ make amd64
cp ./bins/bluetoothd-service-input_amd64 bluetoothd-service-input
cp ./bins/hcid_amd64 hcid
gcc -o sixpair sixpair.c -lusb
sixpair.c:9:17: error: usb.h: No such file or directory
sixpair.c: In function ‘fatal’:
sixpair.c:17: warning: incompatible implicit declaration of built-in function ‘exit’
sixpair.c: At top level:
sixpair.c:19: error: expected ‘)’ before ‘*’ token
sixpair.c:30: error: expected ‘)’ before ‘*’ token
sixpair.c:44: warning: ‘struct usb_config_descriptor’ declared inside parameter list
sixpair.c:44: warning: its scope is only this definition or declaration, which is probably not what you want
sixpair.c:44: warning: ‘struct usb_device’ declared inside parameter list
sixpair.c: In function ‘process_device’:
sixpair.c:47: error: ‘usb_dev_handle’ undeclared (first use in this function)
sixpair.c:47: error: (Each undeclared identifier is reported only once
sixpair.c:47: error: for each function it appears in.)
sixpair.c:47: error: ‘devh’ undeclared (first use in this function)
sixpair.c:62: warning: incompatible implicit declaration of built-in function ‘exit’
sixpair.c:71: warning: incompatible implicit declaration of built-in function ‘exit’
sixpair.c: In function ‘main’:
sixpair.c:86: warning: initialization makes pointer from integer without a cast
sixpair.c:92: error: dereferencing pointer to incomplete type
sixpair.c:94: error: dereferencing pointer to incomplete type
sixpair.c:94: error: dereferencing pointer to incomplete type
sixpair.c:96: error: dereferencing pointer to incomplete type
sixpair.c:97: error: dereferencing pointer to incomplete type
sixpair.c:97: error: dereferencing pointer to incomplete type
sixpair.c:98: error: increment of pointer to unknown structure
sixpair.c:98: error: arithmetic on pointer to an incomplete type
sixpair.c:100: error: dereferencing pointer to incomplete type
sixpair.c:101: error: dereferencing pointer to incomplete type
sixpair.c:103: error: dereferencing pointer to incomplete type
sixpair.c:104: error: dereferencing pointer to incomplete type
sixpair.c:104: error: dereferencing pointer to incomplete type
sixpair.c:105: error: increment of pointer to unknown structure
sixpair.c:105: error: arithmetic on pointer to an incomplete type
sixpair.c:106: error: dereferencing pointer to incomplete type
sixpair.c:107: error: dereferencing pointer to incomplete type
sixpair.c:108: error: dereferencing pointer to incomplete type
sixpair.c:109: warning: passing argument 3 of ‘process_device’ from incompatible pointer type
sixpair.c:109: warning: passing argument 4 of ‘process_device’ from incompatible pointer type
make: *** [amd64] Error 1
x@mbp:~/gsixaxis$ sudo make install
[sudo] password for x:
install -d /usr/share/sixa
install -d /usr/share/sixa/fun
running install
running build
running install_data
copying icons/22x22/sixa.png -> /usr/share/icons/hicolor/22x22/apps
copying icons/24x24/sixa.png -> /usr/share/icons/hicolor/24x24/apps
copying icons/48x48/sixa.png -> /usr/share/icons/hicolor/48x48/apps
copying icons/64x64/sixa.png -> /usr/share/icons/hicolor/64x64/apps
copying icons/scalable/sixa.png -> /usr/share/icons/hicolor/scalable/apps
copying sixa.desktop -> /usr/share/applications
copying gui/gamepad-keyboard.png -> /usr/share/sixa
copying gui/listjs.py -> /usr/share/sixa
copying gui/sixa.xml -> /usr/share/sixa
copying gui/sixa.py -> /usr/share/sixa
copying gui/sixa-192.png -> /usr/share/sixa
copying gui/snake.py -> /usr/share/sixa/fun
copying gui/tetris_qt.py -> /usr/share/sixa/fun
copying gui/sixatray.py -> /usr/share/sixa
copying gui/setupguide.py -> /usr/share/sixa
copying gui/sixa-gui -> /usr/bin
running install_egg_info
Removing /usr/lib/python2.6/site-packages/sixa-0.1-py2.6.egg-info
Writing /usr/lib/python2.6/site-packages/sixa-0.1-py2.6.egg-info
install -d /etc/bluetooth
install -d /etc/hal/fdi/policy
install -d /etc/init.d
install -d /usr/bin
install -d /usr/lib/bluetooth
install -d /usr/sbin
install -d /usr/share/bluez-sixa
install -d /usr/share/bluez-sixa/icons
install -d /usr/share/bluez-sixa/profiles
cp input.service /etc/bluetooth
cp ./profiles/sixa.fdi /etc/hal/fdi/policy
cp bluetooth-six /etc/init.d
cp sixa /usr/bin
cp bluetoothd-service-input /usr/lib/bluetooth
cp hcid /usr/sbin
cp sixpair /usr/sbin
cp: cannot stat `sixpair': No such file or directory
make: *** [install] Error 1

falkTX (falk-t-j) wrote :

You need to install libusb-dev

sudo apt-get install libusb-dev

That fixes the problem
-----------------------------------------
The real problem should be not having a 'configure' file that checks dependencies

Daniel Holm (danielholm) wrote :

For future notice: install build-essential. It is a meta package for all needed build-from-source packages.
sudo apt-get install build-essential

Daniel Holm (danielholm) wrote :

Not a real bug.

Changed in gsixaxis:
assignee: nobody → Daniel Holm (danielholm)
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers