cups 1.4.1 under Solaris 10 5/09

Helge Blischke h.blischke at acm.org
Thu Oct 15 07:39:45 PDT 2009


Rainer Blaes wrote:

> Dear all,
> we tried to "make" cups 1.4.1 on our Sparc system running
> - Solaris 10 5/09 + gcc 3.4.6 + GNU make 3.81
> Unfortunately we got this error:
> .......
> .......
> .......
> Compiling usb.c...
> In file included from usb.c:63:
> usb-unix.c:569: error: conflicting types for 'side_cb'
> usb-unix.c:40: error: previous declaration of 'side_cb' was here
> usb-unix.c:569: error: conflicting types for 'side_cb'
> usb-unix.c:40: error: previous declaration of 'side_cb' was here
> usb-unix.c: In function `side_cb':
> usb-unix.c:582: warning: `return' with a value, in function returning void
> usb-unix.c:625: warning: `return' with a value, in function returning void
> usb.c: At top level:
> usb-unix.c:40: warning: 'side_cb' declared `static' but never defined
> usb-unix.c:569: warning: 'side_cb' defined but not used
> make[1]: *** [usb.o] Error 1
> make: *** [all] Error 1
> 
> Any way to correct this error?
> 
> THX, Rainer
Edit the usb-unix.c as follows:

in line 40 (I think), in the forward declaration of side_cb, change 
"static int" to "static void" and recompile.

Gook luck!

Helge

PS: you should file a STR on this issue.





More information about the cups mailing list