pkgsrc-Bugs archive

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

Re: pkg/41940 (devel/cflow file-check test failure - uninstalled locale files (NetBSD 4.0))



The following reply was made to PR pkg/41940; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/41940 (devel/cflow file-check test failure - uninstalled 
locale files (NetBSD 4.0)) 
Date: Tue, 01 Sep 2009 17:55:56 +0700

     Date:        Tue,  1 Sep 2009 10:25:01 +0000 (UTC)
     From:        Hasso Tepper <hasso%NetBSD.org@localhost>
     Message-ID:  <20090901102501.EAA7563BAC2%www.NetBSD.org@localhost>
 
   |  I don't have a NetBSD, so just a wild guess - does adding intltool
   |  into the USE_TOOLS helps?
 
 No, no change at all.
 
 Given that this obviously isn't just a trivial fix (most PLIST type
 errors are, so I rarely look at the actual cause when I see one, I just
 report it and leave it to the maintainer) I have taken a closer look
 at the config.log
 
 From that, using NLS depends upon finding what it considers to be
 a usable gettext
 
 In the config.log I see ....
 
 configure:23554: checking for GNU gettext in libc
 configure:23584: cc -o conftest -O2 -I/usr/include -I/usr/include -L/usr/lib 
-Wl,-R/usr/lib -Wl,-R/usr/pkg/lib conftest.c  >&5
 conftest.c:140: error: size of array 'array' is negative
 configure:23591: $? = 1
 
 The only relevant part of the test program they include seems
 to be ...
 
 | 
 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 | #endif
 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
 This (to me) indicates that either __GNU_GETTEXT_SUPPORTED_REVISION is
 not defined, or that its value is 0 when called with an arg of 0, ether
 way would produce a negative array size.
 
 Perhaps the NetBSD include gettext in NetBSD 4.0 is not of a sufficiently
 new ersion, and the package needs to specify that either the pkgsrc version
 of gettext is required, or at least what version is needed, so the pkgsrc
 version can be required if the system version is too old (remember NetBSD 4.0
 is 3 or 4 years old now, so nothing include in it is going to be very
 up to date).
 
 kre
 
 


Home | Main Index | Thread Index | Old Index