pkgsrc-Users archive

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

Re: Help! not compiling /devel/m17n-lib-1.6.2 on MacOSX Leopard



Hi!

On Wed, 31 Aug 2011 16:40:38 +0900, Yosuke Kawasaki 
<you.kawasaki%gmail.com@localhost> wrote:

/Volumes/PKGSRC/pkgsrc/devel/m17n-lib/work/.buildlink/include/libintl.h:440: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'libintl_newlocale'
*** Error code 1

Does anyone have an idea to fix?

I got build failure report few months ago via private mail.
No feedback from a reporter, so not committed yet.
How about following patch?

Index: buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/x11/libX11/buildlink3.mk,v
retrieving revision 1.8
diff -u -r1.8 buildlink3.mk
--- buildlink3.mk       11 Sep 2010 18:47:09 -0000      1.8
+++ buildlink3.mk       10 May 2011 02:09:17 -0000
@@ -27,6 +27,15 @@
 .endif

 .include "../../x11/xproto/buildlink3.mk"
+
+# 
http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=d0cbf388919364fe6b5b9127f36426eb744090a0
+SUBST_CLASSES+=        fx-libX11-h-guards
+SUBST_STAGE.fx-libX11-h-guards=        post-wrapper
+SUBST_MESSAGE.fx-libX11-h-guards=\
+       Add an "X11_" string to header guards to avoid possible collision
+SUBST_FILES.fx-libX11-h-guards=        
${BUILDLINK_X11_DIR}/include/X11/Xlocale.h
+SUBST_SED.fx-libX11-h-guards=  -e 's/ _XLOCALE_H_/ _X11_XLOCALE_H/g'
+
 .endif # LIBX11_BUILDLINK3_MK

 BUILDLINK_TREE+=       -libX11

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


Home | Main Index | Thread Index | Old Index