Results 1 to 6 of 6

Thread: Having troubles with compiling and using cloop.o

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    6

    Having troubles with compiling and using cloop.o

    It seems to compile fine with a few warnings for create_* and extract_* (cc wants to see endian.h instead of byteorder.h).
    when I do an insmod -p cloop, I get:
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol kunmap_high
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol filp_open
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol register_disk
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol blk_queue_bounce
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol register_blkdev
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol blk_queue_make_request
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol filp_close
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol do_generic_file_read
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol highmem_start_page
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol ntohl
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol blk_dev
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol fput
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol fget
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol kmap_high
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol irq_stat

    This is being compiled on Fedora Core 1

    Any ideas?

  2. #2
    Junior Member
    Join Date
    Mar 2004
    Posts
    6
    bump

  3. #3
    Junior Member registered user
    Join Date
    Apr 2004
    Location
    Sunny Miami
    Posts
    10

    Re: Having troubles with compiling and using cloop.o

    I too had this problem - is there a proper doc for compiling this outside of gentoo or dbeian or whatever it was originally written for -

    c'mon guys ... all your hard work should be free ... right?

    (Actually I'm working on a bootable educational cd that is going to be apppliance ware - so I would like to get cloop working.)

    The original errors I had was that it was looking for conf.vars in the linux source tree, somthing that seems to be non-standard. I touched the conf.vars file, but hen found some doc on the net that showed that it looks like conf.vars & .config are the same thing - not sure. Copied .config to conf.vars and the thing seemed to compile, oh and there was a problem with another file, but being an idiot I cannot remember the file name, but I touched it as well - so the thing finally compiles and when insmod'ing the thing I got the same errors.

    Quote Originally Posted by ghstridr
    It seems to compile fine with a few warnings for create_* and extract_* (cc wants to see endian.h instead of byteorder.h).
    when I do an insmod -p cloop, I get:
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol kunmap_high
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol filp_open
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol register_disk
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol blk_queue_bounce
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol register_blkdev
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol blk_queue_make_request
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol filp_close
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol do_generic_file_read
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol highmem_start_page
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol ntohl
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol blk_dev
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol fput
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol fget
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol kmap_high
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/block/cloop.o: unresolved symbol irq_stat

    This is being compiled on Fedora Core 1

    Any ideas?

  4. #4
    Junior Member
    Join Date
    Apr 2004
    Posts
    5
    great

    me too, i have an cloop: uresolved symbol ntohl error (not the rest)

    i tried to pack my own kernel with knoppix, but after the boot, i get dropped in a shell, because knoppix wasn't able to load cloop.o i guess

    if anyone finds a solution, please post

  5. #5
    Junior Member
    Join Date
    May 2004
    Posts
    1

    Having troubles with compiling and using cloop.o

    Hi all,
    I've just been throught the problems discussed here (unknown
    symbol: ntohl) and the fix seems to be adding -O2 to the compiler
    flags in Makefile:line12 :-

    CKERNOPS:= -O2 -D__KERNEL__ -DMODULE -fno-builtin -nostdlib -DKBUILD_MODNAME="cloop" -DKBUILD_BASENAME="cloop"

    For those on non-Debian systems who lack conf.vars, run
    "make menuconfig" in the kernel source tree and copy the
    resultant .conf to conf.vars.

    This prodices an error free cloop module on a 2.4.26 system
    built from the LFS project with gcc-3.3.3.

    Whether it actually works remains to be seen

    ttfn
    skywhale

  6. #6
    Member registered user
    Join Date
    Jul 2003
    Posts
    48

    unknown symbol in module

    very probably the reason is a mistmatch between cloop and insmod
    not compiled with the same kernel_version
    To be sure you should do this before compiling cloop
    mv /usr/include/linux /usr/include/linux_old
    ln -s /usr/src/linux/include/linux /usr/include/linux
    and make sure that /usr/src/linux pointing to your kernel you are using ,for example
    ln -s /usr/src/linux-2.6.5 /usr/src/linux
    compile cloop then,and try insmod cloop.o
    hth

Similar Threads

  1. Replies: 1
    Last Post: 04-12-2005, 12:12 AM
  2. compiling cloop on fedora core 2
    By scottsavarese in forum Customising & Remastering
    Replies: 2
    Last Post: 12-09-2004, 05:48 PM
  3. problems compiling cloop with kernel 2.6.7
    By covici in forum Customising & Remastering
    Replies: 1
    Last Post: 07-21-2004, 05:58 PM
  4. Error compiling cloop module
    By dafne in forum Customising & Remastering
    Replies: 0
    Last Post: 02-13-2004, 02:19 PM
  5. compiling cloop
    By pr0gm4 in forum Customising & Remastering
    Replies: 0
    Last Post: 08-27-2003, 02:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$202.50



Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11 picture

Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11

$62.55



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



LOT 7x Hynix 32gb PC4-2400T 2Rx4 DDR4 ECC RDIMM Memory HMA84GR7AFR4N-UH - PARTS picture

LOT 7x Hynix 32gb PC4-2400T 2Rx4 DDR4 ECC RDIMM Memory HMA84GR7AFR4N-UH - PARTS

$840.00



(8) Micron 32GB DDR4 ECC RDIMM PC4-2933Y Server Memory MTA36ASF4G72PZ *TESTED* picture

(8) Micron 32GB DDR4 ECC RDIMM PC4-2933Y Server Memory MTA36ASF4G72PZ *TESTED*

$1599.00



Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM  M393A4K40CB2-CTD6Q picture

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q

$169.00



MICRON MTA36ASF4G72PZ-2G6D1 32GB PC4-21300R DDR4-2666V RDIMM 2RX4 MEMORY DIMM picture

MICRON MTA36ASF4G72PZ-2G6D1 32GB PC4-21300R DDR4-2666V RDIMM 2RX4 MEMORY DIMM

$139.99



Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick picture

Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick

$289.80