http://myy.helia.fi/~karte/topfield_5100.htmlElikkäs tuon ohjeen mukaan olen yrittäny nyt kääntää puppya mutta ei vaan onnistu
Tälläistä pukkaa:
root@ubuntu:/home/mika/puppy_1.11# make
cc -std=gnu99 -Wall -W -Wshadow -Wstrict-prototypes -pedantic -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -c -o puppy.o puppy.c
In file included from puppy.c:34:
/usr/include/errno.h:36:24: error: bits/errno.h: No such file or directory
In file included from puppy.c:48:
usb_io.h:33:23: error: linux/usb.h: No such file or directory
In file included from puppy.c:48:
usb_io.h:137: warning: ‘struct usb_device_descriptor’ declared inside parameter list
usb_io.h:137: warning: its scope is only this definition or declaration, which is probably not what you want
usb_io.h:139: warning: ‘struct usb_config_descriptor’ declared inside parameter list
usb_io.h:141: warning: ‘struct usb_descriptor_header’ declared inside parameter list
usb_io.h:143: warning: ‘struct usb_device_descriptor’ declared inside parameter list
usb_io.h:144: warning: ‘struct usb_config_descriptor’ declared inside parameter list
puppy.c:69: warning: ‘struct usb_device_descriptor’ declared inside parameter list
puppy.c: In function ‘main’:
puppy.c:98: error: storage size of ‘devDesc’ isn’t known
puppy.c:245: error: ‘EINVAL’ undeclared (first use in this function)
puppy.c:245: error: (Each undeclared identifier is reported only once
puppy.c:245: error: for each function it appears in.)
puppy.c:98: warning: unused variable ‘devDesc’
puppy.c: In function ‘do_cmd_turbo’:
puppy.c:270: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_cmd_reset’:
puppy.c:306: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_cmd_ready’:
puppy.c:340: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_cancel’:
puppy.c:376: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_hdd_size’:
puppy.c:410: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_hdd_dir’:
puppy.c:452: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_hdd_file_put’:
puppy.c:519: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c:557: error: ‘ENODATA’ undeclared (first use in this function)
puppy.c: In function ‘do_hdd_file_get’:
puppy.c:694: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_hdd_del’:
puppy.c:829: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_hdd_rename’:
puppy.c:861: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: In function ‘do_hdd_mkdir’:
puppy.c:893: error: ‘EPROTO’ undeclared (first use in this function)
puppy.c: At top level:
puppy.c:1138: warning: ‘struct usb_device_descriptor’ declared inside parameter list
puppy.c:1139: error: conflicting types for ‘isToppy’
puppy.c:69: error: previous declaration of ‘isToppy’ was here
puppy.c: In function ‘isToppy’:
puppy.c:1140: error: dereferencing pointer to incomplete type
puppy.c:1140: error: dereferencing pointer to incomplete type
make: *** [puppy.o] Virhe 1
root@ubuntu:/home/mika/puppy_1.11#