FS#40316 - [cwiid] build fails

Attached to Project: Community Packages
Opened by Joel Teichroeb (klusark) - Sunday, 11 May 2014, 21:19 GMT
Last edited by David Runge (dvzrv) - Tuesday, 05 December 2017, 10:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:


gcc -o wmgui main.o interface.o support.o -Wl,-O1,--sort-common,--as-needed,-z,relro-lbluetooth -lpthread -L../libcwiid -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype -lgthread-2.0 -pthread -lglib-2.0 -lm -lcwiid
/usr/bin/ld: warning: -z relro-lbluetooth ignored.
main.o: In function `main':
/build/cwiid/src/cwiid-svn_history/wmgui/main.c:240: undefined reference to `str2ba'
/build/cwiid/src/cwiid-svn_history/wmgui/main.c:252: undefined reference to `str2ba'
../libcwiid/libcwiid.so: undefined reference to `hci_close_dev'
../libcwiid/libcwiid.so: undefined reference to `hci_get_route'
../libcwiid/libcwiid.so: undefined reference to `hci_read_remote_name'
../libcwiid/libcwiid.so: undefined reference to `hci_inquiry'
../libcwiid/libcwiid.so: undefined reference to `hci_open_dev'
collect2: error: ld returned 1 exit status
/build/cwiid/src/cwiid-svn_history/common/include/app.mak:13: recipe for target 'wmgui' failed
make[1]: *** [wmgui] Error 1
make[1]: Leaving directory '/build/cwiid/src/cwiid-svn_history/wmgui'
Makefile:33: recipe for target 'wmgui' failed
make: *** [wmgui] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Steps to reproduce:
sudo extra-x86_64-build
This task depends upon

Closed by  David Runge (dvzrv)
Tuesday, 05 December 2017, 10:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  (Hopefully) fixed with cwiid 0.6.00+svn201-2
Comment by mattia (nTia89) - Thursday, 13 November 2014, 20:34 GMT
I confirm the bug, I get exactly the same error
Comment by Jelle van der Waa (jelly) - Monday, 28 March 2016, 10:17 GMT
Is there an more up to date alternative to this project? Last source code is from 2009...
Comment by Michael (MST) - Sunday, 10 September 2017, 12:43 GMT
It builds with this patch: https://github.com/ros-drivers/joystick_drivers/blob/6599634cfc6501581e06d94387e2aa71395bfa1e/cwiid/cwiid-201.patch

I also added options=(!makeflags) to avoid errors about missing y.tab.h:

In file included from uinput.c:44:0:
conf.h:56:10: fatal error: y.tab.h: No such file or directory
#include "y.tab.h"
^~~~~~~~~
Comment by David Runge (dvzrv) - Tuesday, 05 December 2017, 10:30 GMT

Loading...