You are not logged in.

#1 2013-10-24 08:22:24

alomsimoy
Member
Registered: 2013-06-03
Posts: 10

Problem compiling seafile-server from AUR

When I compile the package seafile-server from the AUR, It gives me an error:

This is the last section:

libtool: link: gcc -DPKGDATADIR=\"/usr/share/seafile\" -DPACKAGE_DATA_DIR=\"/usr/share/seafile\" -DSEAFILE_SERVER -I../include -I../lib -I../lib -I../common -I/usr/include -pthread -I/usr/include/searpc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/searpc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/zdb -Wall -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o .libs/httpserver httpserver.o access-file.o upload-file.o seafile-session.o repo-mgr.o pack-dir.o seaf-db.o bitfield.o branch-mgr.o fs-mgr.o block-mgr.o block-backend.o block-backend-fs.o block-backend-ceph.o commit-mgr.o log.o avl.o object-list.o seaf-utils.o obj-store.o obj-backend-fs.o obj-backend-riak.o riak-http-client.o seafile-crypt.o  -levhtp -levent_openssl -lccnet ../lib/.libs/libseafile.so ../common/cdc/.libs/libcdc.a -lssl -lcrypto -luuid -lsqlite3 -levent -lsearpc -lsearpc-json-glib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lzdb /usr/lib/libarchive.so -pthread
/usr/bin/ld: cannot find -levhtp
collect2: error: ld returned 1 exit status
Makefile:519: recipe for target 'httpserver' failed
make[2]: *** [httpserver] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-root/aur-seafile-server/src/seafile-1.8.2/httpserver'
Makefile:563: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-root/aur-seafile-server/src/seafile-1.8.2'
Makefile:457: recipe for target 'all' failed
make: *** [all] Error 2

Thank you!

Offline

#2 2013-10-24 09:28:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,540

Re: Problem compiling seafile-server from AUR

try adding options=(staticlibs) to the libevhtp PKGBUILD

Online

#3 2013-10-24 11:10:56

alomsimoy
Member
Registered: 2013-06-03
Posts: 10

Re: Problem compiling seafile-server from AUR

It works!!! big_smile  big_smile  big_smile  big_smile
Thanks!!!

Offline

#4 2013-10-24 12:06:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,517
Website

Re: Problem compiling seafile-server from AUR

alomsimoy,

If it's working now, remember to mark this thread as [SOLVED] by clicking 'edit' on your first post to change the title.

Also, if it hasn't been done already, it may be worth commenting on the relevant AUR package page - though given the precision with which Scimmia targetted the solution, I have to guess it may be an already known problem and solution.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2013-10-24 14:16:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,540

Re: Problem compiling seafile-server from AUR

Nope, I just built it quick and noticed it built only static libs. With the new makepkg default of removing static libs, it seemed obvious that that was the likely problem. Since it's been confirmed, I posted in the comments on the AUR page.

Online

Board footer

Powered by FluxBB