pkgsrc-Bugs archive

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

pkg/40716: gettext-lib breaks gtar on older NetBSD versions

>Number:         40716
>Category:       pkg
>Synopsis:       gettext-lib breaks gtar on older NetBSD versions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 22 20:50:00 +0000 2009
>Originator:     Hauke Fath
>Release:        NetBSD 1.5.4_ALPHA
Falling Raindrops
System: NetBSD mara 1.5.4_ALPHA (MARA-$Revision: 1.1 $) #0: Wed Jul 9 11:37:12 
CEST 2008 
Architecture: m68k
Machine: mac68k

        As reported in 
        on a NetBSD 1.5 system, building archivers/gtar-base fails with 

Making all in lib
/usr/bin/make-5_99_3  all-am
source='argp-help.c' object='argp-help.o' libtool=no  DEPDIR=.deps depmode=gcc 
/bin/sh ../build-aux/depcomp  cc -DHAVE_CONFIG_H -I. -I..    -I/usr/pkg/include 
 -O2 -pipe -I/usr/pkg/include -c -o argp-help.o argp-help.c
In file included from argp-help.c:50:
argp-fmtstream.h:132: `libintl_printf' is an unrecognized format function type
argp-fmtstream.h:135: `libintl_printf' is an unrecognized format function type
argp-help.c:579: warning: `always_inline' attribute directive ignored
*** Error code 1

make-5_99_3: stopped in /var/obj/pkgsrc/archivers/gtar-base/work/tar-1.20/lib
*** Error code 1

        Looking around, I found the problem is related to a GNU gettext issue 
        reported against NetBSD 3 in 

        The thread resulted in a patch
        apparently was not pulled up to the 0.14.6 release branch installed 
        by pkgsrc.


        On a NetBSD 1.5 system (probably any version before integration of 
        install gtar-base. Watch the build fail with the above error.

        Long term solution: Upgrade gettext packages.

        Short term solution: Add the patch


--- intl/   2005-05-20 23:03:38.000000000 +0200
+++ intl/
@@ -300,6 +300,13 @@ extern int fprintf (FILE *, const char *
 extern int vfprintf (FILE *, const char *, va_list);
 #undef printf
+/* NetBSD fix pulled up from gettext 0.17 */
+#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined 
+/* Don't break __attribute__((format(printf,M,N))).
+   This redefinition is only possible because the libc in NetBSD, Cygwin,
+   mingw does not have a function __printf__.  */
+# define libintl_printf __printf__
 #define printf libintl_printf
 extern int printf (const char *, ...);
 #undef vprintf


Home | Main Index | Thread Index | Old Index