Modify

Opened 5 years ago

Last modified 4 years ago

#12889 new defect

[usbip] broken and won't compile

Reported by: comchris Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: usbip Cc:

Description

First of all - big thanks for all the effort devs!

It seems that the usbip userland part is broken again... ([32817] (changeset) [34613] (changeset))

In 12.9rc1 snapshot the kmods and daemon/userland tools are available, they seem to work fine, but as soon as I connect from a client to use an TP-link 3020 (ar71xx) as usb ip server I get a "version mismatch":

root@TP1:~# usbipd -d
usbipd: info: starting usbipd (usbip-utils 1.1.1)
usbipd: info: listening on 0.0.0.0:3240
usbipd: debug: usbipd.c:394:[listen_all_addrinfo] listening on 1 address
usbipd: info: connection from 192.168.10.118:49302
usbip: debug: usbip_network.c:149:[usbip_net_recv_op_common] version mismatch: 262 273
usbipd: debug: usbipd.c:230:[recv_pdu] could not receive opcode: 0

In trunk snapshot (25.Nov.2012) the package is gone or missing, the kmods are there. I set up a mint buildroot with current trunk [35318] (changeset) - kmods compile fine, but the userland package gave me:

OpenWrt-libtool: link: mips-openwrt-linux-uclibc-gcc -Wall -Werror -Wextra -std=gnu99 -I/home/comchris/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/glib-2.0 -I/home/comchris/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/glib-2.0/include -Wno-implicit-function-declaration -o .libs/usbipd usbipd.o usbip_network.o  -L/home/comchris/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/comchris/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/comchris/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/comchris/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib -L/home/comchris/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libiconv-stub/lib -L/home/comchris/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-stub/lib ../libsrc/.libs/libusbip.so -lglib-2.0 -lwrap -lsysfs
make[6]: Leaving directory `/home/comchris/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/usbip-1.1.1/src'
make[6]: Entering directory `/home/comchris/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/usbip-1.1.1'
make[6]: *** No rule to make target `doc/usbip_bind_driver.8', needed by `all-am'.  Stop.
make[6]: Leaving directory `/home/comchris/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/usbip-1.1.1'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/comchris/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/usbip-1.1.1'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/comchris/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/usbip-1.1.1'
make[3]: *** [/home/comchris/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/usbip-1.1.1/.built] Error 2
make[3]: Leaving directory `/home/comchris/openwrt/trunk/feeds/packages/net/usbip'
make[2]: *** [package/feeds/packages/usbip/compile] Error 2
make[2]: Leaving directory `/home/comchris/openwrt/trunk'
make[1]: *** [/home/comchris/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/comchris/openwrt/trunk'
make: *** [world] Error 2

So I checked out [34413] (changeset)(still with 3.3.8) and it compiled just fine... but flashed it produces the same error as above.

Any advise how to get usbip running would be very much appreciated!!!

best regards

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by duvi

Try to run this in this in directory build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/usbip-1.1.1

sed -i 's/usbip_bind_driver.8//' Makefile.am

then recompile usbip.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.