Originally posted by stefanero
heyho
now that you mentioned it, the pragma thingy....
try to download latest cvs and compile this. we got rid of all pramgas lately
maybe taht works
Thanks for the reply. I feel kinda guilty for not trying CVS version before posting to this forum, so as an excuse I could say, that from my experience, if I get not obvious error(like missing include or library etc) while compiling a source, it is almost allways HP-UX specific issue, and trying CVS is not gonna help. Looks like this was not the case with aMule. So I tried CVS, the previous error was gone, had to tweak wx includes, since I got realloc not defined in them, had to change wait4 to waitpid in amule.cpp, since there is no wait4 on hp-ux, and after all I got another error, and this time, it's something with the compiler I use:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/local/wxBase/lib/wx/include/base-ansi-release-2.6 -I/usr/local/wxBase/include/wx-2.6 -DwxUSE_GUI=0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DwxUSE_GUI=0 -DHAVE_BFD -DAMULE_DAEMON -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -MT amuled-amule.o -MD -MP -MF ".deps/amuled-amule.Tpo" -c -o amuled-amule.o `test -f 'amule.cpp' || echo './'`amule.cpp; \
then mv -f ".deps/amuled-amule.Tpo" ".deps/amuled-amule.Po"; else rm -f ".deps/amuled-amule.Tpo"; exit 1; fi
cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning: as it has already been specified as a non-system directory
In file included from amule.cpp:92:
FriendList.h:63:10: warning: #warning THIS MUST BE MADE PRIVATE AFTER EC IS CODED
amule.cpp: In member function `virtual bool CamuleApp::OnInit()':
amule.cpp:373: Internal compiler error in c_expand_expr, at c-common.c:3646
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
gmake[4]: *** [amuled-amule.o] Error 1
gmake[4]: Leaving directory `/home/user/tmp/amule-cvs/src'
I googled for this error message, and found some other people getting such an error, but all of them were template related errors, and I guess this error I get is not template related. Looks like I should try to compile amule with gcc version >3.2. I am compiling GCC 4.0.2, but it will take much time (day or two), since my cpu is not that fast I wanted it to be

. But if anyone has any clue how to overcome this problem with gcc 3.2, I would gladly hear it.