pkgsrc-Bugs archive

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

pkg/44067: glib2 update fails



>Number:         44067
>Category:       pkg
>Synopsis:       glib2 update fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 08 13:20:00 +0000 2010
>Originator:     Frédéric Fauberteau
>Release:        NetBSD-5.0.2
>Organization:
>Environment:
NetBSD trashware 5.0.2 NetBSD 5.0.2 (TRASHWARE) #1: Thu Apr 22 15:50:14 CEST 
2010  root@trashware:/usr/src/sys/arch/i386/compile/TRASHWARE i386
>Description:
When I try to update glib2 (2.26.0), the compilation process fails with the 
following error message:

/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I.. 
-I../glib -I../glib -I.. -I/usr/pkg/include   -DG_LOG_DOMAIN=\"GLib\" 
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC 
-DPREFIX="\"/usr/pkg\"" -DPKGLOCALEDIR="\"share\"" 
-DPKG_SYSCONFDIR="\"/usr/pkg/etc\"" -I/usr/include -I/usr/pkg/include 
-DG_DISABLE_SINGLE_INCLUDES  -pthread   -O2 -I/usr/include -I/usr/pkg/include 
-Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c -o gatomic.lo gatomic.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../glib 
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -DG_LOG_DOMAIN=\"GLib\" 
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC 
-DPREFIX=\"/usr/pkg\" -DPKGLOCALEDIR=\"share\" 
-DPKG_SYSCONFDIR=\"/usr/pkg/etc\" -DG_DISABLE_SINGLE_INCLUDES -pthread -O2 
-Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c gatomic.c  -fPIC -DPIC -o 
.libs/gatomic.o
gatomic.c:885: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
gatomic.c: In function 'g_atomic_int_exchange_and_add':
gatomic.c:906: warning: implicit declaration of function 'g_mutex_lock'
gatomic.c:906: error: 'g_atomic_mutex' undeclared (first use in this function)
gatomic.c:906: error: (Each undeclared identifier is reported only once
gatomic.c:906: error: for each function it appears in.)
gatomic.c:909: warning: implicit declaration of function 'g_mutex_unlock'
gatomic.c: In function 'g_atomic_int_add':
gatomic.c:928: error: 'g_atomic_mutex' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_compare_and_exchange':
gatomic.c:954: error: 'g_atomic_mutex' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_compare_and_exchange':
gatomic.c:988: error: 'g_atomic_mutex' undeclared (first use in this function)
gatomic.c: In function '_g_atomic_thread_init':
gatomic.c:1155: error: 'g_atomic_mutex' undeclared (first use in this function)
gatomic.c:1155: warning: implicit declaration of function 'g_mutex_new'
gmake[4]: *** [gatomic.lo] Error 1
gmake[4]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.26.0/glib'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.26.0/glib'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.26.0/glib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.26.0'
gmake: *** [all] Error 2
*** Error code 2

It sounds as a header inclusion miss but I'm not sure ...
>How-To-Repeat:
make clean && make update
>Fix:



Home | Main Index | Thread Index | Old Index