aMule Bug Tracker - aMule
View Issue Details
0000925aMuleExternal Connpublic2006-07-01 15:272008-02-24 01:36
vaclavp 
Xaignar 
normalcrashalways
resolvednot fixable 
2.1.3 
 
Linux
0000925: Can't compile aMule 2.1.3 on Slackware 9.1
I issue ./configure and them make. It ends with following:

make[3]: Entering directory `/tmp/src/aMule-2.1.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -MT ED2KLinkParser.o -MD -MP -MF ".deps/ED2KLinkParser.Tpo" -c -o ED2KLinkParser.o ED2KLinkParser.cpp; \
then mv -f ".deps/ED2KLinkParser.Tpo" ".deps/ED2KLinkParser.Po"; else rm -f ".deps/ED2KLinkParser.Tpo"; exit 1; fi
In file included from ED2KLinkParser.cpp:44:
FileLock.h: In destructor `CFileLock::~CFileLock()':
FileLock.h:80: `close' undeclared (first use this function)
FileLock.h:80: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [ED2KLinkParser.o] Error 1

If I remove close() from destructor the compilation goes further to following:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -MT ED2KLinkParser.o -MD -MP -MF ".deps/ED2KLinkParser.Tpo" -c -o ED2KLinkParser.o ED2KLinkParser.cpp; \
then mv -f ".deps/ED2KLinkParser.Tpo" ".deps/ED2KLinkParser.Po"; else rm -f ".deps/ED2KLinkParser.Tpo"; exit 1; fi
g++ -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -lpthread -o ed2k ED2KLinkParser.o
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/wxGTK-2.6.2/lib/wx/include/gtk2-ansi-debug-2.6 -I/opt/wxGTK-2.6.2/include/wx-2.6 -D__WXDEBUG__ -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -I./libs -Ilibs -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -MT amule-amule.o -MD -MP -MF ".deps/amule-amule.Tpo" -c -o amule-amule.o `test -f 'amule.cpp' || echo './'`amule.cpp; \
then mv -f ".deps/amule-amule.Tpo" ".deps/amule-amule.Po"; else rm -f ".deps/amule-amule.Tpo"; exit 1; fi
In file included from amule.cpp:80:
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:394: Internal compiler error in c_expand_expr, at c-common.c:3714
Please submit a full bug report,
with preprocessed source if appropriate.
i use GCC:
14:43:17 70> gcc -v
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.2.3
No tags attached.
Issue History
2006-07-01 15:27vaclavpNew Issue
2006-07-01 15:27vaclavpOperating System => Linux
2008-02-24 01:36XaignarStatusnew => resolved
2008-02-24 01:36XaignarResolutionopen => not fixable
2008-02-24 01:36XaignarAssigned To => Xaignar
2008-02-24 01:36XaignarNote Added: 0002676

Notes
(0002676)
Xaignar   
2008-02-24 01:36   
This is not a problem with aMule, but rather with GCC. Note that the error was an "Internal compiler error". If you still experience this problem, then post a bug to your distros bugtracker.