bug-gnulib
[Top][All Lists]
Advanced

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

gnulib update broke printf-args.c on IRIX 6.5


From: Thomas Guyot-Sionnest
Subject: gnulib update broke printf-args.c on IRIX 6.5
Date: Fri, 16 Jan 2009 05:03:00 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Hi,

I recently updated gnulib in the nagios-plugins source tree to fix
issues with regex on HP-UX; unfortunately the update broke our IRIX 6.5
build.

You can see the full log here:
http://tinderbox.opsera.com/cgi-bin/gunzip.cgi?tree=nagiosplug&full-log=1232079870.10640

The interesting parts are outlined below:

> 1240
>               source=´printf-args.c´ object=´printf-args.o´ libtool=no \
> 1241
>               DEPDIR=.deps depmode=sgi /bin/sh ../build-aux/depcomp \
> 1242
>               cc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl  
> -I/usr/local/include -I/usr/local/include  -Ofast=ip27 -c99 -c printf-args.c
> 
> [...]
> 
> 1250
>           cc-1020 cc: ERROR File = ./wchar.h, Line = 258
> 1251
>             The identifier "mbstate_t" is undefined.
> 1252
>           
> 1253
>             extern size_t wcrtomb (char *s, wchar_t wc, mbstate_t *ps);
> 1254
>                                                         ^
> 1255
>           
> [...]
> 
> 1423
>   NEXT
>     1 error detected in the compilation of "printf-args.c".

You can recreate wchar.h with the following command (taken out of the
build log):

{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  sed -e 's|@INCLUDE_NEXT@|include_next|g' \
    -e 's|@PRAGMA_SYSTEM_HEADER@||g' \
    -e 's|@NEXT_WCHAR_H@|<wchar.h>|g' \
    -e 's|@HAVE_WCHAR_H@|1|g' \
    -e 's|@GNULIB_BTOWC@|1|g' \
    -e 's|@GNULIB_WCTOB@|0|g' \
    -e 's|@GNULIB_MBSINIT@|1|g' \
    -e 's|@GNULIB_MBRTOWC@|1|g' \
    -e 's|@GNULIB_MBRLEN@|0|g' \
    -e 's|@GNULIB_MBSRTOWCS@|0|g' \
    -e 's|@GNULIB_MBSNRTOWCS@|0|g' \
    -e 's|@GNULIB_WCRTOMB@|1|g' \
    -e 's|@GNULIB_WCSRTOMBS@|0|g' \
    -e 's|@GNULIB_WCSNRTOMBS@|0|g' \
    -e 's|@GNULIB_WCWIDTH@|0|g' \
    -e 's|@HAVE_WINT_T@|1|g' \
    -e 's|@HAVE_BTOWC@|1|g' \
    -e 's|@HAVE_MBSINIT@|1|g' \
    -e 's|@HAVE_MBRTOWC@|1|g' \
    -e 's|@HAVE_MBRLEN@|1|g' \
    -e 's|@HAVE_MBSRTOWCS@|1|g' \
    -e 's|@HAVE_MBSNRTOWCS@|1|g' \
    -e 's|@HAVE_WCRTOMB@|1|g' \
    -e 's|@HAVE_WCSRTOMBS@|1|g' \
    -e 's|@HAVE_WCSNRTOMBS@|1|g' \
    -e 's|@HAVE_DECL_WCTOB@|1|g' \
    -e 's|@HAVE_DECL_WCWIDTH@|1|g' \
    -e 's|@REPLACE_MBSTATE_T@|0|g' \
    -e 's|@REPLACE_BTOWC@|0|g' \
    -e 's|@REPLACE_WCTOB@|0|g' \
    -e 's|@REPLACE_MBSINIT@|0|g' \
    -e 's|@REPLACE_MBRTOWC@|0|g' \
    -e 's|@REPLACE_MBRLEN@|0|g' \
    -e 's|@REPLACE_MBSRTOWCS@|0|g' \
    -e 's|@REPLACE_MBSNRTOWCS@|0|g' \
    -e 's|@REPLACE_WCRTOMB@|1|g' \
    -e 's|@REPLACE_WCSRTOMBS@|0|g' \
    -e 's|@REPLACE_WCWIDTH@|0|g' \
    -e '/definition of GL_LINK_WARNING/r ../build-aux/link-warning.h' \
   < ./wchar.in.h; \
} > wchar.h-t
mv wchar.h-t wchar.h


I unfortunately do not have access to the server to find out if/where
mbstate_t should be declared. Any help appreciated.

Thanks

--
Thomas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]