LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-24-2010, 05:47 PM   #1
ratcateme
Member
 
Registered: Feb 2008
Distribution: CentOS 5.4
Posts: 59

Rep: Reputation: 15
building usbip on CentOS


I have been try for a while now to build this and I am not getting very far.
I have download the usbip-0.1.7.tar.gz from sourceforge.net
I then followed http://wiki.centos.org/HowTos/I_need_the_Kernel_Source to get a full kernel source.
then went to usbip-0.1.7/drivers/2.6.18 and issued the command

Code:
make KSOURCE=~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686
but it failed with:
Code:
/home/scott/usbip-0.1.7/drivers/2.6.18/stub_rx.c:377: error: redefinition of 'usb_endpoint_xfer_bulk'
include/linux/usb.h:496: error: previous definition of 'usb_endpoint_xfer_bulk' was here
/home/scott/usbip-0.1.7/drivers/2.6.18/stub_rx.c:383: error: redefinition of 'usb_endpoint_xfer_control'
include/linux/usb.h:508: error: previous definition of 'usb_endpoint_xfer_control' was here
/home/scott/usbip-0.1.7/drivers/2.6.18/stub_rx.c:389: error: redefinition of 'usb_endpoint_xfer_int'
include/linux/usb.h:521: error: previous definition of 'usb_endpoint_xfer_int' was here
/home/scott/usbip-0.1.7/drivers/2.6.18/stub_rx.c:395: error: redefinition of 'usb_endpoint_xfer_isoc'
include/linux/usb.h:534: error: previous definition of 'usb_endpoint_xfer_isoc' was here
make[2]: *** [/home/scott/usbip-0.1.7/drivers/2.6.18/stub_rx.o] Error 1
make[1]: *** [_module_/home/scott/usbip-0.1.7/drivers/2.6.18] Error 2
make[1]: Leaving directory `/home/scott/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686'
make: *** [default] Error 2
I have no clue where I have gone wrong I haven't compiled many things from source so I don't really know where to start looking for the problems.
Thanks Scott.
 
Old 04-26-2010, 08:13 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
The following worked ...
((A guess: 2.6.xx/ folders are for older than 2.6.18, head/ for 2.6.26 etc.)
( The head/ files works for 2.6.26.8 !)) So 2.6.18 will be a combination :

cd usbip-0.1.7/drivers/2.6.21/
tar xvf linux-2.6.18.tar.bz2
(you can also use the hcd.h hub.h, you have in your source.)

# cp linux-2.6.18/drivers/usb/core/{hcd.h,hub.h} \
/usr/src/kernels/2.6.18-128.1.14.el5-i686/drivers/usb/core/

mkdir backup && mv stub_rx.c backup/ && cp ../head/stub_rx.c .
..... where the last period ( . ) means the current directory.

mkdir headers
cp linux-2.6.18/drivers/usb/core/{hcd.h,hub.h} headers/

make KSOURCE=/usr/src/kernels/2.6.18-128.1.14.el5-i686/
And ... usbip_common_mod.ko , usbip.ko , vhci-hcd.ko are created.

( Replace "-128.1.14.el5-i686" with your actual version
of the installed package 'kernel-devel' ).
..
Good luck ! ..

P.S. : The latest source : usbip/linux/trunk .....
svn co https://usbip.svn.sourceforge.net/svnroot/usbip usbip
( Same procedure as in all the above. (headers/ folder can be omitted.))

PPS.: Updating usbip-0.1.7 to usbip-0.1.7-3 :
http://usbip.sourcearchive.com/downloads/0.1.7-3/
http://usbip.sourcearchive.com/downl....1.7-3.diff.gz
> usbip_0.1.7-3.diff.gz
cd usbip-0.1.7/ && patch -p1 < usbip_0.1.7-3.diff
.. And again, the same procedure.

Last edited by knudfl; 04-26-2010 at 12:32 PM.
 
  


Reply

Tags
centos


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on Building a Linux cluster with CentOS and Condor foottuns Linux - Enterprise 1 02-20-2010 07:14 PM
Errors building WINE 0.9.53 from source on CentOS x64 Micro420 Linux - Software 4 01-14-2008 12:15 PM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM
insmod: error inserting 'usbip.ko': -1 Invalid module format barunparichha Linux - Software 1 01-13-2007 08:51 PM
LXer: Building A Low-Cost LAMP Server For Your Webhosting Business With CentOS 4.3 LXer Syndicated Linux News 0 05-03-2006 02:54 PM


All times are GMT -5. The time now is 01:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration