pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/34065 (misc/celestia can't be built)
The following reply was made to PR pkg/34065; it has been noted by GNATS.
From: OBATA Akio <obache%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: ccatrian%eml.cc@localhost
Subject: Re: pkg/34065 (misc/celestia can't be built)
Date: Sat, 9 Dec 2006 12:05:50 +0900
On Fri, 8 Dec 2006 14:19:56 -0300, Cesar Catrian Carreno wrote:
> Still the same using latest pkgsrc sources and -current from 20061204-UTC,
> and rebuilding the dependent packages gettext-lib and libiconv.
On NetBSD-current, no need to install pkgsrc's gettext-lib and libiconv.
I don't know why pkgsrc's gettext-lib is used instead of native one,
but this issue probably occured by patch-ah, adding include <libintl.h>.
In GNU gettext's libint.h,
#undef printf
#define printf libintl_printf
extern int printf (const char *, ...);
If include libintl.h, Overlay::printf is replaced, otherwize, not replaced,
so failed to link.
If you replace patch-ah with following, and type "make mps",
is your problem fixed?
$NetBSD$
--- src/celutil/util.h.orig 2006-01-17 21:28:30.000000000 +0100
+++ src/celutil/util.h
@@ -28,6 +28,10 @@
#ifdef _WIN32
#define _(s) s
#else
+#include <libintl.h>
+#ifdef printf
+#undef printf
+#endif
#define _(s) gettext(s)
#endif
Home |
Main Index |
Thread Index |
Old Index