Subject: Re: pkg/34065 (misc/celestia can't be built)
To: None <,,>
From: OBATA Akio <>
List: pkgsrc-bugs
Date: 12/09/2006 03:10:08
The following reply was made to PR pkg/34065; it has been noted by GNATS.

From: OBATA Akio <>
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?
 --- 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
 +#include <libintl.h>
 +#ifdef printf
 +#undef printf
  #define _(s) gettext(s)