ChrisZim / edb-debugger

Automatically exported from code.google.com/p/edb-debugger
GNU General Public License v2.0
0 stars 0 forks source link

EDB fails to build on Ubuntu 8.04, q_atomic_set_ptr not declared in this scope #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am unable to get EDB to build on an Ubuntu 8.04 machine. Here is the output 
I'm running into:

shell> qmake-qt4 QT_ARCH=i386

shell> make
... (taken out to save space) ...
cd src/ && make -f Makefile 
make[1]: Entering directory `/home/hinmanm/debugger/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB 
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore 
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui 
-I/usr/include/qt4 -I../include -Iwidgets -Iedisassm -Ios/unix 
-I../include/os/unix -Iarch/i386 -I../include/arch/i386 -I. -I. -o Debugger.o 
Debugger.cpp
Debugger.cpp: In function

Original issue reported on code.google.com by evan.teran on 3 Oct 2012 at 3:21

GoogleCodeExporter commented 9 years ago
This is an unfortunate case of me using a non-public API that eventually got 
removed. This is fixed in the 0.9.0 branch.

For now, to get things to compile, you can alter the two problem functions to 
look like this:

    DebugEventHandlerInterface *edb::v1::setDebugEventHandler(DebugEventHandlerInterface *p) {

        Q_CHECK_PTR(p);

        // TODO: add locks here, used to be atomic
        DebugEventHandlerInterface *const oldptr = g_DebugEventHandler;
        g_DebugEventHandler = p;
        return oldptr;
    }

    DebugEventHandlerInterface *edb::v1::debugEventHandler() {
        return g_DebugEventHandler;
    }

Original comment by evan.teran on 3 Oct 2012 at 3:54

GoogleCodeExporter commented 9 years ago
Excellent, works like a charm.

Original comment by evan.teran on 3 Oct 2012 at 3:55