Mailinglist Archive: opensuse (527 mails)

< Previous Next >
[opensuse] glib.h triggers new error: /usr/include/pthread.h:1000:58: error: expected ‘;’, ‘,’ or ‘)’ before ‘__cond’
All,

This is bewildering. On my 13.1 laptop, something broke building GTK apps in
the last 10 days. Now compiling fails with:

In file included from /usr/include/glib-2.0/glib/deprecated/gthread.h:123:0,
from /usr/include/glib-2.0/glib.h:109,
from /usr/include/glib-2.0/gobject/gbinding.h:30,
from /usr/include/glib-2.0/glib-object.h:25,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from gtk_windef.h:4,
from gtk_windef.c:1:
/usr/include/pthread.h:1000:58: error: expected ‘;’, ‘,’ or ‘)’ before ‘__cond’
extern int pthread_cond_wait (pthread_cond_t *__rdstrict __cond,

Huh? This is new, I've built this code 500 times, last without error on 7/29.
The only apps installed on the system since then were from OSS:

Tue 02 Aug 2016 08:31:55 PM CDT pcre-doc 8.33-2.1.2
Tue 02 Aug 2016 08:31:55 PM CDT pcre-tools 8.33-2.1.2
Mon 08 Aug 2016 01:57:47 PM CDT libada48 4.8.1_20130909-3.2.1
Mon 08 Aug 2016 01:57:51 PM CDT gcc-ada 4.8-2.1.2
Mon 08 Aug 2016 01:57:51 PM CDT gcc48-ada 4.8.1_20130909-3.2.1

I can't see any of thoses causing issue (sure the ada compiler is the same as
the remaining gcc tools), e.g.:

rpm -qa | grep gcc | sort
gcc-32bit-4.8-2.1.2.x86_64
gcc-4.8-2.1.2.x86_64
gcc-ada-4.8-2.1.2.x86_64
gcc-c++-4.8-2.1.2.x86_64
gcc-fortran-4.8-2.1.2.x86_64
gcc-gij-4.8-2.1.2.x86_64
gcc-info-4.8-2.1.2.x86_64
gcc-java-4.8-2.1.2.x86_64
gcc-objc-4.8-2.1.2.x86_64
gcc48-32bit-4.8.1_20130909-3.2.1.x86_64
gcc48-4.8.1_20130909-3.2.1.x86_64
gcc48-ada-4.8.1_20130909-3.2.1.x86_64
gcc48-c++-4.8.1_20130909-3.2.1.x86_64
gcc48-fortran-4.8.1_20130909-3.2.1.x86_64
gcc48-gij-4.8.1_20130909-3.2.1.x86_64
gcc48-info-4.8.1_20130909-3.2.1.noarch
gcc48-java-4.8.1_20130909-3.2.1.x86_64
gcc48-objc-4.8.1_20130909-3.2.1.x86_64
gccmakedep-1.0.2-6.1.2.noarch
libgcc_s1-32bit-4.8.1_20130909-3.2.1.x86_64
libgcc_s1-4.8.1_20130909-3.2.1.x86_64

Did installing ada cause some regression? Passing -DG_DISABLE_DEPRECATED
solves the problem, but I've never had to disable depricated headers before. Now
simply including glib.h causes the error.

Has anyone else run into this problem? Has anyone else found a fix?


(side note: it also disclosed glib's abuse of enum in
/usr/include/glib-2.0/gobject/gparam.h with

G_PARAM_DEPRECATED = 1 << 31

which is definitely not an 'int' constant [by +1])


--
David C. Rankin, J.D.,P.E.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups