pkgsrc-Users archive

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

Re: 2011Q1 OpenOffice3 build problem



On Sun, 03 Jul 2011 21:41:53 +0900, Havard Eidnes <he%netbsd.org@localhost> 
wrote:

I'm having problems building OpenOffice3 on NetBSD/i386 5.1 from
the 2011Q1 branch.
...
  /usr/pkgsrc/misc/openoffice3/work/.x11-buildlink/lib/libcairo.so: undefined 
reference to `pixman_image_set_destroy_function'
  /usr/pkgsrc/misc/openoffice3/work/.x11-buildlink/lib/libcairo.so: undefined 
reference to `pixman_image_composite32'
  /usr/pkgsrc/misc/openoffice3/work/.x11-buildlink/lib/libcairo.so: undefined 
reference to `pixman_image_fill_boxes'
  dmake:  Error code 1, while making 
'../../../unxbsdi3.pro/bin/pluginapp.bin'Running processes: 0

I may have the answer to this.  It appears (verified via "ktrace -i"
of the build) that by default, the built-in pixman library is used,
via pixman's builtin.mk.  The library in /usr/X11R7/lib/ is version
0.12.0, while the one in /usr/pkg/lib/ is version 0.20.2 -- the latter
has the above symbols, the former doesn't.

I've set

USE_BUILTIN.pixman=     no

in /etc/mk.conf, and started the openoffice3 build from scratch again.
I'm not sufficiently proficient in pkgsrc mechanics and conventions,
but I'm wondering if cairo's buildlink3.mk file possibly ought to set
USE_BUILTIN.pixman = no (?)

In cairo's buildlink3.mk file, pixman>=0.18.4 is required, so builtin pixman 
will never be picked up.
I guesses that your problem come from rpath order issue.

--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index