Todays update made me compile gtk+-2.16.6 and qt-core. Both stoped while checking the installed glib.
gtk+-2.16.6 error :
checking for GLIB - version >= 2.19.7... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
Glib auto-detection... ()
glib.cpp: In function »int main(int, char**)«:
glib.cpp:14: Warnung: »pollfd« is used uninitialized in this function
/usr/lib64/libgthread-2.0.so: undefined reference to `clock_gettime'
collect2: ld gab 1 als Ende-Status zurück
make: *** [glib] Fehler 1
Glib support cannot be enabled due to functionality tests!
Steps to Reproduce:
1.emerge gtk+ or qt-core
compile stops when checking glib
I report this to qt-core also and did already comment #285586
emerge --info, emerge -pv glib and full config.log of the failing package please.
and output of the following command :
$ pkg-config glib-2.0 --modversion
to be sure, however, with glib-2.22.0 it's should works just fine.
I will try to send the neede infos. But i will have to reverse my workaround :
did find a bug year 2007 about the same error messages delivered by some programs pointing at libgthread-2.0.so.
(/usr/lib64/libgthread-2.0.so: undefined reference to `clock_gettime')
This message also comes up when trying to start thunar. It wont start and give exactly that message.
The workaround two years ago does work also now :
Compile glib with LDFLAGS=-lrt and all is fine. All failing programs can finish there build.
So i will revert that and send over those messages. This will probably take two days.
Thanks so long
Sorry for the time passed by but i had to do some further investigations before pointing at some nonexisting problems.
So at the end i had around 15 packages all stopping compiling at the same point when checking clock_gettime. The intermediate workarround LDFLAGS="-lrt worked till openoffice showed up. No chance.
So i had to look for another solution. After all i had to rebuild gcc and all openmp using or depending packages. That solved it.
So the conclusion for my system is not to use CFLAG -fopenmp and USE-Flag openmp.
I know that there are some warnings about those Flags but they never accompanied with any info : why not. And in the beginning it did seem to work.
So sorry for the hazzle.
BTW. where is 2.22.0 ? Overlay ?
yep glib-2.22 is in the overlay
The flag -fopenmp cause pixman (libpixman) not working and as a result, xfce works very bad...
Eclipse didn't work, with the following error: symbol lookup error: /usr/lib/libgthread-2.0.so.0: undefined symbol: clock_gettime
Openoffice.org didn't compiled either...
Removing it from CFLAGS and recompilet glib did the trick.... Even unmasking glib-2.22.2 didn't work when using -fopenmp