Package Details: claws-contacts-git 0.r99.g5c40728-2

Git Clone URL: https://aur.archlinux.org/claws-contacts-git.git (read-only, click to copy)
Package Base: claws-contacts-git
Description: A GTK+ based contacts manager / address book - git checkout
Upstream URL: http://www.claws-mail.org/
Licenses: GPL3
Conflicts: claws-contacts, claws-contacts-cvs
Provides: claws-contacts, claws-contacts-cvs
Submitter: eworm
Maintainer: eworm
Last Packager: eworm
Votes: 6
Popularity: 0.000029
First Submitted: 2013-03-21 15:36 (UTC)
Last Updated: 2015-07-14 21:17 (UTC)

Required by (0)

Sources (1)

Latest Comments

dreieck commented on 2022-10-20 09:16 (UTC)

I now get a build error ldap-plugin.c:438:17: error: conflicting types for 'ldap_connect'; have 'gboolean(AbookConnection *, gchar **)' {aka 'int(AbookConnection *, char **)'}:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I../.. -I../../src/dbus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -pthread -I/usr/include/p11-kit-1 -DG_LOG_DOMAIN=\"Claws-Contacts\" -g -Wall -MT ldap-plugin.lo -MD -MP -MF .deps/ldap-plugin.Tpo -c ldap-plugin.c  -fPIC -DPIC -o .libs/ldap-plugin.o
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from ../../src/gtk-utils.h:40,
                 from ldap-plugin.c:42:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
  236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
      | ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32:
/usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here
  700 | {
      | ^
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:126:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   73 |   GTimeVal last_popdown;
      |   ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from ldap-plugin.c:36:
/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here
  576 | struct _GTimeVal
      |        ^~~~~~~~~
ldap-plugin.c:438:17: error: conflicting types for 'ldap_connect'; have 'gboolean(AbookConnection *, gchar **)' {aka 'int(AbookConnection *, char **)'}
  438 | static gboolean ldap_connect(AbookConnection* abook_con, gchar** error) {
      |                 ^~~~~~~~~~~~
[...]

dreieck commented on 2021-08-03 15:43 (UTC) (edited on 2021-08-03 15:44 (UTC) by dreieck)

Fails to build() for me (while linking):

==> Starting build()...
[...]
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from extension-loader.c:36:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
  547 | struct _GTimeVal
      |        ^~~~~~~~~
mv -f .deps/extension-loader.Tpo .deps/extension-loader.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -Wall   -o claws-contacts claws-contacts.o mainwindow.o callbacks.o utils.o plugin-loader.o gtk-utils.o about.o contactwindow.o printing.o settings.o extension-loader.o -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype -lgcrypt -lgpg-error -lxml2 ../xmllib/libcontactxml.la ../src/dbus/libdbus.la -lgcrypt -lm 
libtool: link: gcc -g -Wall -o claws-contacts claws-contacts.o mainwindow.o callbacks.o utils.o plugin-loader.o gtk-utils.o about.o contactwindow.o printing.o settings.o extension-loader.o -Wl,--export-dynamic -pthread  -lgpg-error ../xmllib/.libs/libcontactxml.a -lxml2 ../src/dbus/.libs/libdbus.a -lgmodule-2.0 -ldbus-glib-1 -ldbus-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype -lgcrypt -lm -pthread
/usr/bin/ld: callbacks.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:43: multiple definition of `mainloop'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:43: first defined here
/usr/bin/ld: callbacks.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:44: multiple definition of `DAEMON'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:44: first defined here
/usr/bin/ld: callbacks.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:45: multiple definition of `log_handler_id'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:45: first defined here
/usr/bin/ld: callbacks.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:46: multiple definition of `DBusProxy'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:46: first defined here
/usr/bin/ld: utils.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:43: multiple definition of `mainloop'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:43: first defined here
/usr/bin/ld: utils.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:44: multiple definition of `DAEMON'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:44: first defined here
/usr/bin/ld: utils.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:45: multiple definition of `log_handler_id'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:45: first defined here
/usr/bin/ld: utils.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:46: multiple definition of `DBusProxy'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:46: first defined here
/usr/bin/ld: ../src/dbus/.libs/libdbus.a(server-object.o):/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/dbus/dbus-service.h:43: multiple definition of `mainloop'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:43: first defined here
/usr/bin/ld: ../src/dbus/.libs/libdbus.a(server-object.o):/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/dbus/dbus-service.h:44: multiple definition of `DAEMON'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:44: first defined here
/usr/bin/ld: ../src/dbus/.libs/libdbus.a(server-object.o):/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/dbus/dbus-service.h:45: multiple definition of `log_handler_id'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:45: first defined here
/usr/bin/ld: ../src/dbus/.libs/libdbus.a(server-object.o):/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/dbus/dbus-service.h:46: multiple definition of `DBusProxy'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:46: first defined here
/usr/bin/ld: ../src/dbus/.libs/libdbus.a(dbus-service.o):/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/dbus/dbus-service.h:43: multiple definition of `mainloop'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:43: first defined here
/usr/bin/ld: ../src/dbus/.libs/libdbus.a(dbus-service.o):/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/dbus/dbus-service.h:44: multiple definition of `DAEMON'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:44: first defined here
/usr/bin/ld: ../src/dbus/.libs/libdbus.a(dbus-service.o):/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/dbus/dbus-service.h:45: multiple definition of `log_handler_id'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:45: first defined here
/usr/bin/ld: ../src/dbus/.libs/libdbus.a(dbus-service.o):/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/dbus/dbus-service.h:46: multiple definition of `DBusProxy'; claws-contacts.o:/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src/../src/dbus/dbus-service.h:46: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:568: claws-contacts] Error 1
make[3]: Leaving directory '/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src'
make[2]: *** [Makefile:649: all-recursive] Error 1
make[2]: Leaving directory '/[...]/.cache/yay/claws-contacts-git/src/claws-contacts/src'
make[1]: *** [Makefile:734: all-recursive] Error 1
make[1]: Leaving directory '/[...]/.cache/yay/claws-contacts-git/src/claws-contacts'
make: *** [Makefile:473: all] Error 2

dreieck commented on 2021-08-03 15:38 (UTC) (edited on 2021-08-03 15:39 (UTC) by dreieck)

After a run of autogen.sh, config.h contains upstream version. Please include it in $pkgver. Before a run of autogen.sh, it can be found in po/claws-contacts.pot.

If you move the ./autogen.sh-command into prepare(), pkgver() could then look like:

pkgver() {
  cd "${srcdir}/claws-contacts"

  _ver="$(grep -E '^[[:space:]]*#define[[:space:]]+VERSION[[:space:]]+[^[:space:]]' config.h | awk '{print $3}' | tr -d \"\')"
  _rev="$(git rev-list --count HEAD)"
  _hash="$(git log -1 --format="%h")"
  _date="$(git log -1 --date=format:%Y%m%d --pretty=format:%cd)"
  if [ -z ${_ver} ]; then
    error "Could not determine version."
  else
    printf '%s' "${_ver}+r${_rev}.d${_date}.g${_hash}"
  fi
}

.. Also, if done, please add =${pkgver} to the provides-entries.

Thanks for maintaining!

<deleted-account> commented on 2015-07-14 19:38 (UTC)

Requires a dependency on dbus-glib.