Giter Site home page Giter Site logo

ccnet-server's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccnet-server's Issues

recycle bin

It is strongly suggested that the function of automatically clean up data rack and recycle station is added!

unknown type name ‘my_bool’

While running make command I am getting the following error

ake  all-recursive
make[1]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server'
Making all in include
make[2]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server/include'
Making all in ccnet
make[3]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server/include/ccnet'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server/include/ccnet'
make[3]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server/include'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server/include'
make[2]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server/include'
Making all in lib
make[2]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server/lib'
make  all-am
make[3]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server/lib'
make[2]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server/lib'
Making all in net
make[2]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server/net'
Making all in common
make[3]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server/net/common'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server/net/common'
Making all in server
make[3]: Entering directory '/home/vinay/Documents/seafile_source/ccnet-server/net/server'
depbase=`echo ../common/ccnet-db.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -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 -DCCNET_SERVER -I../../net/common -I../../include -I../../include/ccnet -I../../lib -I../../include -I../../lib -pthread -I/usr/local/include -I/usr/local/include/searpc -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/mysql -Wall   -g -O2 -MT ../common/ccnet-db.o -MD -MP -MF $depbase.Tpo -c -o ../common/ccnet-db.o ../common/ccnet-db.c &&\
mv -f $depbase.Tpo $depbase.Po
../common/ccnet-db.c: In function ‘mysql_db_get_connection’:
../common/ccnet-db.c:560:5: error: unknown type name ‘my_bool’; did you mean ‘bool’?
  560 |     my_bool yes = 1;
      |     ^~~~~~~
      |     bool
../common/ccnet-db.c: In function ‘_bind_params_mysql’:
../common/ccnet-db.c:664:20: error: unknown type name ‘my_bool’
  664 |             static my_bool yes = TRUE;
      |                    ^~~~~~~
../common/ccnet-db.c:672:35: warning: assignment to ‘_Bool *’ from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types]
  672 |                 params[i].is_null = &yes;
      |                                   ^
In file included from /usr/include/glib-2.0/glib/glist.h:32,
                 from /usr/include/glib-2.0/glib/ghash.h:33,
                 from /usr/include/glib-2.0/glib.h:50,
                 from ../../include/ccnet/option.h:7,
                 from ../common/common.h:18,
                 from ../common/ccnet-db.c:2:
../common/ccnet-db.c: In function ‘mysql_db_query_foreach_row’:
../common/ccnet-db.c:791:42: error: ‘my_bool’ undeclared (first use in this function); did you mean ‘bool’?
  791 |         row.results[i].is_null = g_new0 (my_bool, 1);
      |                                          ^~~~~~~
/usr/include/glib-2.0/glib/gmem.h:227:3: note: in definition of macro ‘_G_NEW’
  227 |  (struct_type *) (G_GNUC_EXTENSION ({   \
      |   ^~~~~~~~~~~
../common/ccnet-db.c:791:34: note: in expansion of macro ‘g_new0’
  791 |         row.results[i].is_null = g_new0 (my_bool, 1);
      |                                  ^~~~~~
../common/ccnet-db.c:791:42: note: each undeclared identifier is reported only once for each function it appears in
  791 |         row.results[i].is_null = g_new0 (my_bool, 1);
      |                                          ^~~~~~~
/usr/include/glib-2.0/glib/gmem.h:227:3: note: in definition of macro ‘_G_NEW’
  227 |  (struct_type *) (G_GNUC_EXTENSION ({   \
      |   ^~~~~~~~~~~
../common/ccnet-db.c:791:34: note: in expansion of macro ‘g_new0’
  791 |         row.results[i].is_null = g_new0 (my_bool, 1);
      |                                  ^~~~~~
/usr/include/glib-2.0/glib/gmem.h:227:16: error: expected expression before ‘)’ token
  227 |  (struct_type *) (G_GNUC_EXTENSION ({   \
      |                ^
/usr/include/glib-2.0/glib/gmem.h:299:42: note: in expansion of macro ‘_G_NEW’
  299 | #define g_new0(struct_type, n_structs)   _G_NEW (struct_type, n_structs, malloc0)
      |                                          ^~~~~~
../common/ccnet-db.c:791:34: note: in expansion of macro ‘g_new0’
  791 |         row.results[i].is_null = g_new0 (my_bool, 1);
      |                                  ^~~~~~
/usr/include/glib-2.0/glib/gmem.h:232:22: error: ‘__n’ undeclared (first use in this function); did you mean ‘__p’?
  232 |      __p = g_##func (__n);    \
      |                      ^~~
/usr/include/glib-2.0/glib/gmem.h:299:42: note: in expansion of macro ‘_G_NEW’
  299 | #define g_new0(struct_type, n_structs)   _G_NEW (struct_type, n_structs, malloc0)
      |                                          ^~~~~~
../common/ccnet-db.c:791:34: note: in expansion of macro ‘g_new0’
  791 |         row.results[i].is_null = g_new0 (my_bool, 1);
      |                                  ^~~~~~
../common/ccnet-db.c: In function ‘mysql_db_row_get_column_string’:
../common/ccnet-db.c:888:45: error: ‘my_bool’ undeclared (first use in this function); did you mean ‘bool’?
  888 |         row->new_binds[i].is_null = g_new0 (my_bool, 1);
      |                                             ^~~~~~~
/usr/include/glib-2.0/glib/gmem.h:227:3: note: in definition of macro ‘_G_NEW’
  227 |  (struct_type *) (G_GNUC_EXTENSION ({   \
      |   ^~~~~~~~~~~
../common/ccnet-db.c:888:37: note: in expansion of macro ‘g_new0’
  888 |         row->new_binds[i].is_null = g_new0 (my_bool, 1);
      |                                     ^~~~~~
/usr/include/glib-2.0/glib/gmem.h:227:16: error: expected expression before ‘)’ token
  227 |  (struct_type *) (G_GNUC_EXTENSION ({   \
      |                ^
/usr/include/glib-2.0/glib/gmem.h:299:42: note: in expansion of macro ‘_G_NEW’
  299 | #define g_new0(struct_type, n_structs)   _G_NEW (struct_type, n_structs, malloc0)
      |                                          ^~~~~~
../common/ccnet-db.c:888:37: note: in expansion of macro ‘g_new0’
  888 |         row->new_binds[i].is_null = g_new0 (my_bool, 1);
      |                                     ^~~~~~
/usr/include/glib-2.0/glib/gmem.h:232:22: error: ‘__n’ undeclared (first use in this function); did you mean ‘__p’?
  232 |      __p = g_##func (__n);    \
      |                      ^~~
/usr/include/glib-2.0/glib/gmem.h:299:42: note: in expansion of macro ‘_G_NEW’
  299 | #define g_new0(struct_type, n_structs)   _G_NEW (struct_type, n_structs, malloc0)
      |                                          ^~~~~~
../common/ccnet-db.c:888:37: note: in expansion of macro ‘g_new0’
  888 |         row->new_binds[i].is_null = g_new0 (my_bool, 1);
      |                                     ^~~~~~
make[3]: *** [Makefile:693: ../common/ccnet-db.o] Error 1
make[3]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server/net/server'
make[2]: *** [Makefile:388: all-recursive] Error 1
make[2]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server/net'
make[1]: *** [Makefile:492: all-recursive] Error 1
make[1]: Leaving directory '/home/vinay/Documents/seafile_source/ccnet-server'
make: *** [Makefile:401: all] Error 2

how to solve this

My mariadb version
mariadb Ver 15.1 Distrib 10.5.10-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Please help

libccnet status in ccnet and ccnet-server repositories

Hi,

libccnet can be built from the ccnet-server and ccnet repositories, however it is nearly the same code. This split can lead to maintenance issues (such as bugfixes or new features not making it to one of the repositories, such as the recent ccnet_email_user_{get,set}_reference_id). It would be great if there was only one repository holding this code. It can be a new repository, or one of ccnet or ccnet-server.

However, there is a small licensing issue that may arise:

  • seafile (client) is licensed under the GPL-2 and thus cannot link to libccnet under the AGPL-3
  • seafile-server is licensed under the AGPL-3 and thus cannot link to libccnet under the GPL-2
  • libccnet is present in ccnet (GPL-2 with OpenSSL exception) and ccnet-server (AGPL-3 with OpenSSL exception) repositories, therefore I conclude that it is dual-licensed. Am I right? Can this be made explicit in the license files (I'll propose patches if this can help) ?

Thanks for reading.

Cannot build ccnet from source

I'm trying to build Seafile (server and hub) from source on Gentoo. I believe I have nearly all dependencies; I'm expecting to see obvious compile errors for any that I missed.

I've gotten these tarballs:

ccnet-server-v6.2.0-server.tar.gz
libevhtp-1.2.12-1.tar.gz
libsearpc-v3.1-latest.tar.gz
seafile-server-v6.2.0-server.tar.gz
seahub-v6.2.0-server.tar.gz

I am attempting to install into ~/usr/local (under the user's home dir) by way of --prefix on the ./configure commands. I am following the instructions at https://manual.seafile.com/build_seafile/server.html . libevhtp and libsearpc seem to have built and installed without issue. Next is ccnet-server but I am not succeeding.

I have set these environment variables to try to help the build:

CPATH=/home/seafile6/seafile-server/src/libsearpc-3.1-latest/test
PKG_CONFIG_PATH=/home/seafile6/usr/local/lib/pkgconfig
LD_RUN_PATH=/home/seafile6/usr/local/lib

I set the CPATH because without it, the ccnet build fails at:

../common/rpc-service.c:40:30: fatal error: searpc-signature.h: No such file or directory #include "searpc-signature.h"

Once I set the CPATH, then the build fails at:

[...lots more output above this...]
/bin/sh ../../libtool  --tag=CC   --mode=link gcc  -g -O2 -no-undefined  -o ccnet-server ccnet-server.o server-session.o user-mgr.o group-mgr.o org-mgr.o ../common/ccnet-db.o .
./common/session.o ../common/peer-mgr.o ../common/packet-io.o ../common/message.o ../common/perm-mgr.o ../common/log.o ../common/peer.o ../common/algorithms.o ../common/handsha
ke.o ../common/processor.o ../common/getgateway.o ../common/connect-mgr.o ../common/message-manager.o ../common/proc-factory.o ../common/ccnet-config.o ../common/rpc-service.o
../common/peermgr-message.o ../common/processors/sendmsg-proc.o ../common/processors/rcvmsg-proc.o ../common/processors/rcvcmd-proc.o ../common/processors/putpubinfo-proc.o ../
common/processors/getpubinfo-proc.o ../common/processors/keepalive2-proc.o ../common/processors/mqserver-proc.o ../common/processors/service-proxy-proc.o ../common/processors/s
ervice-stub-proc.o ../common/processors/rpcserver-proc.o ../common/processors/threaded-rpcserver-proc.o ../common/processors/echo-proc.o ../common/processors/sendsessionkey-pro
c.o ../common/processors/recvsessionkey-proc.o ../common/processors/sendsessionkey-v2-proc.o ../common/processors/recvsessionkey-v2-proc.o -levent  ../../lib/libccnetd.la ../..
/net/common/db-wrapper/libdbwrapper.la -lglib-2.0  -lgobject-2.0 -lglib-2.0  -lssl -lcrypto   -luuid -lsqlite3 -lpthread -L/home/seafile6/usr/local/lib -lsearpc -lgio-2.0 -lgob
ject-2.0 -lglib-2.0 -ljansson -L/usr/lib64 -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl -L/usr/lib64/postgresql-9.5/lib64 -lpq                        
libtool: link: gcc -g -O2 -o ccnet-server ccnet-server.o server-session.o user-mgr.o group-mgr.o org-mgr.o ../common/ccnet-db.o ../common/session.o ../common/peer-mgr.o ../comm
on/packet-io.o ../common/message.o ../common/perm-mgr.o ../common/log.o ../common/peer.o ../common/algorithms.o ../common/handshake.o ../common/processor.o ../common/getgateway
.o ../common/connect-mgr.o ../common/message-manager.o ../common/proc-factory.o ../common/ccnet-config.o ../common/rpc-service.o ../common/peermgr-message.o ../common/processor
s/sendmsg-proc.o ../common/processors/rcvmsg-proc.o ../common/processors/rcvcmd-proc.o ../common/processors/putpubinfo-proc.o ../common/processors/getpubinfo-proc.o ../common/p
rocessors/keepalive2-proc.o ../common/processors/mqserver-proc.o ../common/processors/service-proxy-proc.o ../common/processors/service-stub-proc.o ../common/processors/rpcserv
er-proc.o ../common/processors/threaded-rpcserver-proc.o ../common/processors/echo-proc.o ../common/processors/sendsessionkey-proc.o ../common/processors/recvsessionkey-proc.o
../common/processors/sendsessionkey-v2-proc.o ../common/processors/recvsessionkey-v2-proc.o  ../../lib/.libs/libccnetd.a -levent -L/home/seafile6/usr/local/lib ../../net/common
/db-wrapper/.libs/libdbwrapper.a -L/usr/lib64 -L/usr/lib64/postgresql-9.5/lib64 -luuid -lsqlite3 /home/seafile6/usr/local/lib/libsearpc.so -lgio-2.0 -lgobject-2.0 -lglib-2.0 /u
sr/lib64/libjansson.so -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl -lpq -Wl,-rpath -Wl,/home/seafile6/usr/local/lib -Wl,-rpath -Wl,/home/seafile6/usr/local/lib
../common/rpc-service.o: In function `ccnet_start_rpc':                                                                                                      
/home/seafile6/seafile-server/src/ccnet-server-6.2.0-server/net/server/../common/rpc-service.c:63: undefined reference to `searpc_signature_string__void'            
/home/seafile6/seafile-server/src/ccnet-server-6.2.0-server/net/server/../common/rpc-service.c:68: undefined reference to `searpc_signature_objlist__void'
[...and many more similar "searpc_signature_****" lines below here...]

~/usr/local has the following stuff in it:

/home/seafile6/usr/local 
├── bin                 
│   └── searpc-codegen.py    
├── include                   
│   ├── ccnet                 
│   │   ├── async-rpc-proc.h 
│   │   ├── ccnet-client.h    
│   │   ├── ccnet-object.h    
│   │   ├── ccnetrpc-transport.h
│   │   ├── ccnet-session-base.h
│   │   ├── cevent.h            
│   │   ├── invoke-service-proc.h
│   │   ├── job-mgr.h         
│   │   ├── message.h         
│   │   ├── mqclient-proc.h
│   │   ├── option.h    
│   │   ├── packet.h                                         
│   │   ├── peer.h                     
│   │   ├── processor.h                        
│   │   ├── proc-factory.h
│   │   ├── rpcserver-proc.h
│   │   ├── sendcmd-proc.h
│   │   ├── status-code.h
│   │   ├── threaded-rpcserver-proc.h
│   │   ├── timer.h
│   │   └── valid-check.h
│   ├── ccnet.h
│   ├── evhtp
│   │   ├── config.h
│   │   ├── evhtp.h
│   │   ├── parser.h
│   │   └── thread.h
│   ├── evhtp.h
│   ├── searpc-client.h
│   ├── searpc.h
│   ├── searpc-named-pipe-transport.h
│   ├── searpc-server.h
│   └── searpc-utils.h
├── lib
│   ├── libccnet.a
│   ├── libccnet.la
│   ├── libccnet.so -> libccnet.so.0.0.0
│   ├── libccnet.so.0 -> libccnet.so.0.0.0
│   ├── libccnet.so.0.0.0
│   ├── libevhtp.a
│   ├── libsearpc.a
│   ├── libsearpc.la
│   ├── libsearpc.so -> libsearpc.so.1.0.2
│   ├── libsearpc.so.1 -> libsearpc.so.1.0.2
│   ├── libsearpc.so.1.0.2
│   └── pkgconfig
│       ├── evhtp.pc
│       └── libsearpc.pc
└── lib64
    └── python2.7
        └── site-packages
            └── pysearpc
                ├── client.py
                ├── client.pyc
                ├── client.pyo
                ├── common.py
                ├── common.pyc
                ├── common.pyo
                ├── __init__.py
                ├── __init__.pyc
                ├── __init__.pyo
                ├── server.py
                ├── server.pyc
                └── server.pyo

Does ccnet-server need to listen under 0.0.0.0:10001?

Hello,

I'm about to secure mine seafile server and the only missing part I have got left is how to make ccnet-server just listenting under 127.0.0.1. Is this even possible to do so or is this server needed to listen public with port 10001 and what is this service even doing since I'm not really able to secure it.

Just a reminder of the view of an open-source user:
It isn't really easy to use seafile because of major lack of documentation and non working functions. Therefore seafile is not really following linux filesystem standard etc. There is reallly a lot to improve... but software seems to be nice.

Sincerly,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.