A NOTE has been added to this issue. ====================================================================== http://dbmail.org/mantis/view.php?id=872 ====================================================================== Reported By: slava Assigned To: ====================================================================== Project: DBMail Issue ID: 872 Category: installation scripts Reproducibility: have not tried Severity: major Priority: normal Status: feedback target: ====================================================================== Date Submitted: 13-Jan-11 12:37 CET Last Modified: 17-Jan-11 08:30 CET ====================================================================== Summary: make error: invalid application of 'sizeof' to incomplete type 'struct event' Description: /bin/sh ../libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -I/usr/include/gli b-2.0 -I/usr/lib64/glib-2.0/include -D_LARGEFILE64_SOURCE -pthread -I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 -I/usr/l ib64/glib-2.0/include -I/usr/include/zdb -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-server.lo `test -f 'server.c' || echo './'`server.c x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_LARGEF ILE64_SOURCE -pthread -I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/zdb -W -Wa ll -Wpointer-arith -Wstrict-prototypes -c server.c -fPIC -DPIC -o ..libs/libdbmail_la-server.o server.c: In function 'dm_queue_drain': server.c:71:2: warning: implicit declaration of function 'event_del' server.c:85:2: warning: implicit declaration of function 'event_add' server.c: In function 'server_setup': server.c:200:8: error: invalid application of 'sizeof' to incomplete type 'struct event' server.c:201:2: warning: implicit declaration of function 'event_set' server.c:201:30: error: 'EV_READ' undeclared (first use in this function) server.c:201:30: note: each undeclared identifier is reported only once for each function it appears in server.c: In function 'server_start_cli': server.c:227:3: warning: implicit declaration of function 'event_init' server.c:230:3: warning: implicit declaration of function 'event_dispatch' server.c: In function 'server_sig_cb': server.c:542:2: warning: implicit declaration of function 'EVENT_SIGNAL' server.c: In function 'server_set_sighandler': server.c:558:12: error: invalid application of 'sizeof' to incomplete type 'struct event' server.c:559:12: error: invalid application of 'sizeof' to incomplete type 'struct event' server.c:560:13: error: invalid application of 'sizeof' to incomplete type 'struct event' server.c:562:2: warning: implicit declaration of function 'signal_set' server.c:562:2: warning: implicit declaration of function 'signal_add' server.c: In function 'server_run': server.c:673:13: error: invalid application of 'sizeof' to incomplete type 'struct event' server.c:676:5: error: invalid use of undefined type 'struct event' server.c:676:22: error: dereferencing pointer to incomplete type server.c:676:51: error: 'EV_READ' undeclared (first use in this function) server.c:676:5: error: invalid use of undefined type 'struct event' server.c:676:83: error: dereferencing pointer to incomplete type server.c:677:5: error: invalid use of undefined type 'struct event' server.c:677:22: error: dereferencing pointer to incomplete type server.c:682:5: error: invalid use of undefined type 'struct event' server.c:682:22: error: dereferencing pointer to incomplete type server.c:682:5: error: invalid use of undefined type 'struct event' server.c:677:22: error: dereferencing pointer to incomplete type server.c:682:5: error: invalid use of undefined type 'struct event' server.c:682:22: error: dereferencing pointer to incomplete type server.c:682:5: error: invalid use of undefined type 'struct event' server.c:682:91: error: dereferencing pointer to incomplete type server.c:683:5: error: invalid use of undefined type 'struct event' server.c:683:22: error: dereferencing pointer to incomplete type make[3]: *** [libdbmail_la-server.lo] Error 1 make[3]: Leaving directory `/tmp/dbmail-3.0.0-rc1/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/dbmail-3.0.0-rc1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/dbmail-3.0.0-rc1' make: *** [all] Error 2 ======================================================================
---------------------------------------------------------------------- (0003136) paul (administrator) - 13-Jan-11 14:50 http://dbmail.org/mantis/view.php?id=872#c3136 ---------------------------------------------------------------------- please upgrade your libevent-devel package. 1.3 is really old. Too old. ---------------------------------------------------------------------- (0003137) paul (administrator) - 13-Jan-11 14:51 http://dbmail.org/mantis/view.php?id=872#c3137 ---------------------------------------------------------------------- Please use libevent-1.4.13 ---------------------------------------------------------------------- (0003138) slava (reporter) - 14-Jan-11 06:37 http://dbmail.org/mantis/view.php?id=872#c3138 ---------------------------------------------------------------------- i'm upgrade libevent to 1.4.14b and this problem resolve, thank for help! And i install sieve-2.2.5. But now, i have another problem: /bin/sh ../libtool --tag=CC --mode=link x86_64-alt-linux-gcc -pipe -Wall -O2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_LARGEFILE64_SOURCE -pthread -I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/zdb -W -Wall -Wpointer-arith -Wstrict-prototypes -export-dynamic -lcrypt -lglib-2.0 -pthread -lgmime-2.4 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lm -lmhash -levent -lssl -lzdb -o dbmail-deliver main.o libdbmail.la x86_64-alt-linux-gcc -pipe -Wall -O2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_LARGEFILE64_SOURCE -pthread -I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/zdb -W -Wall -Wpointer-arith -Wstrict-prototypes -pthread -o .libs/dbmail-deliver main.o -Wl,--export-dynamic -lcrypt -lgmime-2.4 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lm -lmhash -levent -lssl -lzdb ./.libs/libdbmail.so -Wl,--rpath -Wl,/usr/lib64/dbmail ../.libs/libdbmail.so: undefined reference to `g_module_open' ../.libs/libdbmail.so: undefined reference to `g_module_error' ../.libs/libdbmail.so: undefined reference to `g_module_symbol' ../.libs/libdbmail.so: undefined reference to `g_module_build_path' ../.libs/libdbmail.so: undefined reference to `g_module_supported' collect2: ld returned 1 exit status i try add libgmodule-2.0.so.0 to string, but this not work again: x86_64-alt-linux-gcc -pipe -Wall -O2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_LARGEFILE64_SOURCE -pthread -I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/zdb -W -Wall -Wpointer-arith -Wstrict-prototypes -pthread -o .libs/dbmail-deliver main.o /usr/lib64/libgmodule-2.0.so.0 -Wl,--export-dynamic -lcrypt -lgmime-2.4 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lm -lmhash -levent -lssl -lzdb ../.libs/libdbmail.so -Wl,--rpath -Wl,/usr/lib64/dbmail ../.libs/libdbmail.so: undefined reference to `g_module_open' ../.libs/libdbmail.so: undefined reference to `g_module_error' ../.libs/libdbmail.so: undefined reference to `g_module_symbol' ../.libs/libdbmail.so: undefined reference to `g_module_build_path' ../.libs/libdbmail.so: undefined reference to `g_module_supported' collect2: ld returned 1 exit status ls -la /usr/lib64/libgmodule-2.0.so.0 lrwxrwxrwx 1 root root 26 Dec 20 08:06 /usr/lib64/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.2600.2 ---------------------------------------------------------------------- (0003139) slava (reporter) - 14-Jan-11 06:55 http://dbmail.org/mantis/view.php?id=872#c3139 ---------------------------------------------------------------------- solved --- Makefile.am>2010-12-16 11:40:58.000000000 +0300 +++ Makefile.am>2011-01-14 08:43:47.000000000 +0300 @@ -75,7 +75,7 @@ .. INCLUDES = -I$(top_srcdir) .. -AM_LDFLAGS = -export-dynamic @CRYPTLIB@ +AM_LDFLAGS = -export-dynamic @CRYPTLIB@ -lgmodule-2.0 .. if SHARED MODULES = authmodule.c sortmodule.c ---------------------------------------------------------------------- (0003140) paul (administrator) - 14-Jan-11 20:23 http://dbmail.org/mantis/view.php?id=872#c3140 ---------------------------------------------------------------------- That file should not include versioned libraries! Why doesn't gmime link with gmodule on arch-linux? on ubuntu I get: ldd /usr/lib/libgmime-2.0.so.2.2.22 linux-vdso.so.1 => (0x00007fffb1cd5000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f11a2fe3000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f11a2ddf000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f11a2bd9000) librt.so.1 => /lib/librt.so.1 (0x00007f11a29d1000) libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00007f11a26f3000) libz.so.1 => /lib/libz.so.1 (0x00007f11a24db000) libnsl.so.1 => /lib/libnsl.so.1 (0x00007f11a22c1000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f11a20a4000) libc.so.6 => /lib/libc.so.6 (0x00007f11a1d20000) libpcre.so.3 => /lib/libpcre.so.3 (0x00007f11a1af2000) libdl.so.2 => /lib/libdl.so.2 (0x00007f11a18ee000) /lib64/ld-linux-x86-64.so.2 (0x00007f11a34ac000) ---------------------------------------------------------------------- (0003141) slava (reporter) - 17-Jan-11 08:21 http://dbmail.org/mantis/view.php?id=872#c3141 ---------------------------------------------------------------------- ldd /usr/lib64/libgmime-2.4.so.2.4.20 linux-vdso.so.1 => (0x00007fff35587000) libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f7cf10b3000) libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f7cf0dc9000) libz.so.1 => /lib64/libz.so.1 (0x00007f7cf0baf000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7cf0993000) libc.so.6 => /lib64/libc.so.6 (0x00007f7cf063d000) libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007f7cf0437000) libpcre.so.3 => /lib64/libpcre.so.3 (0x00007f7cf0200000) /lib64/ld-linux-x86-64.so.2 (0x00007f7cf1573000) librt.so.1 => /lib64/librt.so.1 (0x00007f7cefff8000) ---------------------------------------------------------------------- (0003142) slava (reporter) - 17-Jan-11 08:30 http://dbmail.org/mantis/view.php?id=872#c3142 ---------------------------------------------------------------------- PS: previous patch don't work For fixing, i do ./configure and add -lgmodule-2.0 to LDFLAGS on Makefile Issue History Date Modified Username Field Change ====================================================================== 13-Jan-11 12:37 slava New Issue 13-Jan-11 12:37 slava File Added: report.tgz 13-Jan-11 14:50 paul Note Added: 0003136 13-Jan-11 14:51 paul Note Added: 0003137 13-Jan-11 14:51 paul Status new => closed 13-Jan-11 14:51 paul Resolution open => no change required 14-Jan-11 06:37 slava Note Added: 0003138 14-Jan-11 06:37 slava Status closed => feedback 14-Jan-11 06:37 slava Resolution no change required => reopened 14-Jan-11 06:55 slava Note Added: 0003139 14-Jan-11 20:23 paul Note Added: 0003140 17-Jan-11 08:21 slava Note Added: 0003141 17-Jan-11 08:30 slava Note Added: 0003142 ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev