pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Failure to build misc/libreoffice - pdfium problems?



Hi,

Niclas Rosenvik <nros%netbsd.org@localhost> writes:

> On Sat, 26 Oct 2019 11:35:37 -0700 (PDT)
> Paul Goyette <paul%whooppee.com@localhost> wrote:
>
>> Is anyone else having any problem building libreoffice?  Is it
>> just me?
>> 
>> The only thing that might be "special" about my setup is that I
>> explicitly disable java support with
>> 
>>  	PKG_OPTIONS.libreoffice=	-java
>> 
>> 
>> 
>> On Sat, 19 Oct 2019, Paul Goyette wrote:
>> 
>> > With pkgsrc updated on 2019-10-19 at 04:24:32 UTC, I am getting a
>> > ton of error messages related to pdfium.  I can provide the entire
>> > 3MB log file to anyone who might be interested in looking further;
>> > there's so many errors that extracting them seems pointless.  Here
>> > is the first error I found:
>> >
>> > ...
>> > [build C  ]
>> > UnpackedTarball/pdfium/third_party/freetype/src/src/psaux/psaux.c
>> > In file included
>> > from /tmp/pkgs/misc/libreoffice/work.x86_64/libreoffice-6.3.2.2/workdir/UnpackedTarball/pdfium/third_party/freetype/src/src/base/ftbase.c:32:0: /tmp/pkgs/misc/libreoffice/work.x86_64/libreoffice-6.3.2.2/workdir/UnpackedTarball/pdfium/third_party/freetype/src/src/base/ftobjs.c:4062:3: 
>> > error: conflictingtypes for 'FT_Get_Name_Index'
>> >   FT_Get_Name_Index( FT_Face     face,
>> >   ^~~~~~~~~~~~~~~~~
>> > In file included from 
>> > /tmp/pkgs/misc/libreoffice/work.x86_64/libreoffice-6.3.2.2/workdir/UnpackedTarball/pdfium/third_party/freetype/src/include/freetype/internal/ftdebug.h:30:0,
>> >                 from 
>> > /tmp/pkgs/misc/libreoffice/work.x86_64/libreoffice-6.3.2.2/workdir/UnpackedTarball/pdfium/third_party/freetype/src/src/base/ftadvanc.c:20,
>> >                 from 
>> > /tmp/pkgs/misc/libreoffice/work.x86_64/libreoffice-6.3.2.2/workdir/UnpackedTarball/pdfium/third_party/freetype/src/src/base/ftbase.c:22:
>> > /tmp/pkgs/misc/libreoffice/work.x86_64/.x11-buildlink/include/freetype2/freetype/freetype.h:3935:3: 
>> > note: previous declaration of 'FT_Get_Name_Index' was here
>> >   FT_Get_Name_Index( FT_Face     face,
>> >   ^~~~~~~~~~~~~~~~~
>> > ...
>> >
>> > This is on a NetBSD 9.99.15 amd64 host, and building into a newly-
>> > created sandbox.
>> >
>
>
> I have had similar problems with pdfium in texmaker. The solution there
> was to not build and use pdfiums bundled freetype2 by removing the
> references to in the project file and link to freetype2 using pkgconfig.
> Perhaps something similar works for libreoffice?

I will try this suggestion.

Thank you.

> /Niclas Rosenvik

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index