@jobenvil thank you very much for your quick and continuous support!
So, all in all I’ve only been following the manual I’ve referenced before, and this error is happening in the ‘Building’ part of the manual, at the seafile-server step.
Two circumstances that might be noteworthy:
- I’ve executed the ‘autogen.sh’, ‘make’ and ‘make install’ several times so far, for several versions of libsearpc/ccnet-server/seafile-server, and I really don’t know whether that might be screwing with the repetition of the step
- I’ve included the AUTOMAKE_OPTIONS = subdir-objects line at the top of every Makefile.am that was brought up by the logs because of disabled subdirectory execution. Maybe that was wrong?
As the error is happening during a gcc command within the make
command of the seafile-server directory, I have been able to reproduce the error with the same gcc command, while being in the seafile-server/server directory though. Below is the command that produces the same error:
sudo gcc -DPKGDATADIR=\"/usr/local/share/seafile\" -DPACKAGE_DATA_DIR=\"/usr/local/share/seafile\" -DSEAFILE_SERVER -DFULL_FEATURE -I../include -I../lib -I../lib -I../common -pthread -I/usr/local/include -I/usr/local/include/searpc -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/local/include -I/usr/local/include/searpc -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/mysql -Wall -g -O2 -o seaf-server seaf-server.o web-accesstoken-mgr.o seafile-session.o zip-download-mgr.o index-blocks-mgr.o share-mgr.o passwd-mgr.o quota-mgr.o repo-op.o repo-perm.o size-sched.o virtual-repo.o copy-mgr.o http-server.o upload-file.o access-file.o pack-dir.o fileserver-config.o ../common/seaf-db.o ../common/branch-mgr.o ../common/fs-mgr.o ../common/config-mgr.o repo-mgr.o ../common/commit-mgr.o ../common/log.o ../common/object-list.o ../common/rpc-service.o ../common/vc-common.o ../common/seaf-utils.o ../common/obj-store.o ../common/obj-backend-fs.o ../common/seafile-crypt.o ../common/diff-simple.o ../common/mq-mgr.o ../common/block-mgr.o ../common/block-backend.o ../common/block-backend-fs.o ../common/merge-new.o ../common/block-tx-utils.o -L/usr/local/lib /usr/local/lib/libccnet.so ../lib/.libs/libseafile_common.a -levhtp ../common/cdc/.libs/libcdc.a -lssl -lcrypto -luuid -levent -lpthread /usr/local/lib/libsearpc.so -lgio-2.0 -lgobject-2.0 -lglib-2.0 -ljansson -lz -larchive -lmysqlclient /usr/lib/x86_64-linux-gnu/libsqlite3.so -pthread
Its ‘gcc’, then some directories and then many binaries that were created during steps before.
When searching the files for the string ‘seaf_branch_manager_test_and_update_branch’ I found out that its defined in branch_mgr.c, and referenced in the files that are listed in the error.
Additionally, I have also noticed that all the other files have a ‘matching binary’ with an .o extension, for example:
/home/jerome/servers/humbold-dev/seafile-server/src/seafile-server-7.1.5-server/server/repo-mgr.c: if (seaf_branch_manager_test_and_update_branch (seaf->branch_mgr,
Binary file /home/jerome/servers/humbold-dev/seafile-server/src/seafile-server-7.1.5-server/server/repo-mgr.o matches
But the branch-mgr.c file doesn’t have a ‘matching binary’:
/home/jerome/servers/humbold-dev/seafile-server/src/seafile-server-7.1.5-server/common/branch-mgr.c:seaf_branch_manager_test_and_update_branch (SeafBranchManager *mgr,
As of now, my understanding would be that something with the generation of the binary file branch-mgr.o is failing (the file branch-mgr.o does get produced though), and then the linking through libtool doesn’t work…
I have close to no experience with make, makefiles, gcc, or C in general, so I’d be very grateful if you/somebody has an idea on how to debug this?
I really don’t know what else to do…maybe im missing some dependencies/requirements?
Kind Regards