pkgsrc-Bugs archive

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

pkg/47932: devel/glib2 on NetBSD 6.99.21 gfileutils.c:1022:9: error: #pragma GCC diagnostic not allowed inside functions



>Number:         47932
>Category:       pkg
>Synopsis:       devel/glib2 on NetBSD 6.99.21 gfileutils.c:1022:9: error: 
>#pragma GCC diagnostic not allowed inside functions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 16 00:55:00 +0000 2013
>Originator:     David Shao
>Release:        NetBSD 6.99.21 (GENERIC) amd64
>Organization:
>Environment:
NetBSD 6.99.21 (GENERIC) amd64
>Description:
Using NetBSD 6.99.21 (GENERIC) amd64 latest pkgsrc with
$ cc --version
cc (NetBSD nb1 20120916) 4.5.4

$ c++ --version
c++ (NetBSD nb1 20120916) 4.5.4

devel/glib2 2.36.3 fails to build with:

gconvert.c: In function 'g_iconv':
gconvert.c:310:3: warning: passing argument 2 of 'iconv' from incompatible 
pointer type
/usr/include/iconv.h:46:8: note: expected 'const char ** restrict' but argument 
is of type 'gchar **'
  CC       libglib_2_0_la-gdataset.lo
  CC       libglib_2_0_la-gdate.lo
  CC       libglib_2_0_la-gdatetime.lo
  CC       libglib_2_0_la-gdir.lo
  CC       libglib_2_0_la-genviron.lo
  CC       libglib_2_0_la-gerror.lo
  CC       libglib_2_0_la-gfileutils.lo
gfileutils.c: In function 'format_error_message':
gfileutils.c:1022:9: error: #pragma GCC diagnostic not allowed inside functions
gfileutils.c:1023:9: error: #pragma GCC diagnostic not allowed inside functions
gfileutils.c:1026:9: error: #pragma GCC diagnostic not allowed inside functions
gmake[5]: *** [libglib_2_0_la-gfileutils.lo] Error 1
gmake[5]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.36.3/glib'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.36.3/glib'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.36.3/glib'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.36.3'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.36.3'
*** Error code 2



>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index