Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356095 - x11-libs/gtkmathview-0.8.0 + dev-libs/libxml2-2.7.8[icu] - /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/bits/stringfwd.h:44: error: template with C linkage
Summary: x11-libs/gtkmathview-0.8.0 + dev-libs/libxml2-2.7.8[icu] - /usr/lib/gcc/x86_6...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 17:06 UTC by Joaquim Uchoa
Modified: 2011-03-08 15:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,981.26 KB, text/plain)
2011-02-22 17:13 UTC, Joaquim Uchoa
Details
fix template with C linkage patch (gtkmathview-0.8.0-fix-template.patch,2.16 KB, patch)
2011-03-01 09:34 UTC, yury fedorchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joaquim Uchoa 2011-02-22 17:06:34 UTC
Hello all,

I can't build x11-libs/gtkmathview-0.8.0 with dev-libs/libxml2-0.8.0 

I get several errors about "template with C linkage), like this one:

In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/string:41,
                 from /usr/include/unicode/std_string.h:39,
                 from /usr/include/unicode/unistr.h:31,
                 from /usr/include/unicode/strenum.h:14,
                 from /usr/include/unicode/uenum.h:24,
                 from /usr/include/unicode/ucnv.h:51,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:807,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1248,
                 from gtkmathview_common.h:58,
                 from gtkmathview_libxml2.h:24,
                 from gtkmathview_libxml2.cc:19:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/bits/stringfwd.h:44: error: template with C linkage

In http://forums.gentoo.org/viewtopic-t-864707-start-0.html I could see someone with the same problem with libreoffice and libxml2. So, I've downgraded libxml2 to 2.7.7 and could get success with gtkmathview compilation. This is a ugly workaround to me. 

Reproducible: Always

Steps to Reproduce:
1. Install dev-libs/libxml-2.7.8
2. Try to compile x11-libs/gtkmathview-0.8.0
3. Crash with C 

Actual Results:  
Fail with dev-libs/libxml-2.7.8
Success with dev-libs/libxml-2.7.7

Expected Results:  
Success with dev-libs/libxml-2.7.8 

libxml compiled with "icu ipv6 python readline -debug -doc -examples -test"
gtkmathview compiled with "gtk mathml svg t1lib"

All these USE flags are global in /etc/make.conf

If necessary, I can post make.conf and build.log
Comment 1 Joaquim Uchoa 2011-02-22 17:09:22 UTC
emerge --info of one of 4 machines where the problem occurs (there is a core2 in the set of machines with the same problem):

Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.37-ginux x86_64)
=================================================================
System uname: Linux-2.6.37-ginux-x86_64-AMD_Athlon-tm-_X2_Dual-Core_QL-65-with-gentoo-1.12.14
Timestamp of tree: Tue, 22 Feb 2011 12:00:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula PUEL AdobeFlash-10.1 googleearth sun-bcla-java-vm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pt_BR.UTF-8"
LC_ALL="pt_BR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pt_BR pt-BR pt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac acl acpi alsa amd64 archive aspell bash-completion berkdb branding bzip2 cairo caps cdda cddb cdr cli colordiff consolekit cpudetection cracklib crypt css cups curl custom-optimization cxx dbus device-mapper dga dirac djvu dri dts dv dvb dvd dvdr editor encode exif expat faac faad fam fbcon ffmpeg fftw flac fontconfig fortran fuse gcj gdbm gif git glade glitz gmp gnutls gphoto2 gpm graphviz gs gsm gstreamer gtk hal hardened hpn i18n iconv icu id3tag ieee1394 imagemagick ipv6 java jce joystick jpeg jpeg2k kerberos lame laptop latex lcms ldap libffi libnotify libsamplerate lzo mad mathml matroska mikmod mjpeg mmap mmx mmxext mng modules mp3 mpeg mpi mudflap multilib ncurses network new-login nls nptl nptlonly nsplugin ogg openal opencore-amr opengl openmp openxml optimization pam pango pch pcre pdf perl pic plotutils plugins png postscript ppds pppd profile python qt3support quicktime readline samba sasl scanner schroedinger sdl session skins smp sndfile sox speex spell sqlite sqlite3 sse sse2 ssl startup-notification subtitles svg sysfs syslog system-sqlite t1lib tcpd theora threads thunar tiff timidity tools truetype twolame udev unicode usb utils v4l v4l2 vaapi vorbis vpx wavpack webkit wifi wma wmf x264 xattr xcb xcomposite xinerama xml xorg xosd xpm xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon casio directory gsmart300 hp215 kodak konica lg_gsm minolta mustek panasonic pccam300 pccam600 ptp2 ricoh samsung sonix sonydscf1 sonydscf55 spca50x toshiba" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="joystick keyboard mouse synaptics evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt_BR pt-BR pt" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon v4l none" XFCE_PLUGINS="brightness logout menu trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Joaquim Uchoa 2011-02-22 17:13:03 UTC
Created attachment 263517 [details]
build.log

build log of one of the machine with the same problem.
Comment 4 yury fedorchenko 2011-03-01 09:34:25 UTC
Created attachment 264233 [details, diff]
fix template with C linkage patch
Comment 5 Pacho Ramos gentoo-dev 2011-03-01 17:16:03 UTC
Does the rest of gnome team agree with using that patch?
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-03-01 19:27:17 UTC
the patch doesn't look too bad, could you make sure it's upstreamed before adding it to the tree ?
Comment 7 Pacho Ramos gentoo-dev 2011-03-01 20:01:46 UTC
Looks like gtkmathview bugzilla is down, also the project seems dead for ages :-/
Comment 8 Pacho Ramos gentoo-dev 2011-03-06 12:51:26 UTC
(In reply to comment #6)
> the patch doesn't look too bad, could you make sure it's upstreamed before
> adding it to the tree ?
> 

I am waiting for mailing list confirmation message :-/
Comment 9 Pacho Ramos gentoo-dev 2011-03-06 13:13:22 UTC
+  06 Mar 2011; Pacho Ramos <pacho@gentoo.org> gtkmathview-0.8.0.ebuild,
+  +files/gtkmathview-0.8.0-fix-template.patch:
+  Fix building against libxml2[icu], bug #356095 by Joaquim Uchoa. Thanks a lot
+  to yury fedorchenko for the patch.
+
Comment 10 Joaquim Uchoa 2011-03-08 15:32:45 UTC
Just to inform: compilation ok now!