[cups.bugs] [MOD] STR #3333: Error when compiling usb.c
Munir Nassar
nassarmu at msi.umn.edu
Tue Sep 15 10:05:55 PDT 2009
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
When compiling the backends the usb.c backend fails to compile due to a
conflicting types error. Tested on a SuSE Enterprise Desktop system with
gcc 4.3.2.
Error:
Compiling usb.c...
In file included from usb.c:63:
usb-unix.c:564: error: conflicting types for ‘side_cb’
usb-unix.c:39: 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
make: *** [usb.o] Error 1
Steps to reproduce:
unpack the source code
cd cups-1.4.1/backend
make
Steps to fix:
in backend/usb-unix.c line 563 where it says "static void" change it to
say "static int"
or use the attached patch file
Link: http://www.cups.org/str.php?L3333
Version: 1.4-current
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: backend.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20090915/7e975c82/attachment.ksh>
More information about the cups
mailing list