Results 1 to 3 of 3

Thread: compiling cloop on fedora core 2

  1. #1

    compiling cloop on fedora core 2

    I am using fedora core 2 and I have tried to compile cloop version 2.01-5. However the default tarball gives me the following errors:
    [root@skibum cloop-2.01]# make
    ( make -C advancecomp-1.9_create_compressed_fs advfs )
    make[1]: Entering directory `/home/savarese/cloop-2.01/advancecomp-1.9_create_co
    mpressed_fs'
    g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -DUSE_ERROR_SILENT -DUSE_COMPRESS -c
    -o advfs.o `test -f 'advfs.cc' || echo './'`advfs.cc
    In file included from advfs.cc:24:
    /usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header;
    include <endian.h> instead!
    In file included from advfs.cc:33:
    /usr/include/netinet/in.h:262: error: syntax error before `)' token
    /usr/include/netinet/in.h:262: error: syntax error before `?' token
    /usr/include/netinet/in.h:262: error: syntax error before `)' token
    /usr/include/netinet/in.h:263: error: syntax error before `)' token
    /usr/include/netinet/in.h:263: error: syntax error before `?' token
    /usr/include/netinet/in.h:263: error: syntax error before `)' token
    /usr/include/netinet/in.h:265: error: syntax error before `)' token
    /usr/include/netinet/in.h:265: error: syntax error before `?' token
    /usr/include/netinet/in.h:265: error: syntax error before `)' token
    /usr/include/netinet/in.h:267: error: syntax error before `)' token
    /usr/include/netinet/in.h:267: error: syntax error before `?' token
    /usr/include/netinet/in.h:267: error: syntax error before `)' token
    In file included from advfs.cc:33:
    /usr/include/netinet/in.h:387: error: syntax error before `}' token
    make[1]: *** [advfs.o] Error 1
    make[1]: Leaving directory `/home/savarese/cloop-2.01/advancecomp-1.9_create_com
    pressed_fs'
    make: *** [advancecomp-1.9_create_compressed_fs/advfs] Error 2

    When I remove the byteorder include from advfs.cc and replace it with endian.h, I get this error:

    [root@skibum cloop-2.01]# make
    ( make -C advancecomp-1.9_create_compressed_fs advfs )
    make[1]: Entering directory `/home/savarese/cloop-2.01/advancecomp-1.9_create_compressed_fs'
    g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -DUSE_ERROR_SILENT -DUSE_COMPRESS -c -o advfs.o `test -f 'advfs.cc' || echo './'`advfs.cc
    advfs.cc: In function `int main(int, char**)':
    advfs.cc:245: error: `__cpu_to_be64' undeclared (first use this function)
    advfs.cc:245: error: (Each undeclared identifier is reported only once for each
    function it appears in.)
    make[1]: *** [advfs.o] Error 1
    make[1]: Leaving directory `/home/savarese/cloop-2.01/advancecomp-1.9_create_compressed_fs'
    make: *** [advancecomp-1.9_create_compressed_fs/advfs] Error 2

    My kernel version is 2.6.8-1.521smp. Does anybody knows why this happens?
    Thanks,
    Scott

  2. #2
    Senior Member registered user
    Join Date
    Apr 2003
    Posts
    220
    what do you want to do with this cloop?

    use kernel module od jsut extract_compressed_fs binaries?

  3. #3
    Junior Member
    Join Date
    Dec 2004
    Posts
    1

    Re: compiling cloop on fedora core 2

    I had the same problem..
    If you move the line
    #include <netinet/in.h>
    above the original
    #include <asm/byteorder.h>
    the code should compile.. It did the trick here... and I'm running FC2 with 2.4.22 kernel..

    Quote Originally Posted by scottsavarese
    I am using fedora core 2 and I have tried to compile cloop version 2.01-5. However the default tarball gives me the following errors:
    [root@skibum cloop-2.01]# make
    ( make -C advancecomp-1.9_create_compressed_fs advfs )
    make[1]: Entering directory `/home/savarese/cloop-2.01/advancecomp-1.9_create_co
    mpressed_fs'
    g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -DUSE_ERROR_SILENT -DUSE_COMPRESS -c
    -o advfs.o `test -f 'advfs.cc' || echo './'`advfs.cc
    In file included from advfs.cc:24:
    /usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header;
    include <endian.h> instead!
    In file included from advfs.cc:33:
    /usr/include/netinet/in.h:262: error: syntax error before `)' token
    /usr/include/netinet/in.h:262: error: syntax error before `?' token
    /usr/include/netinet/in.h:262: error: syntax error before `)' token
    /usr/include/netinet/in.h:263: error: syntax error before `)' token
    /usr/include/netinet/in.h:263: error: syntax error before `?' token
    /usr/include/netinet/in.h:263: error: syntax error before `)' token
    /usr/include/netinet/in.h:265: error: syntax error before `)' token
    /usr/include/netinet/in.h:265: error: syntax error before `?' token
    /usr/include/netinet/in.h:265: error: syntax error before `)' token
    /usr/include/netinet/in.h:267: error: syntax error before `)' token
    /usr/include/netinet/in.h:267: error: syntax error before `?' token
    /usr/include/netinet/in.h:267: error: syntax error before `)' token
    In file included from advfs.cc:33:
    /usr/include/netinet/in.h:387: error: syntax error before `}' token
    make[1]: *** [advfs.o] Error 1
    make[1]: Leaving directory `/home/savarese/cloop-2.01/advancecomp-1.9_create_com
    pressed_fs'
    make: *** [advancecomp-1.9_create_compressed_fs/advfs] Error 2

    When I remove the byteorder include from advfs.cc and replace it with endian.h, I get this error:

    [root@skibum cloop-2.01]# make
    ( make -C advancecomp-1.9_create_compressed_fs advfs )
    make[1]: Entering directory `/home/savarese/cloop-2.01/advancecomp-1.9_create_compressed_fs'
    g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -DUSE_ERROR_SILENT -DUSE_COMPRESS -c -o advfs.o `test -f 'advfs.cc' || echo './'`advfs.cc
    advfs.cc: In function `int main(int, char**)':
    advfs.cc:245: error: `__cpu_to_be64' undeclared (first use this function)
    advfs.cc:245: error: (Each undeclared identifier is reported only once for each
    function it appears in.)
    make[1]: *** [advfs.o] Error 1
    make[1]: Leaving directory `/home/savarese/cloop-2.01/advancecomp-1.9_create_compressed_fs'
    make: *** [advancecomp-1.9_create_compressed_fs/advfs] Error 2

    My kernel version is 2.6.8-1.521smp. Does anybody knows why this happens?
    Thanks,
    Scott

Similar Threads

  1. Klik fails in Fedora Core 4
    By universpace in forum Klik
    Replies: 3
    Last Post: 03-11-2006, 08:52 AM
  2. Linux Fedora Core 4
    By shadyaftermath in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 08-26-2005, 11:12 PM
  3. Replies: 0
    Last Post: 07-26-2005, 09:27 PM
  4. Having troubles with compiling and using cloop.o
    By ghstridr in forum Customising & Remastering
    Replies: 5
    Last Post: 05-04-2004, 11:15 AM
  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
  •  


Cisco  (SG100D-05-UK) 5-Ports External Ethernet Switch picture

Cisco (SG100D-05-UK) 5-Ports External Ethernet Switch

$40.00



8 Ports Unmanaged Industrial Ethernet Switch Network Gigabit Ethernet Switch picture

8 Ports Unmanaged Industrial Ethernet Switch Network Gigabit Ethernet Switch

$76.50



HP Procurve 2824 24 Gigabit Ports 10/100/1000 External Managed Switch J4903A picture

HP Procurve 2824 24 Gigabit Ports 10/100/1000 External Managed Switch J4903A

$74.99



Cisco Meraki MS120-48LP 48 Port Blade Ethernet Switch UNCLAIMED picture

Cisco Meraki MS120-48LP 48 Port Blade Ethernet Switch UNCLAIMED

$349.98



HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A picture

HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A

$30.95



New Linksys SE3005 5-port Gigabit Ethernet Switch picture

New Linksys SE3005 5-port Gigabit Ethernet Switch

$18.99



New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub picture

New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub

$11.49



HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch picture

HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch

$34.99



Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



HP Aruba 2530-8G-PoE+ 8x PoE+ RJ45 2x SFP Gigabit Switch J9774A No AC Adapter picture

HP Aruba 2530-8G-PoE+ 8x PoE+ RJ45 2x SFP Gigabit Switch J9774A No AC Adapter

$37.99