aMule Forum

Deutsch => de_Bugs => Topic started by: lje on October 09, 2004, 06:41:59 PM

Title: Problem beim Compilieren
Post by: lje on October 09, 2004, 06:41:59 PM
Hi.

Amule steigt beim Compilieren mit folgendem Fehler aus:

if g++ -DHAVE_CONFIG_H -I. -I. -I..     -D__SYSTRAY_DISABLED__ -I/usr/lib/wx/inc
lude/gtk2u-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OF
FSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/in
clude/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib
-2.0/include   -D__GTK2__   -O2 -pipe  -march=athlon-xp -DUSE_EMBEDDED_CRYPTO  -
O2  -MT amule-UInt128.o -MD -MP -MF ".deps/amule-UInt128.Tpo" -c -o amule-UInt12
8.o `test -f 'kademlia/utils/UInt128.cpp' || echo './'`kademlia/utils/UInt128.cp
p; \
then mv -f ".deps/amule-UInt128.Tpo" ".deps/amule-UInt128.Po"; else rm -f ".deps
/amule-UInt128.Tpo"; exit 1; fi
kademlia/utils/UInt128.cpp:132:2: warning: #warning Whats this?
if gcc -DHAVE_CONFIG_H -I. -I. -I..     -D__SYSTRAY_DISABLED__ -I/usr/lib/wx/inc
lude/gtk2u-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OF
FSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/in
clude/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib
-2.0/include   -D__GTK2__  -O2 -pipe  -march=athlon-xp  -O2  -MT amule-gsocket-2
.5.o -MD -MP -MF ".deps/amule-gsocket-2.5.Tpo" -c -o amule-gsocket-2.5.o `test -
f 'gsocket-2.5.c' || echo './'`gsocket-2.5.c; \
then mv -f ".deps/amule-gsocket-2.5.Tpo" ".deps/amule-gsocket-2.5.Po"; else rm -
f ".deps/amule-gsocket-2.5.Tpo"; exit 1; fi
In file included from /usr/include/wx-2.5/wx/unix/gsockunx.h:19,
                 from gsocket-2.5.c:168:
/usr/include/wx-2.5/wx/gsocket.h:39: error: parse error before "GSocket"
/usr/include/wx-2.5/wx/gsocket.h:39: warning: data definition has no type or sto
rage class
/usr/include/wx-2.5/wx/gsocket.h:92: error: parse error before '*' token
/usr/include/wx-2.5/wx/gsocket.h:100: error: parse error before "GSocketGUIFunct
ionsTable"
...

Das Problem besteht darin, dass er versucht, amule-gsocket mit gcc statt g++ zu übersetzen. Das schlägt fehl, da der includierte Header wx/gsocket.h C++ enthält. Soweit ich das sehe, liegt hier ein Fehler im Makefile.in vor. Kann irgendwer was zu dem Problem sagen?

Danke und Gruß,
Jens
Title: Re: Problem beim Compilieren
Post by: djtm on December 21, 2004, 03:43:38 PM
ich hab nen anderern fehler:
mit debian unstable


{standard input}: Assembler messages:
{standard input}:22799: Warning: end of file not at end of a line; newline inserted
{standard input}:23010: Error: suffix or operands invalid for `call'
g++.real: Internal error: Getötet (program cc1plus)
 -fprefetch-loop-arrays -ffast-math -fforce-addr -fno-exceptions -pipe -DUSE_EMBEDDED_CRYPTO  -O2  -MT amulewebDLG-WebServer.o -MD -MP -MF ".deps/amulewebDLG-WebServer.Tpo" \
  -c -o amulewebDLG-WebServer.o `test -f 'WebServer.cpp' || echo './'`WebServer.cpp; \
then mv -f ".deps/amulewebDLG-WebServer.Tpo" ".deps/amulewebDLG-WebServer.Po"; \
else rm -f ".deps/amulewebDLG-WebServer.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/gtk2-unicode-release-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/include/libpng12 -DWITH_LIBPNG -DAMULEWEBDLG  -DEC_REMOTE -O4 -march=athlon -falign-functions=4 -fexpensive-optimizations -fprefetch-loop-arrays -ffast-math -fforce-addr -fno-exceptions -pipe -DUSE_EMBEDDED_CRYPTO  -O2  -MT amulewebDLG-WebInterface.o -MD -MP -MF ".deps/amulewebDLG-WebInterface.Tpo" \
  -c -o amulewebDLG-WebInterface.o `test -f 'WebInterface.cpp' || echo './'`WebInterface.cpp; \
then mv -f ".deps/amulewebDLG-WebInterface.Tpo" ".deps/amulewebDLG-WebInterface.Po"; \
else rm -f ".deps/amulewebDLG-WebInterface.Tpo"; exit 1; \
fi
{standard input}: Assembler messages:
{standard input}:22799: Warning: end of file not at end of a line; newline inserted
{standard input}:23010: Error: suffix or operands invalid for `call'
g++.real: Internal error: Getötet (program cc1plus)
Please submit a full bug report.
See for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see .

make[4]: *** [amuleweb-WebServer.o] Fehler 1
make[4]: *** Warte auf noch nicht beendete Prozesse...
WebServer.cpp: In member function `void
   DownloadFiles::ProcessUpdate(CEC_PartFile_Tag*)':
WebServer.cpp:2471: error: no matching function for call to `
   otherfunctions::PartFileEncoderData::Decode(unsigned char*, uint16, unsigned
   char*, uint16)'
otherfunctions.h:342: error: candidates are: void
   otherfunctions::PartFileEncoderData::Decode(unsigned char*, int)
make[4]: *** [amulewebDLG-WebServer.o] Fehler 1
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/djtm/srcs/amule-cvs/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/djtm/srcs/amule-cvs/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/djtm/srcs/amule-cvs'
make: *** [all] Fehler 2
Title: Re: Problem beim Compilieren
Post by: Stevil on December 29, 2004, 12:28:49 PM
CVS vom 29.12.04

Code: [Select]

if g++ -DHAVE_CONFIG_H -I. -I. -I..      -I/usr/X11R6/include/wx/gtk2-2.4 -I/usr/X11R6/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include   -D__GTK2__  -I/usr/local/include -DUSE_EMBEDDED_CRYPTO  -O2  -MT amule-CFile.o -MD -MP -MF ".deps/amule-CFile.Tpo" \
  -c -o amule-CFile.o `test -f 'CFile.cpp' || echo './'`CFile.cpp; \
then mv -f ".deps/amule-CFile.Tpo" ".deps/amule-CFile.Po"; \
else rm -f ".deps/amule-CFile.Tpo"; exit 1; \
fi
CFile.cpp: In member function `virtual bool CFile::Open(const wxChar*, CFile::OpenMode, int)':
CFile.cpp:287: error: `O_LARGEFILE' undeclared (first use this function)
CFile.cpp:287: error: (Each undeclared identifier is reported only once for each function it appears in.)
gmake[4]: *** [amule-CFile.o] Error 1
gmake[4]: Leaving directory `/usr/home/stevil/amule-cvs/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/home/stevil/amule-cvs/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/home/stevil/amule-cvs/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/stevil/amule-cvs'
gmake: *** [all] Error 2

Title: Re: Problem beim Compilieren
Post by: djtm on December 30, 2004, 12:45:11 AM
versuch mal ne andere wxgtk Version, zb. 2.5.3. Bei mir machten die den unterschied, irgendwann ging's dann. natürlich immer inklusive -dev Paketen.

lg