After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591413 - needs to link with libstdc++
needs to link with libstdc++
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.25.x
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2009-08-11 06:49 UTC by Götz Waschk
Modified: 2009-08-12 23:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description Götz Waschk 2009-08-11 06:49:33 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
Comment 1 Behdad Esfahbod 2009-08-11 12:56:38 UTC
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.
Comment 2 Götz Waschk 2009-08-11 13:15:11 UTC
Yes, that makes it build again.
Comment 3 Behdad Esfahbod 2009-08-12 23:48:44 UTC
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.