Subject: | Error when compiling |
Date: | Thu, 20 Jul 2006 17:34:32 -0300 |
To: | bug-File-RsyncP [...] rt.cpan.org |
From: | Rodrigo Real <rreal [...] ucpel.tche.br> |
Hi
I got the following compilation error in
File-RsyncP-0.62/FileList/rsync.h:
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"0.62\" -DXS_VERSION=\"0.62\" -fPIC
"-I/usr/lib/perl/5.8/CORE" -DPERL_BYTEORDER= exclude.c
exclude.c:29: error: static declaration of 'verbose' follows
non-static declaration
rsync.h:811: error: previous declaration of 'verbose' was here
exclude.c: In function 'get_exclude_tok':
exclude.c:262: warning: pointer targets in passing argument 1 of
'strlen' differ in signedness
make[1]: ** [exclude.o] Erro 1
make[1]: Leaving directory
`/home/rreal/temp/File-RsyncP-0.62/FileList'
make: ** [subdirs] Erro 2
Commenting the line seemed to solve the problem. Here is the patch:
--- File-RsyncP-0.62/FileList/rsync.h~ 2006-07-11 23:07:06.000000000
-0300
+++ File-RsyncP-0.62/FileList/rsync.h 2006-07-20 17:19:08.000000000
-0300
@@ -808,7 +808,7 @@
#define MY_GID() getgid()
#endif
-extern int verbose;
+/* extern int verbose; */
#ifndef HAVE_INET_NTOP
const char *