Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

can't emerge libreoffice: error: template with C linkage

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
20 posts • Page 1 of 1
Author
Message
Aquous
l33t
l33t
Posts: 700
Joined: Sat Jan 08, 2011 1:10 pm

can't emerge libreoffice: error: template with C linkage

  • Quote

Post by Aquous » Tue Feb 15, 2011 6:14 pm

Hi guys :)

So I added libreoffice to package.keywords the other day, but it's not building:

Code: Select all

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/libreoffice
-3.3.0/work/libreoffice-build-3.3.0.4/build/libreoffice-3.3.0.4/xmlsecurity/sour
ce/xmlsec/nss

 it seems that the error is inside 'xmlsecurity', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

/bin/bash
cd /var/tmp/portage/app-office/libreoffice-3.3.0/work/libreoffice-build-3.3.0.4/build/libreoffice-3.3.0.4
source ./LinuxX86-64Env.Set.sh
cd xmlsecurity
build

when the problem is isolated and fixed exit and re-run 'make' from the top-level
sometimes (sadly) it is necessary to rm -Rf unxlngx6.pro in a module.
make: *** [stamp/build] Error 1
 * ERROR: app-office/libreoffice-3.3.0 failed:
 *   Build failed
Backtracking through the log reveals a slew of these errors:

Code: Select all

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/bits/stringfwd.h:44: error: template with C linkage
(line numbers and filenames of offending header vary)

I know it looks like a compiler problem, but I did an emerge -e world recently, and LibO was the ONLY package affected by this problem.

Does anyone know what I can do?
Top
geki
Advocate
Advocate
User avatar
Posts: 2387
Joined: Thu May 13, 2004 8:59 pm
Location: Germania
Contact:
Contact geki
Website

  • Quote

Post by geki » Tue Feb 15, 2011 8:52 pm

you may pastebin the build.log somewhere and post a link, please.
I have never seen this error with libreoffice(openoffice) before. :o
hear hear
Top
Aquous
l33t
l33t
Posts: 700
Joined: Sat Jan 08, 2011 1:10 pm

  • Quote

Post by Aquous » Tue Feb 15, 2011 9:27 pm

The build.log is 5,5 MB. Pastebin accepts only up to 1 MB. I've therefore posted only the part where things started to go wrong (compilation is completely normal before that part).

http://pastebin.com/uu09v7Px
Top
Felicitus
n00b
n00b
Posts: 3
Joined: Tue Feb 15, 2011 4:01 am

  • Quote

Post by Felicitus » Tue Feb 15, 2011 10:25 pm

I can confirm this. I'm running on ~amd64 with gcc-4.5.2.
Top
kicior
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Fri Mar 25, 2005 2:28 pm
Location: Lublin, Poland

  • Quote

Post by kicior » Wed Feb 16, 2011 11:19 am

I've successfully compiled libreoffice yesterday using gcc 4.5.2 on ~amd64.
Pozdrawiam,
Kicior
Top
javamonkey
n00b
n00b
User avatar
Posts: 25
Joined: Tue Oct 28, 2003 8:00 am
Location: Porto - Portugal
Contact:
Contact javamonkey
Website

  • Quote

Post by javamonkey » Wed Feb 16, 2011 2:20 pm

Activating the nsplugin flag also gives me this xmlsecutiry error. So, a workaround is to disable the flag but that all digital signature features stop working.

Anyone found a solution to this issue?

[Edit] Created bug #355185, since several of us are having the same problem.
Top
kicior
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Fri Mar 25, 2005 2:28 pm
Location: Lublin, Poland

  • Quote

Post by kicior » Wed Feb 16, 2011 3:30 pm

My libreoffice compiled with nsplugin flag enabled. Maybe something else is wrong
Pozdrawiam,
Kicior
Top
Aquous
l33t
l33t
Posts: 700
Joined: Sat Jan 08, 2011 1:10 pm

  • Quote

Post by Aquous » Wed Feb 16, 2011 5:52 pm

Thanks javamonkey, emerging with USE=-nsplugin solved the problem for me :D (better a slightly crippled LibO than none at all :))
Top
javamonkey
n00b
n00b
User avatar
Posts: 25
Joined: Tue Oct 28, 2003 8:00 am
Location: Porto - Portugal
Contact:
Contact javamonkey
Website

  • Quote

Post by javamonkey » Wed Feb 16, 2011 6:57 pm

It seems that both openoffice and libreoffice stopped building with nsplugin after the upgrade of libxml2 from 2.7.7 to 2.7.8 since the latest version introduced the icu flag that causes the problem.

I guess I'll take the plunge and try to build libreoffice with the older version, just to confirm.
Top
javamonkey
n00b
n00b
User avatar
Posts: 25
Joined: Tue Oct 28, 2003 8:00 am
Location: Porto - Portugal
Contact:
Contact javamonkey
Website

  • Quote

Post by javamonkey » Wed Feb 16, 2011 9:14 pm

Ok, got it working.

1. Downgraded libxml2 to 2.7.7
2. Emerged libreoffice with nsplugin
3. Upgrade libxml2 to 2.7.8

libreoffice is still working. Added this to the bug. Seems something in libxml2 is breaking libreoffice and openoffice builds.
Top
platojones
Veteran
Veteran
User avatar
Posts: 1602
Joined: Wed Oct 23, 2002 10:48 pm
Location: Just over the horizon

  • Quote

Post by platojones » Thu Feb 17, 2011 2:01 am

javamonkey wrote:Ok, got it working.

1. Downgraded libxml2 to 2.7.7
2. Emerged libreoffice with nsplugin
3. Upgrade libxml2 to 2.7.8

libreoffice is still working. Added this to the bug. Seems something in libxml2 is breaking libreoffice and openoffice builds.
Not an option if you are running KDE-4.6, I'm afraid. I tried to downgrade libxml2 and it really started jacking with my KDE-4.6 install. The '-nsplugin' solution seems to be the only way. I suspect this will get fixed soon though...I really like the idea of libreoffice and it probably has the best chance of getting fixed soon.
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

  • Quote

Post by lyallp » Thu Feb 17, 2011 8:39 am

FYI: I have encountered the same problem on ~x86. Attempting -nsplugin use flag.
...Lyall
Top
Aquous
l33t
l33t
Posts: 700
Joined: Sat Jan 08, 2011 1:10 pm

  • Quote

Post by Aquous » Thu Feb 17, 2011 3:49 pm

It looks like the bug has been fixed 8)
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

  • Quote

Post by lyallp » Fri Feb 18, 2011 2:52 am

Yep. Compiled on ~amd64.
...Lyall
Top
javamonkey
n00b
n00b
User avatar
Posts: 25
Joined: Tue Oct 28, 2003 8:00 am
Location: Porto - Portugal
Contact:
Contact javamonkey
Website

  • Quote

Post by javamonkey » Fri Feb 18, 2011 1:29 pm

Yep, seems to be fixed: I tested both on x86 and amd64.
Top
genterminl
Guru
Guru
User avatar
Posts: 528
Joined: Sat Feb 12, 2005 12:01 am
Location: Connecticut, USA

  • Quote

Post by genterminl » Fri Apr 15, 2011 3:20 pm

It's fixed for libreoffice, but not for openoffice. However, as it appears the former will eventually completely replace the latter in portage, I suppose the only good answer is to switch now. (see [bug=354911]this bug[/bug])
Top
albright
Advocate
Advocate
User avatar
Posts: 2588
Joined: Sun Nov 16, 2003 6:36 pm
Location: Near Toronto

  • Quote

Post by albright » Mon Apr 18, 2011 9:34 pm

Well, it's not fixed for me. I just tried to emerge libreoffice 3.3.1 and got
the dreaded error:

Code: Select all

ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/mdds
ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/icc
ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/ixion
ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/afms
ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/libwpd
ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/libtextcat
ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/mythes
ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/lpsolve
ERROR: error 65280 occurred while making /mnt/sdb1/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/hyphen
And I have -nsplugin .... The flags I had set were:

Code: Select all

USE="cups dbus kde ldap opengl
Any one know what could be *my* problem? TIA,
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Top
genterminl
Guru
Guru
User avatar
Posts: 528
Joined: Sat Feb 12, 2005 12:01 am
Location: Connecticut, USA

  • Quote

Post by genterminl » Tue Apr 19, 2011 2:56 am

I successfully emerged 3.3.1 with "cups dbus gstreamer gtk java kde nsplugin opengl " so it's probably not the same issue. There are a number of hits if you google for "error 65280 occurred while making"- do any of them seem relevant?
Top
albright
Advocate
Advocate
User avatar
Posts: 2588
Joined: Sun Nov 16, 2003 6:36 pm
Location: Near Toronto

  • Quote

Post by albright » Tue Apr 19, 2011 11:48 am

I reset features to -j1 in make.conf and it built
(but that is **pathetic**)
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Top
Yamakuzure
Advocate
Advocate
User avatar
Posts: 2323
Joined: Wed Jun 21, 2006 11:06 am
Location: Adendorf, Germany
Contact:
Contact Yamakuzure
Website

  • Quote

Post by Yamakuzure » Wed May 18, 2011 8:19 am

It doesn't even work with -j 1 any more when re-emerging openoffice. :-(

So I'll try out LibreOffice. I really hope, that unoconv still works with it, because I need unoconv for my work.
Edited 220,176 times by Yamakuzure
Top
Post Reply

20 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic