GNOME Bugzilla – Bug 443482
Opal wont compile with GCC 4.2
Last modified: 2008-01-07 20:26:46 UTC
Please describe the problem: When compiling Garnome 2.18.2 opal failed to compile. it was the only package not to compile aside from apps that depend on it. Steps to reproduce: compiling ./configure;make;make install Actual results: compile failes Expected results: Does this happen every time? Other information: Here is the compile error # make make P_SHAREDLIB=1 opt make[1]: Entering directory `/storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8' g++ -D_REENTRANT -Wall -fPIC -DPIC -DPTRACING -I/storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8/include -DPTRACING -I/root/garnome/src/pwlib/include -Os -march=athlon64 -O2 -pipe -fomit-frame-pointer -felide-constructors -c /storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8/src/sip/sipep.cxx -o /storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8/lib/obj_linux_x86_r/sipep.o In file included from /root/garnome/src/pwlib/include/ptlib/timer.h:133, from /root/garnome/src/pwlib/include/ptlib.h:175, from /storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8/src/sip/sipep.cxx:549: /root/garnome/src/pwlib/include/ptlib/notifier.h: In constructor 'PNotifierFunction::PNotifierFunction(void*)': /root/garnome/src/pwlib/include/ptlib/notifier.h:42: warning: the address of 'obj' will always evaluate as 'true' /root/garnome/src/pwlib/include/ptlib/critsec.h: In member function 'SIPAuthentication& SIPAuthentication::operator=(const SIPAuthentication&)': /root/garnome/src/pwlib/include/ptlib/critsec.h:234: error: 'PAtomicInteger& PAtomicInteger::operator=(const PAtomicInteger&)' is private /storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8/include/sip/sippdu.h:458: error: within this context /storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8/src/sip/sipep.cxx: In member function 'BOOL SIPEndPoint::GetAuthentication(const PString&, SIPAuthentication&)': /storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8/src/sip/sipep.cxx:1995: note: synthesized method 'SIPAuthentication& SIPAuthentication::operator=(const SIPAuthentication&)' first required here make[1]: *** [/storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8/lib/obj_linux_x86_r/sipep.o] Error 1 make[1]: Leaving directory `/storage/downloads/garnome-2.18.2/bootstrap/opal/work/main.d/opal-2.2.8' make: *** [optshared] Error 2 #
I'm a little surprised pwlib compiled successfully but not opal... Oh, well. We'll see.
CVS HEAD is fixed against GCC 4.2.
I've compiled OPAL and PTLib with opal for quite a while now. Marking as FIXED, feel free to reopen this bug if it doesn't work for you.