[sylpheed:34912] Re: Sylpheed 3.2beta4 released - errors compiling

Dick Gevers dvgevers at xs4all.nl
Sun Dec 4 23:13:53 JST 2011


On Tue, 29 Nov 2011 18:48:43 +0900, Hiroyuki Yamamoto wrote about
[sylpheed-announce:00129] [ANNOUNCE] Sylpheed 3.2beta4 released:

>Sylpheed 3.2beta4 has been released.

Hello,

Thanks for the new beta!

But I had errors during 'make' running on current Mageia Cauldron,
where I have amongst others rpm's:

glib2.0-common-2.31.2-1.mga2
lib64glib2.0_0-2.31.2-1.mga2
lib64glib2.0-devel-2.31.2-1.mga2
lib64glib2.lib64glib-gir2.0-1.31.0-1.mga2
lib64glibmm2.4_1-2.31.2-1.mga2
lib64glib-networking-2.31.2-1.mga2

Make erred ending in:

In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0,
                 from defs.h:27,
                 from account.c:24:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can
be included directly." account.c: In function ‘account_address_exist’:
account.c:279:9: warning: cast from pointer to integer of different size
make[3]: *** [account.lo] Error 1
make[3]: Leaving directory `/home/dvg/untar/sylpheed-3.2.0beta4/libsylph'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/dvg/untar/sylpheed-3.2.0beta4/libsylph'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dvg/untar/sylpheed-3.2.0beta4'
make: *** [all] Error 2

Which (thanks to advice from one of our Mageia devs), I managed to fix by
changing in ../libsylph/account.c:

account.c-#include <glib.h>
account.c:/*#include <glib/gi18n.h> ==dvg: removed by fwang advice */

and in ../libsylph/defs.h:
/*#include <glibconfig.h>  ==dvg: replaced by glib.h */
#include <glib.h>

But I get yet another error, and haven't a clue how it could be changed.
So I hope someone can give me a pointer:

gcc -g -O2 -pthread -I/usr/include/gtkspell-2.0 -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15
-pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-o .libs/sylpheed main.o mainwindow.o folderview.o summaryview.o
messageview.o headerview.o textview.o imageview.o mimeview.o quick_search.o
query_search.o message_search.o colorlabel.o action.o compose.o
gtkshruler.o menu.o stock_pixmap.o prefs_ui.o prefs_common_dialog.o
prefs_filter.o prefs_filter_edit.o prefs_account_dialog.o
prefs_folder_item.o prefs_display_items.o prefs_display_header.o
prefs_customheader.o prefs_summary_column.o prefs_template.o
prefs_actions.o prefs_search_folder.o prefs_toolbar.o account_dialog.o
template.o addressbook.o addr_compl.o addritem.o addrcache.o addrbook.o
addrindex.o mgutils.o vcard.o ldif.o importldif.o importcsv.o jpilot.o
syldap.o editbook.o editgroup.o editaddress.o editvcard.o editjpilot.o
editldap.o editldap_basedn.o addressadd.o filesel.o foldersel.o statusbar.o
logwindow.o sourcewindow.o manage_window.o undo.o alertpanel.o
inputdialog.o progressdialog.o subscribedialog.o about.o setup.o gtkutils.o
send_message.o inc.o rpop3.o import.o export.o rfc2015.o passphrase.o
select-keys.o sigstatus.o simple-gettext.o manual.o eggtrayicon.o
trayicon.o printing.o sslmanager.o plugin_manager.o update_check.o
quote_fmt_lex.o quote_fmt_parse.o sylpheed-marshal.o -pthread -pthread
-pthread -pthread
-L/usr/lib64 /usr/lib64/libgpgme.so /usr/lib64/libassuan.so /usr/lib64/libgpg-error.so ./.libs/libsylpheed-plugin-0.so ../libsylph/.libs/libsylph-0.so
-lnsl -L/usr/lib64/ -lssl -lcrypto -ldl -lpthread -lgtkspell -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0
-lgdk_pixbuf-2.0 -lcairo -lpango-1.0 /usr/lib64/libfreetype.so -lfontconfig
-lgobject-2.0 -lenchant -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath
-Wl,/usr/local/lib ../libsylph/.libs/libsylph-0.so: undefined reference to
`_'

collect 2: ld returned 1 exit status make[4]: *** 
[sylpheed] Error 1 make [4]: Leaving directory
`/home/dvg/untar/sylpheed-3.2.0beta4/src' make[3]: *** [all-recursive]
Error 1 make[3]: Leaving directory
`/home/dvg/untar/sylpheed-3.2.0beta4/src' make[2]: *** 
[all] Error 2 make [2]: Leaving directory
`/home/dvg/untar/sylpheed-3.2.0beta4/src' make[1]: *** [all-recursive]
Error 1 make[1]: Leaving directory `/home/dvg/untar/sylpheed-3.2.0beta4'
make: *** [all] Error 2

I think I have all the relevant -devel packages.

Thanks and best regards,
=Dick Gevers=


More information about the Sylpheed mailing list