Re: Patch for building gvfs 0.0.1 on Solaris

Damien Carbery <[email protected]>
Newsgroups gmane.comp.gnome.vfs.general
Message-ID <[email protected]>
----- Original Message -----
From: Alexander Larsson <[email protected]>
Date: Thursday, November 8, 2007 5:52 pm
Subject: Re: Patch for building gvfs 0.0.1 on Solaris
To: Damien Carbery <[email protected]>
Cc: [email protected]


> On Thu, 2007-11-08 at 17:06 +0000, Damien Carbery wrote:
> > Attached is a patch to fix some build issues on Solaris.
> > I was using the 0.0.1 tarball, copying in the latest source when I 
> > encountered a build issue.
> > I admit that I didn't use the latest svn source for all files.
> > 
> > * test/benchmark-common.c - the sig_t type is not available.
> > * daemon/gvfsdaemon.c - #include <errno.h> for errno.
> > * daemon/gvfsjobmove.c - #include <strings.h> to declare strcmp.
> 
> Commited thanks.
> 
> > A number of other files will need strings.h included as the compiler 
> is 
> > displaying "implicit function declaration" warnings:
> > - gsysutils.c (strlenm strncpy), gvfswritechannel.c (strlen), 
> > gvfsmonitor.c (strcmp), gvfsdaemonutils.c (strlen), gvfsjobcopy.c (strcpy).
> > 
> > string.h will be needed for:
> > - gsysutils.c (memset), gvfschannel.c (memcpy), gvfsdaemonutils.c (memcpy).
> > 
> > I can create a patch tomorrow if needed.

New patch attached.

> 
> Cool! (Although i'm out until monday.)
>

_______________________________________________
gnome-vfs-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list
gvfs-02-solaris2.diff (text/x-patch, 1.7 KB)
--- gvfs-0.0.1/daemon/gvfswritechannel.c.orig	2007-11-09 11:32:59.269688917 +0000
+++ gvfs-0.0.1/daemon/gvfswritechannel.c	2007-11-09 11:33:13.513829032 +0000
@@ -22,6 +22,7 @@
 
 #include <config.h>
 
+#include <strings.h>
 #include <unistd.h>
 #include <errno.h>
 #include <sys/types.h>
--- gvfs-0.0.1/daemon/gvfsjobcopy.c.orig	2007-11-09 11:34:32.066438862 +0000
+++ gvfs-0.0.1/daemon/gvfsjobcopy.c	2007-11-09 11:34:45.325267669 +0000
@@ -22,6 +22,7 @@
 
 #include <config.h>
 
+#include <strings.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/socket.h>
--- gvfs-0.0.1/daemon/gvfschannel.c.orig	2007-11-09 11:35:48.488607217 +0000
+++ gvfs-0.0.1/daemon/gvfschannel.c	2007-11-09 11:36:02.602036501 +0000
@@ -22,6 +22,7 @@
 
 #include <config.h>
 
+#include <string.h>
 #include <unistd.h>
 #include <errno.h>
 #include <sys/types.h>
--- gvfs-0.0.1/daemon/gvfsmonitor.c.orig	2007-11-09 11:33:29.396863882 +0000
+++ gvfs-0.0.1/daemon/gvfsmonitor.c	2007-11-09 11:33:40.621846027 +0000
@@ -22,6 +22,7 @@
 
 #include <config.h>
 
+#include <strings.h>
 #include <unistd.h>
 #include <errno.h>
 #include <sys/types.h>
--- gvfs-0.0.1/daemon/gvfsdaemonutils.c.orig	2007-11-09 11:33:55.141785675 +0000
+++ gvfs-0.0.1/daemon/gvfsdaemonutils.c	2007-11-09 11:36:21.079881359 +0000
@@ -22,6 +22,8 @@
 
 #include <config.h>
 
+#include <string.h>
+#include <strings.h>
 #include <unistd.h>
 #include <errno.h>
 #include <stdlib.h>
--- gvfs-0.0.1/common/gsysutils.c.orig	2007-11-09 11:32:03.287440400 +0000
+++ gvfs-0.0.1/common/gsysutils.c	2007-11-09 11:35:19.181628127 +0000
@@ -25,6 +25,8 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <stdio.h>
+#include <string.h>
+#include <strings.h>
 #include <errno.h>
 #include <unistd.h>
 #include <gio/gioerror.h>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.