How do I build a .so version of librsync?

87 views
Skip to first unread message

Ian Reed

unread,
Oct 11, 2015, 9:30:32 AM10/11/15
to librsync
What is the easiest way for me to build a .so version of librsync in linux?

I actually want the 3 CFFI functions exposed in this Windows fork:
https://github.com/LennardF1989/librsync

So I'm using the rdiff.c from that fork and have fixed the warnings about missing prototypes and unused variables.
I've tried to research how to use libtools to build a .so file.
Running these commands gets me the closest so far:
./configure --enable-shared
make all check

But outputs these errors:
./.libs/librsync.so: undefined reference to `blake2b_init'
./.libs/librsync.so: undefined reference to `blake2b_update'
./.libs/librsync.so: undefined reference to `blake2b_final'
./.libs/librsync.so: undefined reference to `RollsumUpdate'

I think I'll need rdiff.so because the 3 CFFI calls I want are defined in rdiff.c.

Any guidance is appreciated.

Martin Pool

unread,
Oct 16, 2015, 1:15:24 PM10/16/15
to Ian Reed, librsync
That sounds like a bug in the Makefile.am causing the blake2 functions not to properly link in.

--
You received this message because you are subscribed to the Google Groups "librsync" group.
To unsubscribe from this group and stop receiving emails from it, send an email to librsync+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Martin

Martin Pool

unread,
Nov 14, 2015, 12:51:21 PM11/14/15
to Ian Reed, librsync
I can seem to build a shared library on linux from librsync head, so I guess that fork's Makefile.am is out of date.
--
Martin
Reply all
Reply to author
Forward
0 new messages