Subject: Re: Please someone fix libopensync
To: None <elekktretterr@exemail.com.au>
From: Yuji Yamano <yyamano@kt.rim.or.jp>
List: pkgsrc-users
Date: 12/11/2007 15:36:35
On Tue, 11 Dec 2007 12:49:07 +1100 (EST), elekktretterr@exemail.com.au wrote:

> comms/libopensync has been broken for ages on DragonFly with following error:

> cc1: warnings being treated as errors
> osengine_client.c: In function 'osync_client_spawn':
> osengine_client.c:768: warning: missing sentinel in function call
> osengine_client.c:771: warning: missing sentinel in function call
> *** Error code 1

Could you try this patch?

--- osengine/osengine_client.c.orig	2007-03-27 20:49:26.000000000 +0900
+++ osengine/osengine_client.c
@@ -765,10 +765,10 @@ osync_bool osync_client_spawn(OSyncClien
 			osync_env_export_loaded_modules(osync_group_get_env(engine->group));
 
 			char *memberstring = g_strdup_printf("%lli", osync_member_get_id(client->member));
-			execlp(OSPLUGIN, OSPLUGIN, osync_group_get_configdir(engine->group), memberstring, NULL);
+			execlp(OSPLUGIN, OSPLUGIN, osync_group_get_configdir(engine->group), memberstring, (char *)NULL);
 			
 			if (errno == ENOENT) {
-				execlp("./osplugin", "osplugin", osync_group_get_configdir(engine->group), memberstring, NULL);
+				execlp("./osplugin", "osplugin", osync_group_get_configdir(engine->group), memberstring, (char *)NULL);
 			}
 			
 			osync_trace(TRACE_INTERNAL, "unable to exec");


-- Yuji Yamano 
Peace, Unity, Love and Having Fun!