Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8794 closed defect (fixed)

glibc 2.26.1 build error with uClibc

Reported by: anonymous Owned by: acinonyx
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

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_int_get':
gatomic.c:1019: error: 'g_atomic_mutex' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_int_set':
gatomic.c:1040: error: 'g_atomic_mutex' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_get':
gatomic.c:1061: error: 'g_atomic_mutex' undeclared (first use in this function)
gatomic.c: In function 'g_atomic_pointer_set':
gatomic.c:1082: 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'
make[8]: *** [gatomic.lo] Error 1

Plz take a look @
http://git.buildroot.org/buildroot/commit/?id=6c01ef20ee96f770bf7fc0fede90b3861d529015
and
https://bugs.busybox.net/show_bug.cgi?id=2809

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by acinonyx

  • Owner changed from developers to acinonyx
  • Status changed from new to accepted

comment:2 Changed 7 years ago by rossb@…

Also seeing this in R25302

comment:3 Changed 7 years ago by rossb@…

Change glib/gatomic.c to fix this

#ifdef DEFINE_WITH_MUTEXES
#include "gthread.h" /* B.R. Fix */
/* We have to use the slow, but safe locking method */
static GMutex *g_atomic_mutex;

comment:4 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from accepted to closed

Should be fixed by r27453.

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.