bugGnome Chemistry Utils - Bugs: bug #39302, gnome-chemistry-utils-0.14.2 build...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39302: gnome-chemistry-utils-0.14.2 build failure - error: template with C linkage

Submitter:  Justin <jlec>
Submitted:  Thu 20 Jun 2013 07:49:50 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Jump to the original submission

Thu 11 Jul 2013 09:06:45 AM UTC, comment #14: 

Closing then. Goffice bug, so invalid there. Thanks for the report.

Jean Bréfort <jean_brefort>
Group administrator
Thu 11 Jul 2013 08:23:26 AM UTC, comment #13: 

I just tested it and it worked. As goffice isn't bumped on Gentoo, I will add the backport of the fix to that release.

Thanks for your help.

Justin <jlec>
Thu 11 Jul 2013 08:02:24 AM UTC, comment #12: 

Fixed in goffice, unfortunately just after 0.10.4 release:

https://git.gnome.org/browse/goffice/commit/?id=f418a6cb29aa19165f9c4dad84858cd479d89d84

Jean Bréfort <jean_brefort>
Group administrator
Thu 11 Jul 2013 07:54:57 AM UTC, comment #11: 

goffice/component/goffice-component.h has such issue. Try moving the three includes after G_END_DECLS. This is clearly a bug, and I'm guilty.

Jean Bréfort <jean_brefort>
Group administrator
Thu 11 Jul 2013 07:49:07 AM UTC, comment #10: 

One other possible cause would be an include directive inside an extern "C" block.

(file #28538, file #28539, file #28540)

Jean Bréfort <jean_brefort>
Group administrator
Thu 11 Jul 2013 06:46:47 AM UTC, comment #9: 

Okay I bump those packages, but I still have this error.

Could you please attach a configure and build.log from your build? Perhaps I can't spot a difference to what I have.

Justin <jlec>
Wed 10 Jul 2013 08:12:07 PM UTC, comment #8: 

libxml2 2.9.1
goffice-0.10.4 (git)

Jean Bréfort <jean_brefort>
Group administrator
Wed 10 Jul 2013 07:59:40 PM UTC, comment #7: 

which exact versions of
goffice
libxml2
are you using?

I tried to check everything, but I couldn't spot anything.

Justin <jlec>
Wed 10 Jul 2013 04:57:11 PM UTC, comment #6: 

it's certainly not the good way. Looks like one header starts an extern "C" block but does not ends it. Seems this is not the case for me.

Jean Bréfort <jean_brefort>
Group administrator
Wed 10 Jul 2013 03:46:31 PM UTC, comment #5: 

Following patch fixes the issue for. I don't know whether this is a correct way but I does its job.

Justin <jlec>
Fri 21 Jun 2013 07:59:07 AM UTC, comment #4: 

I'm using eglibc-2.17 from debain sid

Jean Bréfort <jean_brefort>
Group administrator
Fri 21 Jun 2013 07:35:34 AM UTC, comment #3: 

It is reproducible for glibc-2.15.

Justin <jlec>
Fri 21 Jun 2013 07:09:03 AM UTC, comment #2: 

I rechecked with gcc-4.6, which worked. So it isn't due to gcc. Which glibc version are you using?

Justin <jlec>
Thu 20 Jun 2013 08:59:05 PM UTC, comment #1: 

I'm unable to reproduce. This is a bug in some header, or a g++ issue, I 'can't say.

Jean Bréfort <jean_brefort>
Group administrator
Thu 20 Jun 2013 07:49:50 PM UTC, original submission:  

libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DDATADIR=\"/usr/share\" -I. -I.. -I.. -I../libs -pthread -I/usr/include/libgoffice-0.10 -I/usr/include/libgsf-1 -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -Wall -Wextra -march=corei7-avx -O2 -pipe -frecord-gcc-switches -c gchemutils.cc  -fPIC -DPIC -o .libs/gchemutils.o
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/include/g++-v4/bits/stringfwd.h:40:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/include/g++-v4/string:39,
                 from /usr/include/unicode/std_string.h:30,
                 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:810,
                 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:1299,
                 from /usr/include/libgsf-1/gsf/gsf-libxml.h:26,
                 from /usr/include/libgsf-1/gsf/gsf.h:59,
                 from /usr/include/libgoffice-0.10/goffice/goffice.h:26,
                 from /usr/include/libgoffice-0.10/goffice/component/go-component.h:26,
                 from /usr/include/libgoffice-0.10/goffice/component/goffice-component.h:33,
                 from gchemutils.h:26,
                 from gchemutils-priv.h:26,
                 from gchemutils.cc:24:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/include/g++-v4/bits/memoryfwd.h:63:3: error: template with C linkage
   template<typename>
   ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/include/g++-v4/bits/memoryfwd.h:66:3: error: template specialization with C linkage
   template<>
   ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/include/g++-v4/bits/memoryfwd.h:70:3: error: template with C linkage
   template<typename, typename>
   ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/include/g++-v4/string:39:0,
                 from /usr/include/unicode/std_string.h:30,
                 from /usr/include/unicode/unistr.h:31,


I am using
gcc-4.8
goffice-0.10.2

Portage 2.2.0_alpha183 (default/linux/amd64/13.0, gcc-4.8.1-asneeded, glibc-2.17, 3.9.6-lh-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.9.6-lh-r1-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16345208 total,   5771628 free
KiB Swap:    3987452 total,   3953972 free
Timestamp of tree: Thu, 20 Jun 2013 16:30:01 +0000
ld GNU gold (GNU Binutils 2.23.1) 1.11
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.8-r1, 2.7.5, 3.1.5-r1, 3.2.5, 3.3.2
dev-util/ccache:          3.1.9-r1::science
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.4.7, 4.5.4, 4.6.4, 4.7.3, 4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo sunrise bicatali betagarden dummy Neurogeek science Raspberry-Pi-Overlay last-hope g-ctan
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g -Wimplicit-function-declaration"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/eselect/ /usr/share/gnupg/qualified.txt /usr/share/nano/ /var/lib/hsqldb /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g -Wenum-compare"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS=" -vt --keep-going --autounmask-write --autounmask --quiet-build=n"
FCFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g"
FEATURES="assume-digests binpkg-logs buildsyspkg candy ccache collision-protect compressdebug distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g"
GENTOO_MIRRORS=" /mnt/tmpfs/ http://gentoo.j-schmitz.net/mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j12 -l9"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-z -e -9 -v"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/tree"
PORTDIR_OVERLAY="/local/overlays/sunrise-reviewed /local/overlays/bicatali /local/overlays/betagarden /local/overlays/dummy /local/overlays/neurogeek /local/overlays/sci /local/overlays/gen2pi /local/overlays/lh-overlay /local/overlays/g-ctan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 avx bash-completion berkdb branding bzip2 cairo caps cli cracklib crypt cxx dbus dri fortran gdbm gif gmp gnome gnome-keyring gpm gstreamer gtk iconv icu ipv6 jpeg jpeg2k mmx mmxext modules mudflap multilib ncurses network-cron nls nptl nsplugin numa opengl openmp pam pcre pgo png pulseaudio qt3support raw readline session smp sse sse2 sse2_4way sse2check sse3 sse4 sse41 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification tcpd threads tiff truetype unicode vaapi vdpau xinerama zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport scripting-javascript wiki-publisher nlpsolver" LINGUAS="en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi stub_status" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_6 python2_7 python3_1 python3_2 python3_3 pypy1_9 pypy2_0" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm armeb" QEMU_USER_TARGETS="i386 x86_64 arm armeb" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="2.6 2.7 3.1 3.2 3.3 2.7-pypy-1.9 2.7-pypy-2.0"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS


Justin <jlec>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #28538:  config.log added by jean_brefort (68KiB - text/x-log - The various logs.)
file #28539:  configure.log added by jean_brefort (13KiB - text/x-log - The various logs.)
file #28540:  make.log added by jean_brefort (44KiB - text/x-log - The various logs.)
file #28530:  gnome-chemistry-utils-0.14.2-extern-c.patch added by jlec (2KiB - text/x-patch - extern C patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jlec (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-11 jean_brefort StatusNone Invalid
        Open/ClosedOpen Closed
    2013-07-11 jean_brefort Attached File- Added config.log, #28538
        Attached File- Added configure.log, #28539
        Attached File- Added make.log, #28540
    2013-07-10 jlec Attached File- Added gnome-chemistry-utils-0.14.2-extern-c.patch, #28530
    2013-06-20 jlec Attached File- Added gnome-chemistry-utils-0.14.2:20130620-193528.log, #28363

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code