pkgsrc-Users archive

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

Re: openoffice build problem



> I tried to build openoffce on NetBSD-6/i386 and got this:
...
> ld: cannot find -lraptor2

I stumbled across this problem when rebuilding pkgs on my recently
upgraded-to-6.0_BETA i386-running laptop, and even though this is
probably not the correct set of fixes, this made it build for me.

Oddly, I'm not seeing this build problem on NetBSD 5.1.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/misc/openoffice3/Makefile,v
retrieving revision 1.67
diff -u -p -u -1 -r1.67 Makefile
--- Makefile    22 Mar 2012 21:36:08 -0000      1.67
+++ Makefile    18 May 2012 19:38:42 -0000
@@ -36,2 +36,5 @@ USE_LANGUAGES+=               c c++
 
+# Fix from joerg, for getting the correct libpixman library
+LDFLAGS+=-Wl,-rpath-link,/usr/pkg/lib
+
 CONFLICTS+=            staroffice-[0-9]*
@@ -212,4 +215,6 @@ post-install:
 .include "../../textproc/libxslt/buildlink3.mk"
+.include "../../textproc/raptor2/buildlink3.mk"
 .include "../../www/curl/buildlink3.mk"
 .include "../../www/neon/buildlink3.mk"
+.include "../../x11/pixman/buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"

I suspect the LDFLAGS+= setting is not needed anymore, I think it
predates the other insertions by quite a bit, and may not be neeede
after my change to the gcc wrapper to rewrite -R to -Wl,-R in gcc
invocations.  I suspect also the pixman buildlink include was a
result of an earlier attempt at fixing what was referred to "the
pixman problem", which was also fixed by the above mentioned wrapper
fix.

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index