Compile Fehler ? Fehlendes g++ ?

mag3rquark

Neuer User
Mitglied seit
12 Jun 2005
Beiträge
54
Punkte für Reaktionen
0
Punkte
0
Ich bekomme seit meinem Update auf Fedora Core 5 folgende Medlungen:
Code:
[root@server ds-0.2.6]# make
make CXX="g++ -O3 -Wall" AR="ar" \
        -C source/lzma406/SRC/7zip/Compress/LZMA_Lib
make[1]: Entering directory `/root/ds-0.2.6/source/lzma406/SRC/7zip/Compress/LZMA_Lib'
g++ -O3 -Wall -c ZLib.cpp
make[1]: g++: Kommando nicht gefunden
make[1]: *** [ZLib.o] Fehler 127
make[1]: Leaving directory `/root/ds-0.2.6/source/lzma406/SRC/7zip/Compress/LZMA_Lib'
make: *** [source/lzma406/SRC/7zip/Compress/LZMA_Lib/liblzma.a] Fehler 2
Woran liegts ?
 
Zuletzt bearbeitet:
Du solltest deinen Fedora Paketmanager bemühen, den g++ Compiler zu installieren.
 
Nur findet "Yum search g++" nix...und "Yum install g++" schon garnicht...
 
Nun kommt das hier:

Code:
[root@server ds-0.2.6]# make menuconfig
make -C tools/config ncurses conf mconf
make[1]: Entering directory `/root/ds-0.2.6/tools/config'
cp -fpR zconf.tab.h_shipped zconf.tab.h
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I. -c conf.c -o conf.o
cp -fpR zconf.tab.c_shipped zconf.tab.c
cp -fpR lex.zconf.c_shipped lex.zconf.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I. -c zconf.tab.c -o zco nf.tab.o
gcc  conf.o zconf.tab.o -o conf
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -I. -c mconf.c -o mconf.o
mconf.c: In Funktion »conf_string«:
mconf.c:589: Warnung: Zeigerziele bei Übergabe des Arguments 2 von »sym_set_string_value« unterscheiden sich im Vorzeichenbesitz
mconf.c: In Funktion »conf_load«:
mconf.c:610: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »conf_read« unterscheiden sich im Vorzeichenbesitz
mconf.c: In Funktion »conf_save«:
mconf.c:631: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »conf_write« unterscheiden sich im Vorzeichenbesitz
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -I. -c checklist.c -o checklist.o
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -I. -c menubox.c -o menubox.o
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -I. -c textbox.c -o textbox.o
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -I. -c yesno.c -o yesno.o
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -I. -c inputbox.c -o inputbox.o
inputbox.c: In Funktion »dialog_inputbox«:
inputbox.c:107: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »strcpy« unterscheiden sich im Vorzeichenbesitz
inputbox.c:109: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »strlen« unterscheiden sich im Vorzeichenbesitz
inputbox.c:117: Warnung: Zeigerziele bei Übergabe des Arguments 2 von »waddnstr« unterscheiden sich im Vorzeichenbesitz
inputbox.c:147: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »strlen« unterscheiden sich im Vorzeichenbesitz
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -I. -c util.c -o util.o
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -I. -c msgbox.c -o msgbox.o
gcc  mconf.o checklist.o menubox.o textbox.o yesno.o inputbox.o util.o msgbox.o zconf.tab.o -o mconf -lncurses
make[1]: Leaving directory `/root/ds-0.2.6/tools/config'
#
# using defaults found in .config
#


*** End of danisahne-mod configuration.
*** Check the top-level Makefile for additional configuration options.

[root@server ds-0.2.6]# make
tar -C source  -xjf tools/source/find-squashfs.tar.bz2
touch source/find-squashfs/.unpacked
make CC="gcc" LD="ld -static" \
        -C source/find-squashfs
make[1]: Entering directory `/root/ds-0.2.6/source/find-squashfs'
gcc -W -Wall -O2   -c -o find-squashfs.o find-squashfs.c
gcc -o find-squashfs find-squashfs.o
make[1]: Leaving directory `/root/ds-0.2.6/source/find-squashfs'
cp source/find-squashfs/find-squashfs tools/find-squashfs
wget -P dl http://www.7-zip.org/dl/lzma406.zip
--10:58:12--  http://www.7-zip.org/dl/lzma406.zip
           => `dl/lzma406.zip'
Auflösen des Rechnernamens 'www.7-zip.org'.... 69.73.175.23
Verbindungsaufbau mit www.7-zip.org[69.73.175.23]:80... verbunden.
HTTP-Anfrage gesendet, warte auf Antwort... 200 OK
Länge: 185.934 (182K) [application/zip]

100%[=================================================================================>] 185.934      147.76K/s

10:58:14 (147.35 KB/s) - 'dl/lzma406.zip' gespeichert [185934/185934]

unzip -q dl/lzma406.zip -d source/lzma406
chmod -R +w source/lzma406
dos2unix source/lzma406/SRC/7zip/Compress/LZMA/LZMADecoder.*
dos2unix: converting file source/lzma406/SRC/7zip/Compress/LZMA/LZMADecoder.cpp to UNIX format ...
dos2unix: converting file source/lzma406/SRC/7zip/Compress/LZMA/LZMADecoder.h to UNIX format ...
for i in tools/make/patches/*.lzma.patch; do \
        patch -d source/lzma406 -p0 < $i; \
done
patching file SRC/7zip/Compress/LZMA/LZMADecoder.cpp
patching file SRC/7zip/Compress/LZMA/LZMADecoder.h
patching file SRC/7zip/Compress/LZMA_Lib/makefile
patching file SRC/7zip/Compress/LZMA_Lib/ZLib.cpp
touch source/lzma406/.unpacked
make CXX="g++ -O3 -Wall" AR="ar" \
        -C source/lzma406/SRC/7zip/Compress/LZMA_Lib
make[1]: Entering directory `/root/ds-0.2.6/source/lzma406/SRC/7zip/Compress/LZMA_Lib'
g++ -O3 -Wall -c ZLib.cpp
ZLib.cpp:28:18: Fehler: zlib.h: Datei oder Verzeichnis nicht gefunden
../../../Common/MyWindows.h:120: Warnung: »struct IUnknown« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../IStream.h:14: Warnung: »struct ISequentialInStream« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../IStream.h:32: Warnung: »struct ISequentialOutStream« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../IStream.h:43: Warnung: »struct IInStream« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../IStream.h:53: Warnung: »struct IOutStream« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../IStream.h:64: Warnung: »struct IStreamGetSize« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../IStream.h:74: Warnung: »struct IOutStreamFlush« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:13: Warnung: »struct ICompressProgressInfo« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:22: Warnung: »struct ICompressCoder« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:35: Warnung: »struct ICompressCoder2« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:69: Warnung: »struct ICompressSetCoderProperties« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:79: Warnung: »struct ICompressSetDecoderProperties« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:88: Warnung: »struct ICompressWriteCoderProperties« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:97: Warnung: »struct ICompressGetInStreamProcessedSize« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:106: Warnung: »struct ICompressGetSubStreamSize« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:115: Warnung: »struct ICompressSetInStream« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:124: Warnung: »struct ICompressSetOutStream« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:133: Warnung: »struct ICompressSetInStreamSize« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:142: Warnung: »struct ICompressSetOutStreamSize« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:151: Warnung: »struct ICompressFilter« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../../ICoder.h:166: Warnung: »struct ICryptoProperties« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../LZ/IMatchFinder.h:11: Warnung: »struct IInWindowStream« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../LZ/IMatchFinder.h:26: Warnung: »struct IMatchFinder« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../LZ/IMatchFinder.h:38: Warnung: »struct IMatchFinderCallback« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
../LZMA/../LZ/IMatchFinder.h:48: Warnung: »struct IMatchFinderSetCallback« hat virtuelle Funktionen aber nicht-virtuellen Destruktor
ZLib.cpp:53: Fehler: expected »,« or »...« before »*« token
ZLib.cpp:53: Fehler: ISO-C++ verbietet Deklaration von »Bytef« ohne Typ
ZLib.cpp:108: Fehler: ISO-C++ verbietet Deklaration von »Bytef« ohne Typ
ZLib.cpp:108: Fehler: expected »;« before »*« token
ZLib.cpp: In constructor »CInMemoryStream::CInMemoryStream(int)«:
ZLib.cpp:54: Fehler: Klasse »CInMemoryStream« hat keinen Feldnamen »m_data«
ZLib.cpp:54: Fehler: »data« wurde in diesem Gültigkeitsbereich nicht definiert
ZLib.cpp:54: Fehler: »size« wurde in diesem Gültigkeitsbereich nicht definiert
ZLib.cpp: In member function »virtual LONG CInMemoryStream::Read(void*, UInt32, UInt32*)«:
ZLib.cpp:66: Fehler: »m_data« wurde in diesem Gültigkeitsbereich nicht definiert
ZLib.cpp: At global scope:
ZLib.cpp:118: Fehler: expected `)' before »*« token
ZLib.cpp:177: Fehler: ISO-C++ verbietet Deklaration von »Bytef« ohne Typ
ZLib.cpp:177: Fehler: expected »;« before »*« token
ZLib.cpp: In member function »virtual LONG COutMemoryStream::Write(const void*, UInt32, UInt32*)«:
ZLib.cpp:130: Fehler: »m_data« wurde in diesem Gültigkeitsbereich nicht definiert
ZLib.cpp: At global scope:
ZLib.cpp:183: Fehler: expected constructor, destructor, or type conversion before »int«
make[1]: *** [ZLib.o] Fehler 1
make[1]: Leaving directory `/root/ds-0.2.6/source/lzma406/SRC/7zip/Compress/LZMA_Lib'
make: *** [source/lzma406/SRC/7zip/Compress/LZMA_Lib/liblzma.a] Fehler 2
 
Welche gcc Version hast du installiert?
 
Er hat sich automatisch was installiert...denke mal das aktuellste was yum bekommen konnte...
 
Witzbold :D Ja wie wärs, wenn du dann mal nachschaust, welche Version das ist? g++ -v
 
...war käse, sorry :) edit
 
Zuletzt bearbeitet von einem Moderator:
HIer ist es:
Code:
Es werden eingebaute Spezifikationen verwendet.
Ziel: i386-redhat-linux
Konfiguriert mit: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread-Modell: posix
gcc-Version 4.1.0 20060517 (Red Hat 4.1.0)
 
Probs beim compilieren

Hallo zusammen,

ich habe unter Suse 10.0 Probleme das ds-mod Image zu erstellen. Ich erhalte folgende Fehlermeldungen, nachdem ich den Befehl make ausgeführt habe. Als c++ Compieler ist gcc-c++ in der version 4.0.2_20050901installiert. Könnte ihr mir weiterhelfen.

Vielen Dank

Jürgen
Code:
make CXX="g++ -O3 -Wall" AR="ar" \
        -C source/lzma406/SRC/7zip/Compress/LZMA_Lib
 make[1]: Entering directory `/home/juergen/DaniSahne/[URL="http://ds-0.2.8/source/lzma406/SRC"]ds-0.2.8/source/lzma406/SRC[/URL]
/7zip/Compress/LZMA_Lib'
g++ -O3 -Wall -c ZLib.cpp
ZLib.cpp:28:18: error: zlib.h: Datei oder Verzeichnis nicht gefunden
../../../Common/MyWindows.h:120: warning: ‘struct IUnknown’ has virtual function
s but non-virtual destructor
../LZMA/../../IStream.h:14: warning: ‘struct ISequentialInStream’ has virtual fu
nctions but non-virtual destructor
../LZMA/../../IStream.h:32: warning: ‘struct ISequentialOutStream’ has virtual f
unctions but non-virtual destructor
../LZMA/../../IStream.h:43: warning: ‘struct IInStream’ has virtual functions bu
t non-virtual destructor
../LZMA/../../IStream.h:53: warning: ‘struct IOutStream’ has virtual functions b
ut non-virtual destructor
../LZMA/../../IStream.h:64: warning: ‘struct IStreamGetSize’ has virtual functio
ns but non-virtual destructor
../LZMA/../../IStream.h:74: warning: ‘struct IOutStreamFlush’ has virtual functi
ons but non-virtual destructor
../LZMA/../../ICoder.h:13: warning: ‘struct ICompressProgressInfo’ has virtual f
unctions but non-virtual destructor
../LZMA/../../ICoder.h:22: warning: ‘struct ICompressCoder’ has virtual function
s but non-virtual destructor
../LZMA/../../ICoder.h:35: warning: ‘struct ICompressCoder2’ has virtual functio
ns but non-virtual destructor
../LZMA/../../ICoder.h:69: warning: ‘struct ICompressSetCoderProperties’ has vir
tual functions but non-virtual destructor
../LZMA/../../ICoder.h:79: warning: ‘struct ICompressSetDecoderProperties’ has v
irtual functions but non-virtual destructor
../LZMA/../../ICoder.h:88: warning: ‘struct ICompressWriteCoderProperties’ has v
irtual functions but non-virtual destructor
../LZMA/../../ICoder.h:97: warning: ‘struct ICompressGetInStreamProcessedSize’ h
as virtual functions but non-virtual destructor
../LZMA/../../ICoder.h:106: warning: ‘struct ICompressGetSubStreamSize’ has virt
ual functions but non-virtual destructor
../LZMA/../../ICoder.h:115: warning: ‘struct ICompressSetInStream’ has virtual f
unctions but non-virtual destructor
../LZMA/../../ICoder.h:124: warning: ‘struct ICompressSetOutStream’ has virtual
functions but non-virtual destructor
../LZMA/../../ICoder.h:133: warning: ‘struct ICompressSetInStreamSize’ has virtu
al functions but non-virtual destructor
../LZMA/../../ICoder.h:142: warning: ‘struct ICompressSetOutStreamSize’ has virt
ual functions but non-virtual destructor
../LZMA/../../ICoder.h:151: warning: ‘struct ICompressFilter’ has virtual functi
ons but non-virtual destructor
../LZMA/../../ICoder.h:166: warning: ‘struct ICryptoProperties’ has virtual func
tions but non-virtual destructor
../LZMA/../LZ/IMatchFinder.h:11: warning: ‘struct IInWindowStream’ has virtual f
unctions but non-virtual destructor
../LZMA/../LZ/IMatchFinder.h:26: warning: ‘struct IMatchFinder’ has virtual func
tions but non-virtual destructor
../LZMA/../LZ/IMatchFinder.h:38: warning: ‘struct IMatchFinderCallback’ has virt
ual functions but non-virtual destructor
../LZMA/../LZ/IMatchFinder.h:48: warning: ‘struct IMatchFinderSetCallback’ has v
irtual functions but non-virtual destructor
ZLib.cpp:53: error: expected ‘,’ or ‘...’ before ‘*’ token
ZLib.cpp:53: error: ISO C++ forbids declaration of ‘Bytef’ with no type
ZLib.cpp:108: error: ISO C++ forbids declaration of ‘Bytef’ with no type
ZLib.cpp:108: error: expected ‘;’ before ‘*’ token
ZLib.cpp: In constructor ‘CInMemoryStream::CInMemoryStream(int)’:
ZLib.cpp:54: error: class ‘CInMemoryStream’ does not have any field named ‘m_dat                                           a’
ZLib.cpp:54: error: ‘data’ was not declared in this scope
ZLib.cpp:54: error: ‘size’ was not declared in this scope
ZLib.cpp: In member function ‘virtual LONG CInMemoryStream::Read(void*, UInt32,                                            UInt32*)’:
ZLib.cpp:66: error: ‘m_data’ was not declared in this scope
ZLib.cpp: At global scope:
ZLib.cpp:118: error: expected `)' before ‘*’ token
ZLib.cpp:177: error: ISO C++ forbids declaration of ‘Bytef’ with no type
ZLib.cpp:177: error: expected ‘;’ before ‘*’ token
ZLib.cpp: In member function ‘virtual LONG COutMemoryStream::Write(const void*,                                            UInt32, UInt32*)’:
ZLib.cpp:130: error: ‘m_data’ was not declared in this scope
ZLib.cpp: At global scope:
ZLib.cpp:183: error: expected constructor, destructor, or type conversion before                                            ‘int’
ZLib.cpp:246: error: expected constructor, destructor, or type conversion before                                            ‘int’
make[1]: *** [ZLib.o] Fehler 1
 make[1]: Leaving directory `/home/juergen/DaniSahne/[URL="http://ds-0.2.8/source/lzma406/SRC/"]ds-0.2.8/source/lzma406/SRC/[/URL]                                           7zip/Compress/LZMA_Lib'
make: *** [source/lzma406/SRC/7zip/Compress/LZMA_Lib/liblzma.a] Fehler 2
 
Zuletzt bearbeitet von einem Moderator:
Braindead schrieb:
ZLib.cpp:28:18: error: zlib.h: Datei oder Verzeichnis nicht gefunden
Ich würde darauf tippen, dass das Paket zlib-devel fehlt.

MfG Oliver
 
Merci, werd ich gleichmal testen

Gruss Jürgen
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.