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

Headers bug? ISO C doesn’t support unnamed structs/unions



Hi,

in mssh build logs[1], one can notice the following issue:
| make[3]: entrant dans le répertoire « /srv/storage/kibi/hack/mssh-1.1/src »
| i486-kfreebsd-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include     -pedantic-errors -Werror -Wall -Wfatal-errors -Wwrite-strings -O2 -Wall -O2 -MT mssh.o -MD -MP -MF .deps/mssh.Tpo -c -o mssh.o mssh.c
| In file included from /usr/include/signal.h:334,
|                  from /usr/include/glib-2.0/glib/gbacktrace.h:36,
|                  from /usr/include/glib-2.0/glib.h:37,
|                  from /usr/include/glib-2.0/gobject/gtype.h:27,
|                  from /usr/include/glib-2.0/gobject/gboxed.h:27,
|                  from /usr/include/glib-2.0/glib-object.h:26,
|                  from /usr/include/glib-2.0/gio/gioenums.h:31,
|                  from /usr/include/glib-2.0/gio/giotypes.h:31,
|                  from /usr/include/glib-2.0/gio/gio.h:29,
|                  from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
|                  from /usr/include/gtk-2.0/gdk/gdk.h:33,
|                  from /usr/include/gtk-2.0/gtk/gtk.h:33,
|                  from mssh.c:7:
| /usr/include/bits/sigcontext.h:36: error: ISO C doesn’t support unnamed structs/unions
| compilation terminated due to -Wfatal-errors.

 1. https://buildd.debian.org/status/package.php?suite=unstable&p=mssh

I'm unsure whether that's a bug in the bits/sigcontext.h header,
that's why I'm asking here. Comments welcome. (Please note I didn't
investigate yet, just noticed that several times in the build logs,
and didn't want to procrastinate asking in here.)

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: