Bug#443588: FTBFS: Undefined reference to google_breakpad ExceptionHandler constructor and destructor

Matt Kraai kraai at ftbfs.org
Sat Sep 22 16:56:17 UTC 2007


Package: bug-buddy
Version: 2.20.0-2
Severity: serious

bug-buddy fails to compile because of undefined references to
gnome_breakpad's ExceptionHandler's constructor and destructor:

g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.2.1/crtbeginS.o  .libs/gnome-breakpad.o  /usr/lib/libgdk-x11-2.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lX11 -lXfixes -lelf -L/usr/lib/gcc/i486-linux-gnu/4.2.1 -L/usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.2.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.2.1/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/crtn.o  -Wl,-z -Wl,defs -Wl,-O1 -Wl,--as-needed -Wl,-soname -Wl,libgnomebreakpad.so.0 -o .libs/libgnomebreakpad.so.0.0.0
.libs/gnome-breakpad.o: In function `__tcf_0':
/tmp/buildd/bug-buddy-2.20.0/gnome-breakpad/gnome-breakpad.cc:295: undefined reference to `google_breakpad::ExceptionHandler::~ExceptionHandler()'
.libs/gnome-breakpad.o: In function `gtk_module_init':
/tmp/buildd/bug-buddy-2.20.0/gnome-breakpad/gnome-breakpad.cc:295: undefined reference to `google_breakpad::ExceptionHandler::ExceptionHandler(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool (*)(void*), bool (*)(char const*, char const*, void*, bool), void*, bool)'

Instead of just setting the flag that prevents the google_breakpad
source code from being used, the define used by the C source code also
needs to be unset.  The following patch does so.  It's a bit hard to
read, so I've also attached the resulting 02_disable_breakpad.patch.

-- 
Matt
-------------- next part --------------
diff -ru bug-buddy-2.20.0~/debian/patches/02_disable_breakpad.patch bug-buddy-2.20.0/debian/patches/02_disable_breakpad.patch
--- bug-buddy-2.20.0~/debian/patches/02_disable_breakpad.patch	2007-09-22 09:40:38.000000000 -0700
+++ bug-buddy-2.20.0/debian/patches/02_disable_breakpad.patch	2007-09-22 09:45:14.000000000 -0700
@@ -1,22 +1,22 @@
---- configure.in.orig	2007-09-21 22:07:09.017597198 +0200
-+++ configure.in	2007-09-21 22:07:32.238920505 +0200
-@@ -98,6 +98,8 @@
- 	fi
- fi
+--- configure.in.orig	2007-09-22 09:43:07.000000000 -0700
++++ configure.in	2007-09-22 09:44:35.000000000 -0700
+@@ -90,7 +90,7 @@
+        GOOGLE_BREAKPAD_SUPPORTED_ARCH="yes" ;;
+ esac
  
-+use_google_breakpad=no
-+
- AM_CONDITIONAL(USE_GOOGLE_BREAKPAD, test x$use_google_breakpad = xyes)
+-if test x$GOOGLE_BREAKPAD_SUPPORTED_OS = xyes ; then
++if false && test x$GOOGLE_BREAKPAD_SUPPORTED_OS = xyes ; then
+ 	if test x$GOOGLE_BREAKPAD_SUPPORTED_ARCH = xyes ; then
+ 		echo "OS and CPU supported: enabling google-breakpad"
+ 		AC_DEFINE(ENABLE_GOOGLE_BREAKPAD, 1, [define if google-break is enabled])
+--- configure.orig	2007-09-22 09:43:09.000000000 -0700
++++ configure	2007-09-22 09:44:22.000000000 -0700
+@@ -21609,7 +21609,7 @@
+        GOOGLE_BREAKPAD_SUPPORTED_ARCH="yes" ;;
+ esac
  
- GDK_REQUIRED="gdk-2.0 >= 2.9"
---- configure.orig	2007-09-21 22:07:45.471674597 +0200
-+++ configure	2007-09-21 22:07:52.048049363 +0200
-@@ -21621,6 +21621,8 @@
- 	fi
- fi
+-if test x$GOOGLE_BREAKPAD_SUPPORTED_OS = xyes ; then
++if false && test x$GOOGLE_BREAKPAD_SUPPORTED_OS = xyes ; then
+ 	if test x$GOOGLE_BREAKPAD_SUPPORTED_ARCH = xyes ; then
+ 		echo "OS and CPU supported: enabling google-breakpad"
  
-+use_google_breakpad=no
-+
-  if test x$use_google_breakpad = xyes; then
-   USE_GOOGLE_BREAKPAD_TRUE=
-   USE_GOOGLE_BREAKPAD_FALSE='#'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02_disable_breakpad.patch
Type: text/x-diff
Size: 911 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20070922/84aed96d/attachment-0003.patch 


More information about the pkg-gnome-maintainers mailing list