haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

Building seafile-daemon on Debian Sid #1798

Closed ghost closed 7 years ago

ghost commented 7 years ago

The Seafile client (seafile-gui) installed via the Ubuntu packages does not work on Debian Sid, most probably due to different libssl version.

Rebuilding the client is problematic though:

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I../include -I../lib -I../common -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/tmp/buildd/ccnet-6.0.0/debian/tmp/usr/include -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/tmp/buildd/libsearpc1-3.0.7/debian/tmp/usr/include -I/tmp/buildd/libsearpc1-3.0.7/debian/tmp/usr/include/searpc -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/searpc -Wall -g -O2 -c rsa.c -fPIC -DPIC -o .libs/rsa.o rsa.c: In function ‘private_key_to_pub’: rsa.c:21:8: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’ pub->n = BN_dup(priv->n); ^~ In file included from /usr/include/openssl/asn1.h:24:0, from /usr/include/openssl/objects.h:916, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/pem.h:16, from rsa.c:5: rsa.c: In function ‘public_key_append_to_gstring’: rsa.c:42:33: error: dereferencing pointer to incomplete type ‘RSA {aka const struct rsa_st}’ gsize len = BN_num_bytes(rsa->n); ^ rsa.c: In function ‘generate_private_key’: rsa.c:142:2: warning: ‘RSA_generate_key’ is deprecated [-Wdeprecated-declarations] private = RSA_generate_key(bits, 35, NULL, NULL); ^~~ In file included from /usr/include/openssl/rsa.h:13:0, from /usr/include/openssl/x509.h:31, from /usr/include/openssl/pem.h:17, from rsa.c:5: /usr/include/openssl/rsa.h:193:1: note: declared here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ Makefile:566: fallo en las instrucciones para el objetivo 'rsa.lo' make[4]: *** [rsa.lo] Error 1

Debian Sid has opensll-1.0.2

ghost commented 7 years ago

You can build seafile-daemon just using dpkg-buildpackage, but make sure:

After those changes, the packages do build.