I couldn't compile on Fedora 2.6.25

Help
2008-09-06
2013-05-30
  • Kursat Guler

    Kursat Guler - 2008-09-06

    Hi,

    I am trying to install this package on Fedora 2.6.25 core. I am not good on linux but i am good for windows. I have enough knowledge to write a softehci driver on windows. But first i decided to try this package with two linux machine. I could compile usbip on Ubuntu before. But I couldnt run it. Then I installed Fedora9 but know there is some errors i couldnt understand why. I am sending the result below.  I need some help. Thanks.

    make -C /usr/src/kernels/2.6.25.14-108.fc9.i686/ LANG=C KBUILD_VERBOSE=1  M=`pwd` modules
    make[1]: Entering directory `/usr/src/kernels/2.6.25.14-108.fc9.i686'
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || (        \     echo;                                \     echo "  ERROR: Kernel configuration is invalid.";        \     echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";    \     echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \     echo;                                \     /bin/false)
    mkdir -p /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/.tmp_versions ; rm -f /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/.tmp_versions/*
    make -f scripts/Makefile.build obj=/home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25
      gcc -Wp,-MD,/home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/.stub_rx.o.d  -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.3.0/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os  -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i686 -mtune=generic -mtune=generic -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-generic -Iinclude/asm-x86/mach-default -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -Wdeclaration-after-statement -Wno-pointer-sign   -DHCD_HEADER=\"/usr/src/kernels/2.6.25.14-108.fc9.i686//drivers/usb/core/hcd.h\"  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(stub_rx)"  -D"KBUILD_MODNAME=KBUILD_STR(usbip)" -c -o /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.o /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.c
    /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.c:26:20: error: /usr/src/kernels/2.6.25.14-108.fc9.i686//drivers/usb/core/hcd.h: No such file or directory
    /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.c: In function 'is_reset_device_cmd':
    /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.c:71: error: 'USB_RT_PORT' undeclared (first use in this function)
    /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.c:71: error: (Each undeclared identifier is reported only once
    /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.c:71: error: for each function it appears in.)
    /home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.c:72: error: 'USB_PORT_FEAT_RESET' undeclared (first use in this function)
    make[2]: *** [/home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25/stub_rx.o] Error 1
    make[1]: *** [_module_/home/kursatg/usbip/usbip-0.1.6/drivers/2.6.25] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.25.14-108.fc9.i686'
    make: *** [default] Error 2

     
    • seen song

      seen song - 2008-11-27

      I can compile usb/ip on fedora 2.6.25. However, I can't insmod it. (Invalid module format)

      My step as follows,
      1, Install fedora9
      2, Get fedora9 source code as follow website, file name is kernel-2.6.25-14.fc9.src.rpm
      http://download.fedora.redhat.com/pub/fedora/linux/releases/9/Fedora/source/SRPMS/
      3, Setup source code rpm as follow website,
      http://samlin35.blogspot.com/2008/03/fedora-8-kernel-source.html
      4, Compile usbip driver
      4.1, [root@seenpc linux-2.6.25.i686]# pwd
      cd /usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686
      make oldconfig && make prepare
      4.2, [root@seenpc 2.6.25]# pwd
      /home/seen/usbip/usbip-0.1.6/drivers/2.6.25
      [root@seenpc 2.6.25]# make KSOURCE=/usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686
      5, Compile usbip tools
      5.1, [root@seenpc linux-2.6.25.i686]# pwd
      cd /usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686
      make modules_prepare
      5.2, Setup sysfsutils
      http://linux-diag.sourceforge.net/Sysfsutils.html
      5.3, [root@seenpc src]# pwd
      /home/seen/usbip/usbip-0.1.6/src
      [root@seenpc src]# ./autogen.sh
      [root@seenpc src]# ./configure
      [root@seenpc src]# make insatall

      6, [root@seenpc 2.6.25]# pwd
      /home/seen/usbip/usbip-0.1.6/drivers/2.6.25
      [root@seenpc 2.6.25]# insmod usbip_common_mod.ko
      insmod: error inserting 'usbip_common_mod.ko': -1 Invalid module format

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks