LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   xfce4-mailwatch-plugin won't compile (http://www.linuxquestions.org/questions/slackware-14/xfce4-mailwatch-plugin-wont-compile-4175428890/)

zeroberto 09-25-2012 12:33 AM

xfce4-mailwatch-plugin won't compile
 
This is the error I get
Code:

xfce4_mailwatch_plugin-mailwatch-plugin.o: In function `mailwatch_help_clicked_cb':
mailwatch-plugin.c:(.text+0x390): undefined reference to `xfce_exec'
mailwatch-plugin.c:(.text+0x41d): undefined reference to `xfce_message_dialog'
xfce4_mailwatch_plugin-mailwatch-plugin.o: In function `mailwatch_button_release_cb':
mailwatch-plugin.c:(.text+0x509): undefined reference to `xfce_exec'
xfce4_mailwatch_plugin-mailwatch-plugin.o: In function `_xpp_realize':
mailwatch-plugin.c:(.text+0x132b): undefined reference to `xfce_message_dialog'
xfce4_mailwatch_plugin-mailwatch-plugin.o: In function `mailwatch_show_about':
mailwatch-plugin.c:(.text+0x1440): undefined reference to `xfce_about_info_new'
mailwatch-plugin.c:(.text+0x1452): undefined reference to `xfce_about_info_set_homepage'
mailwatch-plugin.c:(.text+0x147e): undefined reference to `xfce_about_info_add_credit'
mailwatch-plugin.c:(.text+0x14aa): undefined reference to `xfce_about_info_add_credit'
mailwatch-plugin.c:(.text+0x14bb): undefined reference to `xfce_themed_icon_load'
mailwatch-plugin.c:(.text+0x14cb): undefined reference to `xfce_about_dialog_new_with_values'
xfce4_mailwatch_plugin-mailwatch-plugin.o: In function `mailwatch_create_options':
mailwatch-plugin.c:(.text+0x15ff): undefined reference to `xfce_titled_dialog_new_with_buttons'
xfce4_mailwatch_plugin-mailwatch-plugin.o: In function `mailwatch_new_messages_changed_cb':
mailwatch-plugin.c:(.text+0x3436): undefined reference to `xfce_exec'
../libmailwatch-core/.libs/libmailwatch-core.a(libmailwatch_core_la-mailwatch-utils.o): In function `xfce_mailwatch_custom_button_new':
mailwatch-utils.c:(.text+0x1bf): undefined reference to `xfce_themed_icon_load'
mailwatch-utils.c:(.text+0x270): undefined reference to `xfce_themed_icon_load'
../libmailwatch-core/.libs/libmailwatch-core.a(libmailwatch_core_la-mailwatch-utils.o): In function `xfce_mailwatch_cram_md5':
mailwatch-utils.c:(.text+0x652): undefined reference to `gcry_md_open'
mailwatch-utils.c:(.text+0x671): undefined reference to `gcry_md_setkey'
mailwatch-utils.c:(.text+0x682): undefined reference to `gcry_md_write'
mailwatch-utils.c:(.text+0x694): undefined reference to `gcry_md_ctl'
mailwatch-utils.c:(.text+0x6a9): undefined reference to `gcry_md_get_algo_dlen'
mailwatch-utils.c:(.text+0x6d2): undefined reference to `gcry_md_get_algo_dlen'
mailwatch-utils.c:(.text+0x6e2): undefined reference to `gcry_md_read'
mailwatch-utils.c:(.text+0x733): undefined reference to `gcry_md_close'
../libmailwatch-core/.libs/libmailwatch-core.a(libmailwatch_core_la-mailwatch-utils.o): In function `xfce_mailwatch_create_framebox':
mailwatch-utils.c:(.text+0x291): undefined reference to `xfce_create_framebox'
../libmailwatch-core/.libs/libmailwatch-core.a(libmailwatch_core_la-mailwatch.o): In function `config_run_addedit_window':
mailwatch.c:(.text+0x439): undefined reference to `xfce_message_dialog'
../libmailwatch-core/.libs/libmailwatch-core.a(libmailwatch_core_la-mailwatch.o): In function `config_remove_btn_clicked_cb':
mailwatch.c:(.text+0x160d): undefined reference to `xfce_message_dialog'
../libmailwatch-core/.libs/libmailwatch-core.a(libmailwatch_core_la-mailwatch-mailbox-imap.o): In function `imap_config_newmailfolders_btn_clicked_cb':
mailwatch-mailbox-imap.c:(.text+0x1684): undefined reference to `xfce_message_dialog'
../libmailwatch-core/.libs/libmailwatch-core.a(libmailwatch_core_la-mailwatch-net-conn.o): In function `xfce_mailwatch_net_conn_init':
mailwatch-net-conn.c:(.text+0x643): undefined reference to `gcry_control'
../libmailwatch-core/.libs/libmailwatch-core.a(libmailwatch_core_la-mailwatch-net-conn.o): In function `xfce_mailwatch_net_conn_make_secure':
mailwatch-net-conn.c:(.text+0x100d): undefined reference to `gnutls_transport_set_lowat'
collect2: error: ld returned 1 exit status
make[2]: *** [xfce4-mailwatch-plugin] Error 1
make[2]: Leaving directory `/tmp/SBo/xfce4-mailwatch-plugin-1.1.0/panel-plugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/xfce4-mailwatch-plugin-1.1.0'
make: *** [all] Error 2

Any hint? I'm using a fully updated Slackware x64 current.
Thanks

willysr 09-25-2012 01:49 AM

it has been removed from SBo's GIT since it's no longer maintained upstream

Rod3775 10-19-2012 01:18 AM

But I have a running version as a Slackbuild with patches applied to the original xfce4-mailwatch-plugin-1.1.0 Tell me how to get it to you and I'll send it.

jan_sucan 06-08-2013 05:23 PM

I'm using Slackware64 14.0 (Xfce 4.10) and these steps work for me to compile xfce4-mailwatch-plugin-1.1.0:
  1. Don't make use of gnutls_transport_set_lowat function which has been removed in >= gnutls-3

    (Thanks to the user heirecka of FileZilla bugzilla)

    Surround a calling of gnutls_transport_set_lowat function in libmailwatch-core/mailwatch-net-conn.c with #if #endif directives not to compile it when a higher version of gnutls library is used. Or you can remove the calling lines completely instead.
    Code:

    #if GNUTLS_VERSION_NUMBER < 0x020c00
        if(fcntl(net_conn->fd, F_GETFL) & O_NONBLOCK)
            gnutls_transport_set_lowat(net_conn->gt_session, 0);
    #endif

  2. Pass additional linker flags to ./configure
    Code:

    LIBS=" -lxfcegui4 -lgcrypt " ./configure
  3. Run make
    Code:

    make

I have also added a simple checkbox in the IMAP mailbox configuration dialog in order not to store a password in the config file. Then the password is stored only in the memory. Of course, it must be entered again when plugin is reloaded but for me it's not a big problem because I usually suspend or hibernate my machine. If anyone is interested in this simple "patch", just let me know.

jan_sucan 08-05-2013 05:10 AM

Now the xfce4-mailwatch-plugin is in the SlackBuilds repository again.


All times are GMT -5. The time now is 11:08 PM.