Ich stehe vällig auf dem Schlauch.
Bei mir will newmake einfach nicht compilieren. Der Fehler ist immer bei mksquashfs (LZMA)
Hier einmal die Meldungen:
Code: Alles auswählen
rm -rf mksquashfs
mkdir -p mksquashfs
cd mksquashfs && \
bunzip2 -cd ../Archive/lzma442.tar.bz2 | TAPE=- tar -x && \
patch -p1 < ../Patches/lzma_zlib-stream.diff && \
gunzip -cd ../Archive/squashfs3.0.tar.gz | TAPE=- tar -x && \
patch -p0 < ../Patches/mksquashfs_lzma.diff
patching file C/7zip/Compress/LZMA/LZMADecoder.cpp
patching file C/7zip/Compress/LZMA/LZMADecoder.h
patching file C/7zip/Compress/LZMA_Lib/makefile
patching file C/7zip/Compress/LZMA_Lib/ZLib.cpp
patching file squashfs3.0/squashfs-tools/Makefile
make -C mksquashfs/C/7zip/Compress/LZMA_Lib
make[1]: Entering directory `/home/frank/work/tuxbox-cvs/cdk/mksquashfs/C/7zip/Compress/LZMA_Lib'
g++ -O3 -Wall -c -I ../../../ ZLib.cpp
make[1]: Leaving directory `/home/frank/work/tuxbox-cvs/cdk/mksquashfs/C/7zip/Compress/LZMA_Lib'
Code: Alles auswählen
ZLib.cpp:28:18: zlib.h: Datei oder Verzeichnis nicht gefunden
ZLib.cpp:53: error: Fehler beim Parsen before `*' token
ZLib.cpp:54: error: missing ';' before right brace
ZLib.cpp:56: error: ISO C++ forbids defining types within return type
ZLib.cpp:56: error: destructors must be member functions
ZLib.cpp:56: error: return type specification for destructor invalid
ZLib.cpp:56: error: virtual outside class declaration
ZLib.cpp:58: error: virtual outside class declaration
ZLib.cpp: In function `LONG QueryInterface(const GUID&, void**)':
ZLib.cpp:58: error: invalid use of `this' in non-member function
ZLib.cpp:58: error: `AddRef' undeclared (first use this function)
ZLib.cpp:58: error: (Each undeclared identifier is reported only once for each
function it appears in.)
ZLib.cpp:58: error: invalid use of `this' in non-member function
ZLib.cpp: At global scope:
ZLib.cpp:58: error: virtual outside class declaration
ZLib.cpp: In function `ULONG AddRef()':
ZLib.cpp:58: error: `ULONG AddRef()' used prior to declaration
ZLib.cpp:58: error: `__m_RefCount' undeclared (first use this function)
ZLib.cpp: At global scope:
ZLib.cpp:58: error: virtual outside class declaration
ZLib.cpp: In function `ULONG Release()':
ZLib.cpp:58: error: invalid use of `this' in non-member function
ZLib.cpp: At global scope:
ZLib.cpp:61: error: virtual outside class declaration
ZLib.cpp: In function `LONG Read(void*, unsigned int, UInt32*)':
ZLib.cpp:62: error: `m_size' undeclared (first use this function)
ZLib.cpp:62: error: `m_offset' undeclared (first use this function)
ZLib.cpp:66: error: `m_data' undeclared (first use this function)
ZLib.cpp: At global scope:
ZLib.cpp:78: error: virtual outside class declaration
ZLib.cpp:83: error: virtual outside class declaration
ZLib.cpp:103: error: virtual outside class declaration
ZLib.cpp:107: error: Fehler beim Parsen before `protected'
ZLib.cpp:109: error: `UInt64 m_size' used prior to declaration
ZLib.cpp:110: error: `UInt64 m_offset' used prior to declaration
ZLib.cpp:111: error: Fehler beim Parsen before `}' token
ZLib.cpp:118: error: Fehler beim Parsen before `*' token
ZLib.cpp:119: error: missing ';' before right brace
ZLib.cpp:120: error: ISO C++ forbids defining types within return type
ZLib.cpp:120: error: destructors must be member functions
ZLib.cpp:120: error: return type specification for destructor invalid
ZLib.cpp:120: error: virtual outside class declaration
ZLib.cpp:122: error: virtual outside class declaration
ZLib.cpp: In function `LONG QueryInterface(const GUID&, void**)':
ZLib.cpp:122: error: redefinition of `LONG QueryInterface(const GUID&, void**)'
ZLib.cpp:58: error: `LONG QueryInterface(const GUID&, void**)' previously
defined here
ZLib.cpp:122: error: redefinition of `LONG QueryInterface(const GUID&, void**)'
ZLib.cpp:58: error: `LONG QueryInterface(const GUID&, void**)' previously
defined here
ZLib.cpp:122: error: invalid use of `this' in non-member function
ZLib.cpp: At global scope:
ZLib.cpp:122: error: virtual outside class declaration
ZLib.cpp: In function `ULONG AddRef()':
ZLib.cpp:122: error: redefinition of `ULONG AddRef()'
ZLib.cpp:58: error: `ULONG AddRef()' previously defined here
ZLib.cpp:122: error: redefinition of `ULONG AddRef()'
ZLib.cpp:58: error: `ULONG AddRef()' previously defined here
ZLib.cpp: At global scope:
ZLib.cpp:122: error: virtual outside class declaration
ZLib.cpp: In function `ULONG Release()':
ZLib.cpp:122: error: redefinition of `ULONG Release()'
ZLib.cpp:58: error: `ULONG Release()' previously defined here
ZLib.cpp:122: error: redefinition of `ULONG Release()'
ZLib.cpp:58: error: `ULONG Release()' previously defined here
ZLib.cpp:122: error: invalid use of `this' in non-member function
ZLib.cpp: At global scope:
ZLib.cpp:125: error: virtual outside class declaration
ZLib.cpp: In function `LONG Write(const void*, unsigned int, UInt32*)':
ZLib.cpp:126: error: `m_maxsize' undeclared (first use this function)
ZLib.cpp: At global scope:
ZLib.cpp:145: error: virtual outside class declaration
ZLib.cpp:150: error: virtual outside class declaration
ZLib.cpp: In function `LONG Seek(long long int, unsigned int, UInt64*)':
ZLib.cpp:150: error: redefinition of `LONG Seek(long long int, unsigned int,
UInt64*)'
ZLib.cpp:83: error: `LONG Seek(long long int, unsigned int, UInt64*)'
previously defined here
ZLib.cpp:150: error: redefinition of `LONG Seek(long long int, unsigned int,
UInt64*)'
ZLib.cpp:83: error: `LONG Seek(long long int, unsigned int, UInt64*)'
previously defined here
ZLib.cpp: At global scope:
ZLib.cpp:170: error: virtual outside class declaration
ZLib.cpp:176: error: Fehler beim Parsen before `protected'
ZLib.cpp:178: error: redefinition of `UInt64 m_size'
ZLib.cpp:109: error: `UInt64 m_size' previously declared here
ZLib.cpp:179: error: `UInt64 m_maxsize' used prior to declaration
ZLib.cpp:180: error: redefinition of `UInt64 m_offset'
ZLib.cpp:110: error: `UInt64 m_offset' previously declared here
ZLib.cpp:181: error: Fehler beim Parsen before `}' token
ZLib.cpp:183: error: Syntaxfehler before `int'
ZLib.cpp:188: error: `inStreamSpec' was not declared in this scope
ZLib.cpp:190: error: Syntaxfehler before `*' token
ZLib.cpp:191: error: `outStreamSpec' was not declared in this scope
ZLib.cpp:211: error: Fehler beim Parsen before `for'
ZLib.cpp:211: error: Fehler beim Parsen before `;' token
ZLib.cpp:211: error: Syntaxfehler before `++' token
ZLib.cpp:213: error: Syntaxfehler before `.' token
ZLib.cpp:214: error: Syntaxfehler before `.' token
ZLib.cpp:215: error: Syntaxfehler before `.' token
ZLib.cpp:216: error: Syntaxfehler before `.' token
ZLib.cpp:217: error: Syntaxfehler before `.' token
ZLib.cpp:218: error: Syntaxfehler before `.' token
ZLib.cpp:220: error: Syntaxfehler before `.' token
ZLib.cpp:221: error: Syntaxfehler before `.' token
ZLib.cpp:223: error: Syntaxfehler before `.' token
ZLib.cpp:224: error: Syntaxfehler before `.' token
ZLib.cpp:230: error: Fehler beim Parsen before `if'
ZLib.cpp:240: error: Syntaxfehler before `->' token
ZLib.cpp:241: error: ISO C++ forbids declaration of `destLen' with no type
ZLib.cpp:241: error: invalid conversion from `UInt64' to `int*'
ZLib.cpp:243: error: Fehler beim Parsen before `return'
ZLib.cpp:246: error: Syntaxfehler before `int'
ZLib.cpp:250: error: redefinition of `CMyComPtr<ISequentialInStream> inStream'
ZLib.cpp:188: error: `CMyComPtr<ISequentialInStream> inStream' previously
declared here
ZLib.cpp:250: error: `inStreamSpec' was not declared in this scope
ZLib.cpp:252: error: Syntaxfehler before `*' token
ZLib.cpp:253: error: redefinition of `CMyComPtr<ISequentialOutStream> outStream
'
ZLib.cpp:191: error: `CMyComPtr<ISequentialOutStream> outStream' previously
declared here
ZLib.cpp:253: error: `outStreamSpec' was not declared in this scope
ZLib.cpp:259: error: Fehler beim Parsen before `if'
ZLib.cpp:262: error: redefinition of `UInt64 fileSize'
ZLib.cpp:239: error: `UInt64 fileSize' previously declared here
ZLib.cpp:264: error: Fehler beim Parsen before `if'
ZLib.cpp:269: error: Syntaxfehler before `->' token
ZLib.cpp:270: error: ISO C++ forbids declaration of `destLen' with no type
ZLib.cpp:270: error: redefinition of `int*destLen'
ZLib.cpp:241: error: `int*destLen' previously declared here
ZLib.cpp:270: error: invalid conversion from `UInt64' to `int*'
ZLib.cpp:272: error: Fehler beim Parsen before `return'
make[1]: *** [ZLib.o] Fehler 1
make: *** [/home/frank/work/dbox2/cdk/bin/mksquashfs] Fehler 2
Ich blicke da garnichtmher durch.
gcc-Version 3.3.5 (Debian 1:3.3.5-13)
Ich denke mal, dass es wohl hier dran liegt:
ZLib.cpp:28:18: zlib.h: Datei oder Verzeichnis nicht gefunden
Vorhanden ist sie aber in reichlicher Zahl:
Code: Alles auswählen
/home/frank/work/dbox2/cdkroot/include/zlib.h
/home/frank/work/dbox2/cdkroot/include/boost/iostreams/detail/config/zlib.hpp
/home/frank/work/dbox2/cdkroot/include/boost/iostreams/filter/zlib.hpp
/home/frank/work/tuxbox-cvs/cdk/linux-2.4.33.3/arch/ppc/boot/include/zlib.h
/home/frank/work/tuxbox-cvs/cdk/linux-2.4.33.3/arch/ppc64/boot/zlib.h
/home/frank/work/tuxbox-cvs/cdk/linux-2.4.33.3/include/linux/zlib.h
/home/frank/work/tuxbox-cvs/cdk/linux-2.4.33.3/include/config/jffs2/zlib.h
/home/frank/work/tuxbox-cvs/hostapps/mkfs.jffs2/include/linux/zlib.h
Gruß
flasher