[sane-devel] Problem compiling scanbd (unkown type u_int8_t)

Wilhelm wilhelm.meier at fh-kl.de
Sun Feb 5 07:40:36 UTC 2012


Am 04.02.2012 20:34, schrieb Ruediger Meier:
> On Saturday 04 February 2012, Alexander Tomisch wrote:
>> Hello,
>>
>> I've tried to compile scanbd on Arch Linux ...
>>
>>
>> USE_SCANBUTTOND=yes make -e clean all
>>
>>
>> ... and got the following error:
>>
>> [...]
>>
>> cc -Wall -Wextra -std=c99 -g -DLinux -I../include -Dsyslog=slog
>> -DLOG_INFO=SLOG_INFO -DLOG_WARNING=SLOG_WARN
>> -DCFG_DIR=/usr/local/etc/scanbd/scanbuttond/backends -fPIC -shared -o
>> mustek.so mustek.c
>> In file included from ../include/scanbuttond/libusbi.h:22:0,
>>                    from mustek.c:27:
>> /usr/include/usb.h:81:2: Fehler: unbekannter Typname: »u_int8_t«
>>
>> [...]
>>
>> It seems that scanbd is compiling well but the old scanbuttond not -
>> and I did not found any useful information about this error.
>>
>>
>> Any hints?
>
> In mustek.c add
> #include<sys/types.h>
> before including libusbi.h

just updated the repo!

Would be happy if you could test it again.

>
> Maybe the libusb people should include that directly within usb.h.
> You could report the issue there.
>
> cu,
> Rudi
>


-- 
Wilhelm




More information about the sane-devel mailing list