pkgsrc-Users archive

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

Re: 2011Q1 OpenOffice3 build problem

> Since the setting of USE_BUILTIN.pixman=no was done only after
> the first failed attempt at building openoffice3, and after lots
> of other packages had been built, I've decided once more to
> retreat to square 0, i.e. with only pkg_install installed, and
> with that setting included, to see if that improves matters.

I've now done exactly that, and "no joy".

I got a tip that gnuplot could reproduce the same problem, and
sure enough...

I've done an objdump -p loop over the buildlinked shared objects:

# pwd
# for f in *.so; do
> if objdump -p $f | egrep -q libpixman; then
> echo $f
> objdump -p $f | egrep RPATH
> fi
> done
  RPATH       /usr/pkg/lib:/usr/X11R7/lib
  RPATH       /usr/pkg/lib:/usr/X11R7/lib
  RPATH       /usr/pkg/lib:/usr/X11R7/lib
  RPATH       /usr/pkg/lib

which all seems perfectly sane.

The last line in work/.work.log is, expanded for readability:

<.> /usr/pkgsrc/graphics/gnuplot/work/.gcc/bin/gcc
    -o gnuplot_x11
    gplt_x11.o gpexecute.o getcolor_x11.o
    -lX11 -lm -lpangocairo-1.0 -lcairo -lpangoft2-1.0
    -lpango-1.0 -lm -lfreetype -lz -lfontconfig -lgobject-2.0
    -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl

which also looks sane.

The libpixman from .buildlink/lib/ points to the right spot as

# ls -l libpixman*
lrwxr-xr-x  1 root  wheel    26 Jul  3 22:32 libpixman-1.a -> 
-rw-r--r--  1 root  wheel  1034 Jul  3 22:32
lrwxr-xr-x  1 root  wheel    27 Jul  3 22:32 -> 
lrwxr-xr-x  1 root  wheel    29 Jul  3 22:32 -> 
lrwxr-xr-x  1 root  wheel    34 Jul  3 22:32 -> 

However, doing a "ktrace -i make install" followed by objdump

 16658      1 ld       CALL  open(0xbb90e980,0,0x1b6)
 16658      1 ld       NAMI  "/usr/X11R7/lib/"
 16658      1 ld       RET   open 5

and it probably goes downhill from there.  Why the *&^(*&^ does
it reference that one?

It seems that none of the libraries in /usr/X11R7/lib references
libpixman either, so it's apparently not being pulled in by some
other built-in library.

Any more tracing I can do to close in on the problem?


- Håvard

Home | Main Index | Thread Index | Old Index