PDA

View Full Version : problem installing cloop



mulinexman
01-10-2007, 04:07 PM
Hi there,

I'm a Linux beginner, so forgive me if the solution to my problem is totaly trivial... :)

Just starting to learn how to remaster a Knoppix CD, i began with the installation of cloop - and after downloading the newest cloop release from http://debian-knoppix.alioth.debian.org/sources/, here's the first problem:



root@ubuntu-client:/home/dkirsa/cloop-2.04# make KERNEL_DIR=/usr/src/linux-headers-2.6.17-10-generic
( make -C advancecomp-1.9_create_compressed_fs advfs )
make[1]: Betrete Verzeichnis '/home/dkirsa/cloop-2.04/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:25:18: error: zlib.h: No such file or directory
advfs.cc:32:1: warning: "__OPTIMIZE__" redefined
<built-in>: warning: this is the location of the previous definition
utility.h: In function ‘crc_t crc_compute(const char*, unsigned int)’:
utility.h:100: error: ‘crc32’ was not declared in this scope
utility.h: In function ‘crc_t crc_compute(crc_t, const char*, unsigned int)’:
utility.h:104: error: ‘crc32’ was not declared in this scope
lib/fz.h: At global scope:
lib/fz.h:73: error: ‘z_stream’ does not name a type
advfs.cc: In function ‘cb_list* create_compressed_blocks(int, long unsigned int, long unsigned int*, int)’:
advfs.cc:84: error: ‘uLong’ was not declared in this scope
advfs.cc:84: error: expected `;' before ‘len’
advfs.cc:87: error: ‘len’ was not declared in this scope
advfs.cc:106: error: ‘Bytef’ was not declared in this scope
advfs.cc:106: error: expected primary-expression before ‘)’ token
advfs.cc:106: error: ‘uLongf’ was not declared in this scope
advfs.cc:106: error: expected primary-expression before ‘)’ token
advfs.cc:106: error: ‘len’ was not declared in this scope
advfs.cc:106: error: expected primary-expression before ‘)’ token
advfs.cc:106: error: ‘compress2’ was not declared in this scope
advfs.cc:106: error: ‘Z_OK’ was not declared in this scope
advfs.cc:114: error: ‘len’ was not declared in this scope
advfs.cc:128: error: ‘Z_BEST_COMPRESSION’ was not declared in this scope
advfs.cc:129: error: ‘Bytef’ was not declared in this scope
advfs.cc:129: error: expected primary-expression before ‘)’ token
advfs.cc:129: error: ‘uLongf’ was not declared in this scope
advfs.cc:129: error: expected primary-expression before ‘)’ token
advfs.cc:129: error: ‘len’ was not declared in this scope
advfs.cc:129: error: expected primary-expression before ‘)’ token
advfs.cc:129: error: ‘compress2’ was not declared in this scope
advfs.cc:129: error: ‘Z_OK’ was not declared in this scope
advfs.cc:137: error: ‘len’ was not declared in this scope
advfs.cc:142: error: ‘len’ was not declared in this scope
make[1]: *** [advfs.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/dkirsa/cloop-2.04/advancecomp-1.9_create_compressed_fs'
make: *** [advancecomp-1.9_create_compressed_fs/advfs] Fehler 2


So far, I searched a lot for someone having a similar problem, but it doesn't seem to be common.
Anyone a idea?

btw, I use ubuntu

Denis

firnsy
01-11-2007, 02:56 AM
You're missing zlib.h, thus you need to install the development package for zlib. I'm guessing but i'd say an something along the lines of:


#apt-get install zlib-dev
or even

#apt-get install zlib1g-dev

should reduce the errors and perhaps even compile. :D