Compile error against librsync 1.0.0.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile error against librsync 1.0.0.

Ed Greenberg
My backup server is Centos 6 and rdiff-backup 1.2.8. and I have my first
few Centos 6 boxen backing up fine.

Unfortunately, I have a bunch of Centos5 machines that cannot be
upgraded to Centos6 or 7.   Epel for Centos 5 installed 1.0.5, which
failed miserably to back up to the 1.2.8 backup server. No surprise
there.  I'm familiar with the requirement that versions match.

So I am trying to build 1.2.8 on Centos 5.

After installing librsync-devel, rsync-devel, python-devel and, of
course, gcc, my build fails as follows:

[root@academie rdiff-backup-1.2.8]# python setup.py build
running build
running build_py
running build_ext
building 'rdiff_backup._librsync' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC
-I/usr/include/python2.4 -c _librsyncmodule.c -o
build/temp.linux-x86_64-2.4/_librsyncmodule.o
_librsyncmodule.c: In function ‘_librsync_new_sigmaker’:
_librsyncmodule.c:63: error: ‘RS_DEFAULT_STRONG_LEN’ undeclared (first
use in this function)
_librsyncmodule.c:63: error: (Each undeclared identifier is reported
only once
_librsyncmodule.c:63: error: for each function it appears in.)
_librsyncmodule.c:63: error: too few arguments to function ‘rs_sig_begin’
error: command 'gcc' failed with exit status 1
[root@academie rdiff-backup-1.2.8]#


Current rev of librsync is 1.0.0.  On the web I found that the constant
RS_DEFAULT_STRONG_LEN is defined in librsync.h, but that the definition
is missing in that file in 1.0.0.

Does anybody know how to resolve this?

Thanks,

Ed Greenberg


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: Compile error against librsync 1.0.0.

Ed Greenberg
On 05/09/2015 01:50 PM, Ed Greenberg wrote:
> My backup server is Centos 6 and rdiff-backup 1.2.8. and I have my
> first few Centos 6 boxen backing up fine.
>
> Unfortunately, I have a bunch of Centos5 machines that cannot be
> upgraded to Centos6 or 7.   Epel for Centos 5 installed 1.0.5, which
> failed miserably to back up to the 1.2.8 backup server. No surprise
> there.  I'm familiar with the requirement that versions match.
>
> So I am trying to build 1.2.8 on Centos 5.
Please disregard.  Right after I sent this (face palm) I realized what
search terms I had missed in researching it.

The result was this page:
http://pkgs.fedoraproject.org/cgit/rdiff-backup.git/tree/rdiff-backup-1.2.8-librsync-1.0.0.patch 
which resolves the problem.

Sorry for using up bandwidth :)

Ed G

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki