GNOME Bugzilla – Bug 591413
needs to link with libstdc++
Last modified: 2009-08-12 23:48:44 UTC
This is on Mandriva Cooker with pango 1.25.1. It fails to build like this: $ make /bin/sh ../../libtool --tag=CXX --mode=link gcc -fno-rtti -fno-exceptions -Wabi -Wpadded -Wcast-align -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,-z,relro -o main main-main.o libharfbuzz.la -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 libtool: link: gcc -fno-rtti -fno-exceptions -Wabi -Wpadded -Wcast-align -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,-z -Wl,relro -o main main-main.o ./.libs/libharfbuzz.a /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so /usr/lib/libpcre.so main-main.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status
Change your spec file to not pass -fexceptions in CFLAGS and CXXFLAGS. This is what I do in fedora: %configure CXXFLAGS="${CXXFLAGS/-fexceptions/}" I'll add magic to handle this in pango itself.
Yes, that makes it build again.
Should be fixed in 1.25.3 (due tonight) commit 4770396ca172bab95dd4d0b34a272816f1b26922 Author: Behdad Esfahbod <behdad@behdad.org> Date: Wed Aug 12 19:45:50 2009 -0400 Bug 591413 – needs to link with libstdc++ Enforce -fno-exceptions better.