[developers] compiling fftb
Alexandre Rademaker
arademaker at gmail.com
Wed Jul 17 12:08:40 CEST 2019
For compiling FFT (on Ubuntu Linux, MacOS will be the next challenge), I found that I need the TSDB library:
$ make
gcc -O2 -g -c -o web.o web.c
web.c:17:10: fatal error: tsdb.h: No such file or directory
#include <tsdb.h>
^~~~~~~~
compilation terminated.
make: *** [<builtin>: web.o] Error 1
In the LOGON directory, I found it inside the lib/src/tsdb/c directory but I wasn’t able to compile it. Does anyone have any idea about the error below?
~/logon/lingo/lkb/src/tsdb/c$ make
gcc -DDEBUG -DALEP -DREAD_TABLE -DJOIN -DCOMMIT -DPRINT_SELECTION -DINITIALIZE -DSERVER -DNOFREE -DCOMPRESSED_DATA -fPIC -g -O8 -Iinclude -Winline -c tsdb_server.c
tsdb_server.c: In function ‘tsdb_server_initialize’:
tsdb_server.c:311:3: warning: implicit declaration of function ‘umask’; did you mean ‘sigmask’? [-Wimplicit-function-declaration]
umask(0);
^~~~~
sigmask
tsdb_server.c: In function ‘_sigcld’:
tsdb_server.c:342:14: error: storage size of ‘status’ isn’t known
union wait status;
^~~~~~
tsdb_server.c: In function ‘tsdb_client_clear_stream’:
tsdb_server.c:1124:15: warning: format not a string literal and no format arguments [-Wformat-security]
buffer);
^~~~~~
tsdb_server.c: In function ‘tsdb_server_initialize’:
tsdb_server.c:309:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
chdir("/tmp");
^~~~~~~~~~~~~
tsdb_server.c: In function ‘tsdb_socket_readline’:
tsdb_server.c:715:13: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
(void)read(socket, &c, 1);
^~~~~~~~~~~~~~~~~~~
make: *** [Makefile:148: tsdb_server.o] Error 1
Best,
--
Alexandre Rademaker
http://arademaker.github.io
More information about the developers
mailing list