I just checked out psplink and when I go into /psplink/usbhostfs_pc I can't make it, and thus cannot use it I suppose.. What can I do to rectify this?
Code: Select all
jesusxp@jesusxp:~/psplink/usbhostfs_pc$ make
cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -c -o main.o main.c
main.c:19:17: error: usb.h: No such file or directory
main.c:97: error: syntax error before ‘*’ token
main.c:97: warning: type defaults to ‘int’ in declaration of ‘g_hDev’
main.c:97: warning: data definition has no type or storage class
main.c:207: error: syntax error before ‘*’ token
main.c: In function ‘euid_usb_bulk_write’:
main.c:214: warning: implicit declaration of function ‘usb_bulk_write’
main.c:214: error: ‘dev’ undeclared (first use in this function)
main.c:214: error: (Each undeclared identifier is reported only once
main.c:214: error: for each function it appears in.)
main.c:214: error: ‘ep’ undeclared (first use in this function)
main.c:214: error: ‘bytes’ undeclared (first use in this function)
main.c:214: error: ‘size’ undeclared (first use in this function)
main.c:214: error: ‘timeout’ undeclared (first use in this function)
main.c: At top level:
main.c:221: error: syntax error before ‘*’ token
main.c: In function ‘euid_usb_bulk_read’:
main.c:228: warning: implicit declaration of function ‘usb_bulk_read’
main.c:228: error: ‘dev’ undeclared (first use in this function)
main.c:228: error: ‘ep’ undeclared (first use in this function)
main.c:228: error: ‘bytes’ undeclared (first use in this function)
main.c:228: error: ‘size’ undeclared (first use in this function)
main.c:228: error: ‘timeout’ undeclared (first use in this function)
main.c: At top level:
main.c:235: error: syntax error before ‘*’ token
main.c:235: warning: ‘struct usb_bus’ declared inside parameter list
main.c:235: warning: its scope is only this definition or declaration, which is probably not what you want
main.c:236: warning: return type defaults to ‘int’
main.c: In function ‘open_device’:
main.c:243: error: dereferencing pointer to incomplete type
main.c:247: error: dereferencing pointer to incomplete type
main.c:247: error: dereferencing pointer to incomplete type
main.c:249: error: dereferencing pointer to incomplete type
main.c:250: error: dereferencing pointer to incomplete type
main.c:252: warning: implicit declaration of function ‘usb_open’
main.c:252: warning: assignment makes pointer from integer without a cast
main.c:256: warning: implicit declaration of function ‘usb_set_configuration’
main.c:259: warning: implicit declaration of function ‘usb_claim_interface’
main.c:264: warning: return from incompatible pointer type
main.c:268: warning: implicit declaration of function ‘usb_close’
main.c: At top level:
main.c:293: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c: In function ‘close_device’:
main.c:299: warning: implicit declaration of function ‘usb_release_interface’
main.c:300: warning: implicit declaration of function ‘usb_reset’
main.c: At top level:
main.c:840: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:851: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:895: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:969: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1063: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1130: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1185: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1216: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1281: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1328: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1383: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1438: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1493: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1645: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1693: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1776: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1827: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1939: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:2005: error: syntax error before ‘*’ token
main.c:2006: warning: return type defaults to ‘int’
main.c: In function ‘wait_for_device’:
main.c:2007: error: ‘usb_dev_handle’ undeclared (first use in this function)
main.c:2007: error: ‘hDev’ undeclared (first use in this function)
main.c:2011: warning: implicit declaration of function ‘usb_find_busses’
main.c:2012: warning: implicit declaration of function ‘usb_find_devices’
main.c:2014: warning: implicit declaration of function ‘usb_get_busses’
main.c:2014: warning: passing argument 1 of ‘open_device’ makes pointer from integer without a cast
main.c: In function ‘do_hostfs’:
main.c:2077: warning: passing argument 1 of ‘handle_hello’ from incompatible pointer type
main.c:2082: warning: passing argument 1 of ‘handle_open’ from incompatible pointer type
main.c:2087: warning: passing argument 1 of ‘handle_close’ from incompatible pointer type
main.c:2092: warning: passing argument 1 of ‘handle_write’ from incompatible pointer type
main.c:2097: warning: passing argument 1 of ‘handle_read’ from incompatible pointer type
main.c:2102: warning: passing argument 1 of ‘handle_lseek’ from incompatible pointer type
main.c:2107: warning: passing argument 1 of ‘handle_dopen’ from incompatible pointer type
main.c:2112: warning: passing argument 1 of ‘handle_dclose’ from incompatible pointer type
main.c:2117: warning: passing argument 1 of ‘handle_dread’ from incompatible pointer type
main.c:2122: warning: passing argument 1 of ‘handle_remove’ from incompatible pointer type
main.c:2127: warning: passing argument 1 of ‘handle_rmdir’ from incompatible pointer type
main.c:2132: warning: passing argument 1 of ‘handle_mkdir’ from incompatible pointer type
main.c:2137: warning: passing argument 1 of ‘handle_chdir’ from incompatible pointer type
main.c:2142: warning: passing argument 1 of ‘handle_rename’ from incompatible pointer type
main.c:2147: warning: passing argument 1 of ‘handle_getstat’ from incompatible pointer type
main.c:2152: warning: passing argument 1 of ‘handle_chstat’ from incompatible pointer type
main.c:2157: warning: passing argument 1 of ‘handle_ioctl’ from incompatible pointer type
main.c:2162: warning: passing argument 1 of ‘handle_devctl’ from incompatible pointer type
main.c: In function ‘start_hostfs’:
main.c:2316: warning: passing argument 1 of ‘close_device’ from incompatible pointer type
main.c: In function ‘exit_app’:
main.c:2461: warning: passing argument 1 of ‘close_device’ from incompatible pointer type
main.c: In function ‘main’:
main.c:3114: warning: implicit declaration of function ‘usb_init’
make: *** [main.o] Error 1