I am trying to compile gnokii 0.6.14 on a Sun Blade 100 with the latest stable Solaris 10 version. I am using GNU make 3.8 and gcc 3.4.3 and start the configure script with the following command:
./configure --prefix=/opt/gnokii
The info output at the end is the following:
Host system: solaris2.10 Gnokii version: 0.6.14 Xgnokii version: 20060127 X (GTK) support: yes Debug: yes XDebug: yes RLPDebug: yes
NLS: no IrDA: no ical read support: no Bluetooth: no libusb support: no Security: no Build Shared Lib: yes Build Static Lib: yes Win32: no Prefix: /opt/gnokii
Then start the building using:
gmake
But unfortunately the build stops with the following
error:
/bin/ksh ../../libtool --mode=compile gcc -g -O2 -Wall -I../../intl -I../../include -o dku2libusb.lo -c dku2libusb.c gcc -g -O2 -Wall -I../../intl -I../../include -c dku2libusb.c -fPIC -DPIC -o .libs/dku2libusb.o In file included from dku2libusb.c:37: ../../include/devices/dku2libusb.h:95: error: syntax error before "u_int8_t" ../../include/devices/dku2libusb.h:95: warning: no semicolon at end of struct or union ../../include/devices/dku2libusb.h:96: warning: type defaults to `int' in declaration of `bDescriptorType' ../../include/devices/dku2libusb.h:96: warning: data definition has no type or storage class ../../include/devices/dku2libusb.h:97: error: syntax error before "bDescriptorSubType" ../../include/devices/dku2libusb.h:97: warning: type defaults to `int' in declaration of `bDescriptorSubType' ../../include/devices/dku2libusb.h:97: warning: data definition has no type or storage
class ../../include/devices/dku2libusb.h:99: error: syntax error before "bMasterInterface0" ../../include/devices/dku2libusb.h:99: warning: type defaults to `int' in declaration of `bMasterInterface0' ../../include/devices/dku2libusb.h:99: warning: data definition has no type or storage class ../../include/devices/dku2libusb.h:100: error: syntax error before "bSlaveInterface0" ../../include/devices/dku2libusb.h:100: warning: type defaults to `int' in declaration of `bSlaveInterface0' ../../include/devices/dku2libusb.h:100: warning: data definition has no type or storage class ../../include/devices/dku2libusb.h:101: warning: empty declaration dku2libusb.c: In function `find_fbus_data_interface': dku2libusb.c:163: error: dereferencing pointer to incomplete type gmake[1]: *** [dku2libusb.lo] Error 1 gmake[1]: Leaving directory `/opt/source/gnokii-0.6.14/common/devices' gmake: *** [common/devices] Error
2
Does someone know what's the problem here ? Or can someone help ?