1346e Build errors with editors/libreoffice - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old July 4th, 2012, 18:44
orion orion is offline
Junior Member
 
Join Date: Jun 2009
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Default Build errors with editors/libreoffice

Hello. I am having trouble building libreoffice 3.5.4.2. I deleted boost-libs and boost-jam before compiling as recommended in another thread.

Details:

FreeBSD 9.0-STABLE #28 r238090

make.conf:
Code:
WITH_OPENSSL_PORT=yes
NO_PROFILE=true
CFLAGS=-O2 -pipe
RUBY_VER=1.9
QT4_OPTIONS=CUPS QGTKSTYLE
# added by use.perl 2012-03-18 16:57:19
PERL_VERSION=5.14.2
Error:
Code:
/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptbase.cxx:240:46: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
        DBG(printf( "call ImplCreateSlide( %"SAL_PRIuUINT32" )\n", i));
                                             ^
                                              
/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptbase.cxx:458:35: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    DBG(printf("GetLayoutOffset %"SAL_PRIdINT32"\n", nLayout));
                                  ^
                                   
/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptbase.cxx:489:25: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    DBG(printf("asked %"SAL_PRIdINT32" for layout outside of 0,%d array scope\n", nOffset, EPP_LAYOUT_SIZE ));
                        ^
                         
51 warnings and 3 errors generated.
gmake: *** [/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/workdir/unxfbsd.pro/CxxObject/sd/source/filter/eppt/pptx-epptbase.o] Error 1
Does anyone have any advice for fixing this?
Reply With Quote
  #2  
Old July 4th, 2012, 22:22
lemle lemle is offline
Junior Member
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 2 Times in 1 Post
Default

Edit the file and put space between " and SAL_PRIuUINT32
for example: %" SAL_PRIdINT32 "\n"
Reply With Quote
The Following 2 Users Say Thank You to lemle For This Useful Post:
orion (July 5th, 2012), tsowa (July 5th, 2012)
  #3  
Old July 5th, 2012, 19:10
FIlIPy65's Avatar
FIlIPy65 FIlIPy65 is offline
Junior Member
 
Join Date: Jun 2012
Location: João Pessoa, Paraíba, Brazil
Posts: 25
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Please, report if the lemle's tip solves the problem. Because it can maybe resolve this PR.

Cheers.
Reply With Quote
  #4  
Old July 5th, 2012, 20:58
sir_dog sir_dog is offline
Junior Member
 
Join Date: Dec 2008
Location: Kharkiv, Ukraine
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

My +5 cents:
This hack hasn't solved the problem for me. My system is:
Code:
uname -a
FreeBSD dog 9.0-STABLE FreeBSD 9.0-STABLE #0 r237444: Fri Jun 22 22:33:53 EEST 2012     root@dog:/usr/obj/usr/src/sys/DOG  amd64
After I'd removed boost-libs and boost-jam packages, and had changed the Makefile according to lemle's advice, I still have such a problem:
Code:
/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1672:43: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    DBG(printf("GetLayoutFileId offset: %"SAL_PRIdINT32" master: %"SAL_PRIuUINT32"", nOffset, nMasterNum));
                                          ^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1672:68: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    DBG(printf("GetLayoutFileId offset: %"SAL_PRIdINT32" master: %"SAL_PRIuUINT32"", nOffset, nMasterNum));
                                                                   ^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1687:33: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    DBG(printf("write layout: %"SAL_PRIdINT32"\n", nOffset));
                                ^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:2275:24: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
            printf ("%"SAL_PRIdINT32"            (hex: %"SAL_PRIxUINT32")\n", intValue, intValue);
                       ^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:2275:58: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
            printf ("%"SAL_PRIdINT32"            (hex: %"SAL_PRIxUINT32")\n", intValue, intValue);
                                                         ^

3 warnings and 8 errors generated.
gmake[2]: *** [/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/workdir/unxfbsd.pro/CxxObject/sd/source/filter/eppt/pptx-epptooxml.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
3 warnings generated.
dmake:  Error code 2, while making '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 /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/tail_build/prj

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

/usr/local/bin/bash
cd /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2
source ./Env.Host.sh
cd tail_build
gmake clean # optional
gmake -r

when the problem is isolated and fixed exit and re-run 'make' from the top-level
gmake[1]: *** [build] Помилка 1
gmake[1]: Залишаю каталог "/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2"
gmake: *** [source-env-and-recurse] Помилка 2
*** [do-build] Error code 1

Stop in /usr/ports/editors/libreoffice.
*** [install] Error code 1

Stop in /usr/ports/editors/libreoffice.
__________________
Oh my God, They killed init, bastards!
Reply With Quote
  #5  
Old July 5th, 2012, 23:35
tsowa tsowa is offline
Junior Member
 
Join Date: Jul 2012
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default

You have to change in this file too, my errors were:

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1380:32: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
DBG(printf("write slide: %"SAL_PRIuUINT32"\n----------------\n", nPageNum));
^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1469:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
DBG(printf("write Notes %"SAL_PRIuUINT32"\n----------------\n", nPageNum));
^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1578:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
DBG(printf("write slide master: %"SAL_PRIuUINT32"\n----------------\n", nPageNum));
^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1672:43: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
DBG(printf("GetLayoutFileId offset: %"SAL_PRIdINT32" master: %"SAL_PRIuUINT32"", nOffset, nMasterNum));
^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1672:68: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
DBG(printf("GetLayoutFileId offset: %"SAL_PRIdINT32" master: %"SAL_PRIuUINT32"", nOffset, nMasterNum));
^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:1687:33: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
DBG(printf("write layout: %"SAL_PRIdINT32"\n", nOffset));
^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:2275:24: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
printf ("%"SAL_PRIdINT32" (hex: %"SAL_PRIxUINT32")\n", intValue, intValue);
^

/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2/sd/source/filter/eppt/pptx-epptooxml.cxx:2275:58: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
printf ("%"SAL_PRIdINT32" (hex: %"SAL_PRIxUINT32")\n", intValue, intValue);
^

I changed:
%"SAL_PRIdINT32" to %" SAL_PRIdINT32" and similar the rest and libreoffice compiled successfully

/home/tomek$ /usr/local/bin/libreoffice --version
LibreOffice 3.5
Reply With Quote
  #6  
Old July 6th, 2012, 04:15
TheDreamer TheDreamer is offline
Junior Member
 
Join Date: May 2012
Location: Manhattan, KS
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
Default

With libreoffice-3.5.4, removing boost-jam and boost-libs just results in them being installed as dependencies.

For me, the build would fail somewhere in 'canvas' and/or 'avmedia', running the steps specifically has clang doing a trap 6.

I then noticed that its using the ports version of clang, which I found to be newer than the base clang.

So, running the 'canvas' step separately, using the base clang worked. And, eventually after lots of restarts, I eventually got something that finished compiling. It would start, but then segv.

Now I've just tried rebuilding everything using the base clang, and it compiled straight through and seems to be working (as best as I've seen when ssh tunneling to another X desktop.)

Code:
# /usr/bin/clang -v
FreeBSD clang version 3.0 (branches/release_30 142614) 20111021
Target: x86_64-unknown-freebsd9.0
Thread model: posix

# /usr/local/bin/clang -v
clang version 3.1 (branches/release_31)
Target: amd64-portbld-freebsd9.0
Thread model: posix
The Dreamer.

Last edited by DutchDaemon; July 6th, 2012 at 12:52. Reason: Use [FILE], not [FONT]
Reply With Quote
  #7  
Old July 6th, 2012, 12:34
orion orion is offline
Junior Member
 
Join Date: Jun 2009
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by FIlIPy65 View Post
Please, report if the lemle's tip solves the problem. Because it can maybe resolve this PR.

Cheers.
Oops, yes his recommendation did solve my problem.
Reply With Quote
  #8  
Old July 6th, 2012, 14:48
zeissoctopus zeissoctopus is offline
Member
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 113
Thanks: 149
Thanked 21 Times in 14 Posts
Default

Libreoffice 3.5.4 cannot build with clang 3.1
Reply With Quote
  #9  
Old July 8th, 2012, 11:56
zeissoctopus zeissoctopus is offline
Member
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 113
Thanks: 149
Thanked 21 Times in 14 Posts
Default

Thanks to office@FreeBSD.org team's patches, editors/libreoffice can be build successfully after updating ports tree after 6 July 2012.
Reply With Quote
Reply

Tags
libreoffice

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Unable to build libreoffice-3.5.2.2 alie Installation and Maintenance of FreeBSD Ports or Packages 36 July 23rd, 2012 09:04
build time Libreoffice roelof Installation and Maintenance of FreeBSD Ports or Packages 1 June 1st, 2012 13:31
Libreoffice Issues (3.4.4 build 402) aorchid Installation and Maintenance of FreeBSD Ports or Packages 5 December 16th, 2011 06:15
libreoffice-legacy build error alphachi Installation and Maintenance of FreeBSD Ports or Packages 1 September 9th, 2011 06:59
Errors while install editors/libreoffice-3.3.2.2 goshanecr Installation and Maintenance of FreeBSD Ports or Packages 5 April 20th, 2011 16:28


All times are GMT +1. The time now is 00:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0