mxcl/homebrew — Issue #8950: error compiling canon630u-common.c when installing sane-backends
Author: krunk4ever
Created: 2011-12-03 05:52:16+00:00
State: open

I'm getting an error when trying to install sane-backends:

> In file included from canon630u.c:67:
> canon630u-common.c: In function 'write_bulk':
> canon630u-common.c:240: error: 'u_long' undeclared (first use in this function)
> canon630u-common.c:240: error: (Each undeclared identifier is reported only once
> canon630u-common.c:240: error: for each function it appears in.)
> canon630u-common.c:240: error: expected ')' before 'count'
> canon630u-common.c: In function 'read_bulk':
> canon630u-common.c:262: error: 'u_long' undeclared (first use in this function)
> canon630u-common.c:262: error: expected ')' before 'count'
> canon630u-common.c: In function 'write_many':
> canon630u-common.c:303: error: 'u_long' undeclared (first use in this function)
> canon630u-common.c:303: error: expected ')' before 'count'
> canon630u-common.c: In function 'read_many':
> canon630u-common.c:327: error: 'u_long' undeclared (first use in this function)
> canon630u-common.c:327: error: expected ')' before 'count'
> make[2]: *** [libcanon630u_la-canon630u.lo] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1

Here's the output from brew install -v sane-backends:
https://gist.github.com/1426208

Output from brew doctor shows:
> Your system is raring to brew.

I'm not sure if this is related, but I do have a CanonScan LiDE100.