Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2013 03:00:50 +0000
From:      Steve Wills <swills@freebsd.org>
To:        AN <andy@neu.net>
Cc:        gnome@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: evolution-webcal - invalid DSO for symbol `g_thread_init' definition
Message-ID:  <20130809030049.GA81796@mouf.net>
In-Reply-To: <alpine.BSF.2.00.1308062137130.85633@mail.neu.net>
References:  <mailman.1.1375531201.92676.freebsd-ports@freebsd.org> <alpine.BSF.2.00.1308062137130.85633@mail.neu.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--4Ckj6UjgE2iN1+kY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Aug 06, 2013 at 09:40:37PM -0400, AN wrote:
> FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #78 r253966: Mon Aug  5 
> 14:42:05 CDT 2013     root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64
> 
> cc -DHAVE_CONFIG_H -I. -I.. -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" 
> -I/usr/local/include/gtk-2.0 -I/usr/local/include/gio-unix-2.0/ 
> -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo 
> -I/usr/local/include/pixman-1 -D_THREAD_SAFE 
> -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng15 
> -I/usr/local/include/pango-1.0 -I/usr/local/include/freetype2 
> -I/usr/local/include/harfbuzz 
> -I/usr/local/include/evolution-data-server-2.32 
> -I/usr/local/include/gconf/2 -I/usr/local/include/orbit-2.0 -DORBIT2=1 
> -I/usr/local/include/libsoup-2.4 -pthread -I/usr/local/include/glib-2.0 
> -I/usr/local/include/libxml2 -I/usr/local/include    -I/usr/local/include 
> -O2 -pipe -fno-strict-aliasing -MT evolution-webcal-notify.o -MD -MP -MF 
> .deps/evolution-webcal-notify.Tpo -c -o evolution-webcal-notify.o 
> evolution-webcal-notify.c
> evolution-webcal-main.c:83:9: warning: assigning to 'gchar *' (aka 'char 
> *') from 'const char *' discards qualifiers
>        [-Wincompatible-pointer-types-discards-qualifiers]
>            name = icalproperty_get_value_as_string (prop);
>                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> evolution-webcal-main.c:85:9: warning: assigning to 'gchar *' (aka 'char 
> *') from 'const char *' discards qualifiers
>        [-Wincompatible-pointer-types-discards-qualifiers]
>            desc = icalproperty_get_value_as_string (prop);
>                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> evolution-webcal-main.c:115:14: warning: 'soup_message_headers_get' is 
> deprecated [-Wdeprecated-declarations]
>      header = soup_message_headers_get (msg->response_headers, "Location");
>               ^
> /usr/local/include/libsoup-2.4/libsoup/soup-message-headers.h:40:21: note: 
> 'soup_message_headers_get' declared here
> const char         *soup_message_headers_get      (SoupMessageHeaders 
> *hdrs,
>                      ^
> evolution-webcal-main.c:255:3: warning: 'g_thread_init' is deprecated 
> [-Wdeprecated-declarations]
>    g_thread_init (NULL);
>    ^
> /usr/local/include/glib-2.0/glib/deprecated/gthread.h:261:10: note: 
> 'g_thread_init' declared here
> void     g_thread_init                   (gpointer vtable);
>           ^
> 4 warnings generated.
> mv -f .deps/evolution-webcal-main.Tpo .deps/evolution-webcal-main.Po
> mv -f .deps/evolution-webcal-notify.Tpo .deps/evolution-webcal-notify.Po
> cc  -O2 -pipe -fno-strict-aliasing  -L/usr/local/lib -o evolution-webcal 
> evolution-webcal-main.o evolution-webcal-notify.o -lgtk-x11-2.0 
> -lgdk-x11-2.0 -lpangocairo-1.0 -lXext -lXrender -lXinerama -lXi -lXrandr 
> -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -latk-1.0 -lcairo 
> -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig 
> -lecal-1.2 -lical -licalss -licalvcal -pthread -ledataserver-1.2 -lxml2 
> -lgconf-2 -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -L/usr/local/lib -lglib-2.0 
> -lintl
> /usr/bin/ld: R: invalid DSO for symbol `g_thread_init' definition
> /usr/local/lib/libgthread-2.0.so.0: could not read symbols: Bad value
> cc: error: linker command failed with exit code 1 (use -v to see 
> invocation)

Try the attached patch, also at:

http://meatwad.mouf.net/~swills/webcal.diff

Steve

--4Ckj6UjgE2iN1+kY
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="webcal.diff"

Index: Makefile
===================================================================
--- Makefile	(revision 324412)
+++ Makefile	(working copy)
@@ -8,7 +8,7 @@
 
 PORTNAME=	evolution-webcal
 PORTVERSION=	2.32.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	www gnome
 MASTER_SITES=	GNOME
 DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
Index: files/patch-main.c
===================================================================
--- files/patch-main.c	(revision 0)
+++ files/patch-main.c	(working copy)
@@ -0,0 +1,11 @@
+--- src/evolution-webcal-main.c.orig	2013-08-09 02:33:10.761502738 +0000
++++ src/evolution-webcal-main.c	2013-08-09 02:33:18.402515485 +0000
+@@ -252,8 +252,6 @@
+   textdomain (GETTEXT_PACKAGE);
+ #endif
+ 
+-  g_thread_init (NULL);
+-
+   if (!gtk_init_with_args (&argc, &argv,
+ 			_("- Evolution webcal: URI Handler"),
+ 			options,

Property changes on: files/patch-main.c
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property

--4Ckj6UjgE2iN1+kY--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130809030049.GA81796>