pkgsrc-Users archive

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

Re: 2011Q1 OpenOffice3 build problem



Hi,

privately you suggested adding this line:

LDFLAGS+=-Wl,-rpath-link,/usr/pkg/lib

to gnuplot's pkgsrc Makefile, and sure enough, that fixed the
build problem for gnuplot.

However, trying to apply the same medicine to openoffice3 did
unfortunately not meet with success.  The line in work.log which
corresponds to the failed link is

<.> /usr/pkgsrc/misc/openoffice3/work/.gcc/bin/g++
    -Wl,-z -Wl,combreloc -Wl,-z -Wl,defs
    -Wl,-R/usr/pkg/lib/OpenOffice.org3.1.1/openoffice.org3/basis-link/program
    
-Wl,-R/usr/pkg/lib/OpenOffice.org3.1.1/openoffice.org3/basis-link/program/../ure-link/lib
    -L/usr/pkgsrc/misc/openoffice3/work/OOO310_m19/solver/310/unxbsdi3.pro/lib
    -Wl,-export-dynamic
    -L../../../unxbsdi3.pro/lib
    -L/usr/pkgsrc/misc/openoffice3/work/.buildlink/lib/xulrunner-sdk/sdk/lib
    ../../../unxbsdi3.pro/obj/npwrap.o
    ../../../unxbsdi3.pro/obj/npnapi.o
    ../../../unxbsdi3.pro/obj/mediator.o
    ../../../unxbsdi3.pro/obj/plugcon.o
    -Wl,--whole-archive
    -Wl,--no-whole-archive
    -Wl,-R/usr/X11R7/lib
    -L/usr/pkgsrc/misc/openoffice3/work/.x11-buildlink/lib
    -R/usr/X11R7/lib
    -Wl,-R/usr/pkg/lib
    -pthread
    -L/usr/pkgsrc/misc/openoffice3/work/.buildlink/lib
    -o ../../../unxbsdi3.pro/bin/pluginapp.bin
    -I/usr/pkgsrc/misc/openoffice3/work/.buildlink/include
    -lsalcpprt -ltlbi -lvos3gcc3 -luno_sal -lXaw -lXt -lXext
    -lX11 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0
    -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor
    -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0
    -lgio-2.0 -lXfixes -lcairo -lX11 -lpng15 -lpango-1.0 -lm
    -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0
    -lgthread-2.0 -lglib-2.0 -lintl -lm -lc -lgcc_s -lstdc++
    -lpthread

As is evident, it is specifying /usr/X11R7/lib ahead of
/usr/pkg/lib as a run-path, and those arguments are being used
also when finding shared libraries needed by explicitly mentioned
shared libraries (as in the case of libpixman-1 which is
referenced both from pangocairo and cairo).

Now, openoffice3 is a huge beast, and my last rebuild took almost
6 hours before failing, so if I'm going to continue to try and
fail there's no telling if I'll ever have a working openoffice3
on this machine again.

So...  Hints for fixing openoffice3 would be much appreciated.


Regards,

- Håvard


Home | Main Index | Thread Index | Old Index