[Users] [Bug 3528] New: glib check needs to be improved

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Wed Sep 30 12:50:54 CEST 2015


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3528

            Bug ID: 3528
           Summary: glib check needs to be improved
    Classification: Unclassified
           Product: Claws Mail
           Version: 3.12.0
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
          Assignee: users at lists.claws-mail.org
          Reporter: niederstrasser at gmail.com

./configure checks for glib >= 2.20. However, the code uses GStatBuf, which is
from glib2 >= 2.24 or .26 (not sure).  I have 2.22.4, and claws-mail FTBFS like
this:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../intl
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
-DLOCALEDIR=\"/sw/share/locale\" -DPLUGINDIR=\"/sw/lib/claws-mail/plugins/\"
-DDATAROOTDIR=\"/sw/share\"
-DDESKTOPFILEPATH=\"/sw/share/applications/claws-mail.desktop\"
-DGTK_DISABLE_DEPRECATED -I/sw/include -I/sw/include -g -O2
-Wno-unused-function -Wno-pointer-sign -Wall -no-cpp-precomp -fno-common
-I/sw/include/enchant -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -MT
socket.lo -MD -MP -MF .deps/socket.Tpo -c socket.c  -fno-common -DPIC -o
.libs/socket.o
socket.c:221:2: error: use of undeclared identifier 'GStatBuf'
        GStatBuf s;
        ^
socket.c:228:34: error: use of undeclared identifier 's'
        if (g_stat("/etc/resolv.conf", &s) == 0) {
                                        ^
socket.c:229:7: error: use of undeclared identifier 's'
                if (s.st_mtime > resolv_conf_changed) {
                    ^
socket.c:230:26: error: use of undeclared identifier 's'
                        resolv_conf_changed = s.st_mtime;
                                              ^
4 errors generated.

Either the necessary version of glib2 must be bumped, or the code in socket.c
needs to be put inside a #ifdef.

GStatBuf is also used in another 28 files.

claws-mail-3.11.1 built fine on this system.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list