[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[gftp] Re: Problems install on solaris
Here is a patch that I just commited to CVS that fixes this problem.
To apply this, go to the gftp-2.0.16 source directory and type
patch -p0 < gftp-rc959-ipv6.patch
Just a note to other members of the list. If you are waiting for a patch for
a bug posted here, check the latest version of CVS. I have fixed numerous bugs
posted here, but never responded back to the list.
Brian
On Fri, Dec 12, 2003 at 05:42:25PM +0100, Ulrich Hiller wrote:
> Dear list,
> we want to install gftp 2.0.16 on solaris 2.7.
> configure went without error. But make said:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/systools/misc/glib-1.2.3/lib/glib/include
> -I/systools/misc/glib-1.2.3/include -D_REENTRANT -I../intl
> -DSHARE_DIR=\"/systools/misc/gftp/gftp/share/gftp\" -DLOCALE_DIR=\"\" -g -O2
> -c rfc959.c
> In file included from rfc959.c:20:
> gftp.h:97:2: warning: #warning major macro was not defined by the system.
> Defining one that is probably wrong for your system
> gftp.h:102:2: warning: #warning minor macro was not defined by the system.
> Defining one that is probably wrong for your system
> rfc959.c: In function `rfc959_accept_active_connection':
> rfc959.c:935: storage size of `cli_addr' isn't known
> gmake[2]: *** [rfc959.o] Error 1
> gmake[2]: Leaving directory `/disk-b/hiller/gftp-2.0.16/lib'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/disk-b/hiller/gftp-2.0.16'
> gmake: *** [all-recursive-am] Error 2
>
>
> Any idea how to fix it?
> Kind regards and thank you for your answer, ulrich hiller
>
> Ulrich Hiller
> Max-Planck-Institut fuer Astronomie
> Koenigstuhl 17
> 69117 Heidelberg
> Germany
> phone +49 6221 528238
> fax +49 6221 528246
> email hiller@mpia.de
>
Index: lib/rfc959.c
===================================================================
RCS file: /cvs/gnome/gftp/lib/rfc959.c,v
retrieving revision 1.50
diff -u -r1.50 rfc959.c
--- lib/rfc959.c 5 Dec 2003 00:19:47 -0000 1.50
+++ lib/rfc959.c 13 Dec 2003 21:00:57 -0000
@@ -933,9 +933,9 @@
intptr_t passive_transfer;
rfc959_parms * parms;
#ifdef HAVE_IPV6
- struct sockaddr_in cli_addr;
-#else
struct sockaddr_in6 cli_addr;
+#else
+ struct sockaddr_in cli_addr;
#endif
socklen_t cli_addr_len;