Hi

Tried compiling the master branch on debian squeeze (old-stable), and ran into problems:

<snip>
make[4]: Entering directory `/root/dbmailHEAD/dbmail/src/modules'
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I../.. -I../../src    -Wall -O1 -DEXTRA -pthread -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -D_LARGEFILE64_SOURCE -pthread 
-I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-I/usr/include/zdb -W -Wall -Wpointer-arith -Wstrict-prototypes -MT sortnull.lo 
-MD -MP -MF .deps/sortnull.Tpo -c -o sortnull.lo sortnull.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -Wall -O1 
-DEXTRA -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-D_LARGEFILE64_SOURCE -pthread -I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/zdb -W -Wall -Wpointer-arith 
-Wstrict-prototypes -MT sortnull.lo -MD -MP -MF .deps/sortnull.Tpo -c 
sortnull.c  -fPIC -DPIC -o .libs/sortnull.o
In file included from ../../src/dbmail.h:119,
                 from sortnull.c:28:
.../../src/dbmail-imapsession.h:20: error: field 'lock' has incomplete type
make[4]: *** [sortnull.lo] Error 1
make[4]: Leaving directory `/root/dbmailHEAD/dbmail/src/modules'
make[3]: *** [all-recursive] Error 1
</snip>


From what I can tell the problem is the libglib version.
Debian squeeze has libglib2.0-dev version 2.24

I created a small test program:

#include "glib.h"

void main(){

typedef struct {
  GMutex m;
} Blob;

Blob *b;

b = g_new (Blob, 1);
g_mutex_init (&b->m);

}

And compiled it:

# gcc `pkg-config --cflags --libs glib-2.0` test.c
test.c: In function ‘main’:
test.c:6: error: field ‘m’ has incomplete type

Then tried it on debian wheezy (current stable) which has libglib2.0-dev 2.33
And this test file compiles fine, no errors.

According to https://developer.gnome.org/glib/unstable/glib-Threads.html#g-mutex-init
g_mutex_init () function is available "Since 2.32"

Could the INSTALL file (which says "Glib (>= 2.16)" is required) and appropriate configure scripts be updated to reflect this dependency?

There was a bug created for this back in 02-Oct-12 by someone else, but it was closed without looking into (bug #990). It might be nice to update this bug with a resolution for other google searchers with the same problem.

Regards,
Joel van Velden


_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to