1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

lin_tape on SLES 11 does not build

Discussion in 'Tape / Media Library' started by RJNeilly, Oct 13, 2009.

  1. RJNeilly

    RJNeilly New Member

    Joined:
    Apr 14, 2008
    Messages:
    5
    Likes Received:
    0
    Hi,

    The latest lin_tape driver (1.27) does not build on SLES 11. It appears that the developers expect there to be a debug kernel installed as the following output from "rpmbuild --rebuild lin_tape-1.27...." shows:

    + make KERNEL=2.6.27.29-0.1-default PROC=x86_64 driver
    make -C /lib/modules/2.6.27.29-0.1-default/build SUBDIRS=/usr/src/packages/BUILD/lin_tape-1.27.0 PWD=/usr/src/packages/BUILD/lin_tape-1.27.0 clean
    make[1]: Entering directory `/usr/src/linux-2.6.27.29-0.1-obj/x86_64/default'
    make -C ../../../linux-2.6.27.29-0.1 O=/usr/src/linux-2.6.27.29-0.1-obj/x86_64/default/. clean
    make[1]: Leaving directory `/usr/src/linux-2.6.27.29-0.1-obj/x86_64/default'
    mkdir bldtmp
    make KERNEL=2.6.27.29-0.1-debug compileclean lin_tape.ko
    make[1]: Entering directory `/usr/src/packages/BUILD/lin_tape-1.27.0'
    export PWD
    make -C /lib/modules/2.6.27.29-0.1-debug/build SUBDIRS=/usr/src/packages/BUILD/lin_tape-1.27.0 PWD=/usr/src/packages/BUILD/lin_tape-1.27.0 modules
    make: Entering an unknown directory
    make: *** /lib/modules/2.6.27.29-0.1-debug/build: No such file or directory. Stop.
    make: Leaving an unknown directory
    make[1]: *** [lin_tape.ko] Error 2
    make[1]: Leaving directory `/usr/src/packages/BUILD/lin_tape-1.27.0'
    make: *** [bldtmp/lin_tape-2.6.27.29-0.1-debug.ko] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.79641 (%build)


    RPM build errors:
    user iot does not exist - using root
    user iot does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.79641 (%build)

    It should be using the directory "2.6.27.29-0.1-default" which it found and used earlier in the build process. But at the highlighted points it uses the -debug directory. But nothing exists in that directory. It looks to me like the devs hardcoded the -debug directory into the source rpm...

    Now I'm no programmer/developer so I could be way off base. No matter because the real point is that the lin_tape driver is not building on SLES 11 and I am rather dead in the water until this can be fixed.

    So anyone know how to get this resolved?

    Thanks,

    Ron

    PS uname -a produces : "2.6.27.29-0.1-default #1 SMP 2009-08-15 17:53:59 +0200 x86_64 x86_64 x86_64 GNU/Linux"
     
  2.  
  3. RJNeilly

    RJNeilly New Member

    Joined:
    Apr 14, 2008
    Messages:
    5
    Likes Received:
    0
    Fixed it. My server had almost all of the build environment needed - it was missing just one thing: kernel symbols. Installed those and the build ran just fine. Sigh. Sorry for the false alarm.

    Ron
     
: suse, lin_tape

Share This Page