compile error with glib
hi, I compiled lighttpd 1.5.0 svn r2698, and got a error message: ".../src/server.c:990: undefined reference to `g_atomic_int_set' ", It seems because the glib version is older than 2.10.
however, I think adding a parameter "./configure --with-glib=..." is helpful. Do you have any other better ideas?
Updated by nitrox over 13 years ago
- Status changed from New to Invalid
I think this is not a bug, if you have problems compiling, please use the support forum. If this is a feature request, please mark it as that.
Updated by liming over 13 years ago
- Status changed from Invalid to Reopened
No, I don't agree with you.
454 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.4.0, [
455 AC_DEFINE([HAVE_GTHREAD], , [libglib])
456 AC_DEFINE([HAVE_GLIB_H], , [glib.h])
Line 454 is wrong. It should be "PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.10.0, [", because gthread is just one of the components in glib. Only when glib version is equal or newer than 2.10, lighttpd is succeed to be compiled. right?
Updated by icy over 13 years ago
- Category changed from core to build_autotools
Correct. For whatever reason g_atomic_int_set got only into gthread in version 2.10. All the other g_atomic_* were introduced in 2.4 which is a bit weird but well...
Yep we should require 2.10
Updated by stbuehler over 13 years ago
- Status changed from Reopened to Fixed
- % Done changed from 0 to 100
Applied in changeset r2701.
Also available in: Atom