aMule Forum

English => Compilation problems => Topic started by: Nodsu on June 20, 2006, 11:29:13 AM

Title: CVS 20060620 compile fails at Proxy.cpp under NetBSD
Post by: Nodsu on June 20, 2006, 11:29:13 AM
A Typo?
Code: [Select]
distccd[3552] (dcc_check_compiler_masq) Warning: gcc on distccd's path is /cygdrive/c/cmd/gcc and really a link to /usr/distcc-bin/gcc.exe
Proxy.cpp: In member function `bool CProxyStateMachine::Start(const
   wxIPaddress&, wxSocketClient*)':
Proxy.cpp:175: error: parse error before `&' token

Changing "dynamic_cast(peerAddress)" to "dynamic_cast(peerAddress)" (remove the blank before &) makes the problem go away.

Edit: Blah! Didn't go anywhere
Title: Re: CVS 20060620 compile fails at Proxy.cpp under NetBSD
Post by: Gerd78 on June 20, 2006, 12:26:52 PM
Same or at least very similar problem here in Proxy.cpp, line 175:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/gtk2-unicode-release-static-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -DwxUSE_GUI=0  -I./libs -Ilibs -DAMULE_DAEMON  -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef   -MT amuled-Proxy.o -MD -MP -MF ".deps/amuled-Proxy.Tpo" -c -o amuled-Proxy.o `test -f 'Proxy.cpp' || echo './'`Proxy.cpp; \
then mv -f ".deps/amuled-Proxy.Tpo" ".deps/amuled-Proxy.Po"; else rm -f ".deps/amuled-Proxy.Tpo"; exit 1; fi
Proxy.cpp: In member function ‘bool CProxyStateMachine::Start(const wxIPaddress&, wxSocketClient*)’:
Proxy.cpp:175: error: expected unqualified-id before ‘&’ token
Proxy.cpp:175: error: ISO C++ forbids declaration of ‘type name’ with no type
Proxy.cpp:175: error: expected `)' before ‘&’ token
Proxy.cpp:175: error: expected `{' before ‘&’ token
Proxy.cpp:175: error: ‘e’ was not declared in this scope
Proxy.cpp:175: error: expected `;' before ‘)’ token
Proxy.cpp: In member function ‘virtual wxDatagramSocket& CDatagramSocketProxy::RecvFrom(wxSockAddress&, void*, wxUint32)’:
Proxy.cpp:1377: error: expected unqualified-id before ‘&’ token
Proxy.cpp:1377: error: ISO C++ forbids declaration of ‘type name’ with no type
Proxy.cpp:1377: error: expected `)' before ‘&’ token
Proxy.cpp:1377: error: expected `{' before ‘&’ token
Proxy.cpp:1377: error: ‘e’ was not declared in this scope
Proxy.cpp:1377: error: expected `;' before ‘)’ token
make[3]: *** [amuled-Proxy.o] Fehler 1
make[3]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/src/packages/BUILD/amule-cvs'
make: *** [all] Fehler 2
Try the attached patch.
Title: Re: CVS 20060620 compile fails at Proxy.cpp under NetBSD
Post by: Gerd78 on June 20, 2006, 12:57:57 PM
Alternative patch attached: is needed for the daemon only, but not for the other apps.
Title: Re: CVS 20060620 compile fails at Proxy.cpp under NetBSD
Post by: Kry on June 20, 2006, 03:24:03 PM
Any of you read the news on the front page? :P
Title: Re: CVS 20060620 compile fails at Proxy.cpp under NetBSD
Post by: Gerd78 on June 20, 2006, 03:41:58 PM
Yes, of course we do, but actually I don't get the hint - is this a duplicate? If so, sorry...
Title: Re: CVS 20060620 compile fails at Proxy.cpp under NetBSD
Post by: Kry on June 20, 2006, 04:00:43 PM
Just playing with you, guys. Fixed on CVS (I'm parsing all threads)