Created attachment 442272 [details] sys-libs:openipmi-2.0.22:20160802-064129.log make[2]: Entering directory '/var/tmp/portage/sys-libs/openipmi-2.0.22/work/OpenIPMI-2.0.22/glib' /bin/sh ../libtool --tag=CC --mode=compile hppa2.0-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wsign-compare -I../include -mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comment -c -o libOpenIPMIglib_la-glib_os_hnd.lo `test -f 'glib_os_hnd.c' || echo './'`glib_os_hnd.c /bin/sh ../libtool --tag=CC --mode=compile hppa2.0-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -Wall -Wsign-compare -I../include -mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comment -c -o libOpenIPMIglib12_la-glib_os_hnd.lo `test -f 'glib_os_hnd.c' || echo './'`glib_os_hnd.c libtool: compile: hppa2.0-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wsign-compare -I../include -mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comment -c glib_os_hnd.c -fPIC -DPIC -o .libs/libOpenIPMIglib_la-glib_os_hnd.o libtool: compile: hppa2.0-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -Wall -Wsign-compare -I../include -mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comment -c glib_os_hnd.c -fPIC -DPIC -o .libs/libOpenIPMIglib12_la-glib_os_hnd.o glib_os_hnd.c: In function ‘get_glib_monotonic_time’: glib_os_hnd.c:780:5: warning: implicit declaration of function ‘g_get_monotonic_time’ [-Wimplicit-function-declaration] now = g_get_monotonic_time(); ^ glib_os_hnd.c:781:24: error: ‘G_TIME_SPAN_SECOND’ undeclared (first use in this function) tv->tv_sec = now / G_TIME_SPAN_SECOND; ^ glib_os_hnd.c:781:24: note: each undeclared identifier is reported only once for each function it appears in glib_os_hnd.c: In function ‘get_glib_time’: glib_os_hnd.c:789:5: error: unknown type name ‘GDateTime’ GDateTime *now; ^ glib_os_hnd.c:792:5: warning: implicit declaration of function ‘g_date_time_new_now_utc’ [-Wimplicit-function-declaration] now = g_date_time_new_now_utc(); ^ glib_os_hnd.c:792:9: warning: assignment makes pointer from integer without a cast now = g_date_time_new_now_utc(); ^ glib_os_hnd.c:793:5: warning: implicit declaration of function ‘g_date_time_to_timeval’ [-Wimplicit-function-declaration] g_date_time_to_timeval(now, >v); ^ glib_os_hnd.c:794:5: warning: implicit declaration of function ‘g_date_time_unref’ [-Wimplicit-function-declaration] g_date_time_unref(now); ^ glib_os_hnd.c: In function ‘get_vlog_data’: glib_os_hnd.c:318:5: warning: ‘g_static_private_get’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:251): Use 'g_private_get' instead [-Wdeprecated-declarations] rv = g_static_private_get(&vlog_private); ^ glib_os_hnd.c:328:6: warning: ‘g_static_private_set’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:254): Use 'g_private_set' instead [-Wdeprecated-declarations] g_static_private_set(&vlog_private, rv, vlog_data_destroy); ^ glib_os_hnd.c: In function ‘create_lock’: glib_os_hnd.c:451:5: warning: ‘g_mutex_new’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:277) [-Wdeprecated-declarations] lock->mutex = g_mutex_new(); ^ glib_os_hnd.c: In function ‘destroy_lock’: glib_os_hnd.c:465:5: warning: ‘g_mutex_free’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:279) [-Wdeprecated-declarations] g_mutex_free(id->mutex); ^ glib_os_hnd.c: In function ‘create_cond’: glib_os_hnd.c:500:5: warning: ‘g_cond_new’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:281) [-Wdeprecated-declarations] cond->cond = g_cond_new(); ^ glib_os_hnd.c: In function ‘destroy_cond’: glib_os_hnd.c:514:5: warning: ‘g_cond_free’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:283) [-Wdeprecated-declarations] g_cond_free(cond->cond); ^ glib_os_hnd.c: In function ‘cond_timedwait’: glib_os_hnd.c:546:5: warning: ‘g_cond_timed_wait’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:285) [-Wdeprecated-declarations] rv = g_cond_timed_wait(cond->cond, lock->mutex, &timeout); ^ glib_os_hnd.c: In function ‘free_os_handler’: glib_os_hnd.c:632:5: warning: ‘g_mutex_free’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:279) [-Wdeprecated-declarations] g_mutex_free(info->gdbm_lock); ^ glib_os_hnd.c: In function ‘ipmi_glib_get_os_handler’: glib_os_hnd.c:858:2: warning: ‘g_thread_init’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:265) [-Wdeprecated-declarations] g_thread_init(NULL); ^ glib_os_hnd.c:874:5: warning: ‘g_mutex_new’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:277) [-Wdeprecated-declarations] info->gdbm_lock = g_mutex_new(); ^ Makefile:544: recipe for target 'libOpenIPMIglib12_la-glib_os_hnd.lo' failed make[2]: *** [libOpenIPMIglib12_la-glib_os_hnd.lo] Error 1 make[2]: *** Waiting for unfinished jobs....
checking for glib... yes checking for glib-config... /usr/bin/glib-config checking for glib 1.2... yes That's with dev-libs/glib:1 installed. It ought to be possible to pass --with-glibver=2.0 to configure to prevent it from picking 1.2 but I don't know yet whether the build system is smart enough. After uninstalling dev-libs/glib:1 it finishes glib/ just fine. Note that 2.0.21 oddly enough compiled fine with dev-libs/glib:1 installed, even though that entailed a lot of complaints from the compiler because it was in fact using dev-libs/glib:2 headers. Perhaps a recent dev-libs/glib:2 update broke compatibility?
After uninstalling dev-libs/glib:1: checking for glib... yes checking for glib-config... no checking for glib 1.2... no which then compiles fine, but when I set --with-glibver=2.0: ./configure --prefix=/usr --build=hppa2.0-unknown-linux-gnu --host=hppa2.0-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/openipmi-2.0.22 --htmldir=/usr/sha re/doc/openipmi-2.0.22/html --libdir=/usr/lib --without-ucdsnmp --with-openssl=yes --without-perl --with-tcl=yes --with-python=yes --without-tkinter --with-glib --with-glibver=2.0 --with-swig --bindir=/usr/sbin it still finds dev-libs/glib:1 first: checking for glib... yes checking for glib-config... /usr/bin/glib-config checking for glib 1.2... yes
Fixed without revision bump.