Skip to content

Instantly share code, notes, and snippets.

@krombel
Last active February 6, 2016 15:00
Show Gist options
  • Save krombel/8490f556d784bbf67ce5 to your computer and use it in GitHub Desktop.
Save krombel/8490f556d784bbf67ce5 to your computer and use it in GitHub Desktop.
build libcurve - autogen.sh, configure, make check
/path/to/libcurve $ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config --force -I config
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `config'.
libtoolize: copying file `config/libtool.m4'
libtoolize: copying file `config/ltoptions.m4'
libtoolize: copying file `config/ltsugar.m4'
libtoolize: copying file `config/ltversion.m4'
libtoolize: copying file `config/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --include=config --force
autoreconf: running: /usr/bin/autoheader --include=config --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
#########################################################################################################
#########################################################################################################
/path/to/libcurve $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for gawk... (cached) gawk
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libsodium... yes
checking for libzmq... yes
checking for czmq... yes
checking for asciidoc... no
checking for xmlto... no
configure: WARNING: You are building an unreleased version of CURVE and asciidoc or xmlto are not installed.
configure: WARNING: Documentation will not be built and manual pages will not be installed.
checking whether to build documentation... no
checking whether to install manpages... no
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for net/if.h... yes
checking for net/if_media.h... no
checking for linux/wireless.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for uint32_t... yes
checking for working volatile... yes
checking whether byte ordering is bigendian... no
configure: ENABLE_CURVE_SELFTEST defined
checking return type of signal handlers... void
checking for perror... yes
checking for gettimeofday... yes
checking for memset... no
checking for getifaddrs... yes
checking for .git... yes
configure: Building stable and legacy API + draft API
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/libcurve.pc
config.status: creating src/platform.h
config.status: src/platform.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
#########################################################################################################
#########################################################################################################
/path/to/libcurve $ make check
Making check in doc
make[1]: Entering directory `/path/to/libcurve/doc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/path/to/libcurve/doc'
make[1]: Entering directory `/path/to/libcurve'
CC src/src_libcurve_la-curve_client.lo
src/curve_client.c:43:1: error: unknown type name 'curve_client_t'
curve_client_t *
^
src/curve_client.c: In function 'curve_client_new':
src/curve_client.c:46:5: error: unknown type name 'curve_client_t'
curve_client_t *self = (curve_client_t *) zmalloc (sizeof (curve_client_t));
^
src/curve_client.c:46:29: error: 'curve_client_t' undeclared (first use in this function)
curve_client_t *self = (curve_client_t *) zmalloc (sizeof (curve_client_t));
^
src/curve_client.c:46:29: note: each undeclared identifier is reported only once for each function it appears in
src/curve_client.c:46:45: error: expected expression before ')' token
curve_client_t *self = (curve_client_t *) zmalloc (sizeof (curve_client_t));
^
src/curve_client.c:48:9: error: request for member 'ctx' in something not a structure or union
self->ctx = zctx_new ();
^
src/curve_client.c:49:9: error: request for member 'control' in something not a structure or union
self->control = zthread_fork (self->ctx, s_agent_task, NULL);
^
src/curve_client.c:49:39: error: request for member 'ctx' in something not a structure or union
self->control = zthread_fork (self->ctx, s_agent_task, NULL);
^
src/curve_client.c:52:9: error: request for member 'data' in something not a structure or union
self->data = zsocket_new (self->ctx, ZMQ_PAIR);
^
src/curve_client.c:52:35: error: request for member 'ctx' in something not a structure or union
self->data = zsocket_new (self->ctx, ZMQ_PAIR);
^
In file included from /usr/local/include/czmq_prelude.h:233:0,
from /usr/local/include/czmq_library.h:23,
from /usr/local/include/czmq.h:29,
from src/../include/curve_library.h:24,
from src/../include/curve.h:16,
from src/curve_client.c:23:
src/curve_client.c:53:17: error: request for member 'data' in something not a structure or union
assert (self->data);
^
src/curve_client.c:54:32: error: request for member 'data' in something not a structure or union
int rc = zsocket_bind (self->data, "inproc://data-%p", self->data);
^
src/curve_client.c:54:64: error: request for member 'data' in something not a structure or union
int rc = zsocket_bind (self->data, "inproc://data-%p", self->data);
^
src/curve_client.c:56:22: error: request for member 'control' in something not a structure or union
zstr_sendfm (self->control, "inproc://data-%p", self->data);
^
src/curve_client.c:56:57: error: request for member 'data' in something not a structure or union
zstr_sendfm (self->control, "inproc://data-%p", self->data);
^
src/curve_client.c:59:24: error: request for member 'control' in something not a structure or union
rc = zmq_send (self->control, zcert_public_key (*cert_p), 32, ZMQ_SNDMORE);
^
src/curve_client.c:61:24: error: request for member 'control' in something not a structure or union
rc = zmq_send (self->control, zcert_secret_key (*cert_p), 32, 0);
^
src/curve_client.c: At top level:
src/curve_client.c:74:23: error: unknown type name 'curve_client_t'
curve_client_destroy (curve_client_t **self_p)
^
src/curve_client.c:92:28: error: unknown type name 'curve_client_t'
curve_client_set_metadata (curve_client_t *self, char *name, char *format, ...)
^
src/curve_client.c:110:27: error: unknown type name 'curve_client_t'
curve_client_set_verbose (curve_client_t *self, bool verbose)
^
src/curve_client.c:123:23: error: unknown type name 'curve_client_t'
curve_client_connect (curve_client_t *self, char *endpoint, byte *server_key)
^
src/curve_client.c:138:26: error: unknown type name 'curve_client_t'
curve_client_disconnect (curve_client_t *self, char *endpoint)
^
src/curve_client.c:149:20: error: unknown type name 'curve_client_t'
curve_client_send (curve_client_t *self, zmsg_t **msg_p)
^
src/curve_client.c:163:20: error: unknown type name 'curve_client_t'
curve_client_recv (curve_client_t *self)
^
src/curve_client.c:175:23: error: unknown type name 'curve_client_t'
curve_client_sendstr (curve_client_t *self, char *string)
^
src/curve_client.c:186:23: error: unknown type name 'curve_client_t'
curve_client_recvstr (curve_client_t *self)
^
src/curve_client.c:199:22: error: unknown type name 'curve_client_t'
curve_client_handle (curve_client_t *self)
^
src/curve_client.c:224:5: error: unknown type name 'curve_codec_t'
curve_codec_t *codec; // Client CurveZMQ codec
^
src/curve_client.c: In function 's_agent_new':
src/curve_client.c:254:5: error: implicit declaration of function 'curve_codec_new_client' [-Werror=implicit-function-declaration]
self->codec = curve_codec_new_client (cert);
^
src/curve_client.c:254:17: error: assignment makes pointer from integer without a cast [-Werror]
self->codec = curve_codec_new_client (cert);
^
src/curve_client.c: In function 's_agent_destroy':
src/curve_client.c:267:9: error: implicit declaration of function 'curve_codec_destroy' [-Werror=implicit-function-declaration]
curve_codec_destroy (&self->codec);
^
src/curve_client.c: In function 's_agent_handle_control':
src/curve_client.c:288:9: error: implicit declaration of function 'curve_codec_set_metadata' [-Werror=implicit-function-declaration]
curve_codec_set_metadata (self->codec, name, value);
^
src/curve_client.c:299:9: error: implicit declaration of function 'curve_codec_execute' [-Werror=implicit-function-declaration]
zframe_t *output = curve_codec_execute (self->codec, &server_key);
^
src/curve_client.c:299:28: error: initialization makes pointer from integer without a cast [-Werror]
zframe_t *output = curve_codec_execute (self->codec, &server_key);
^
src/curve_client.c:314:9: error: implicit declaration of function 'curve_codec_set_verbose' [-Werror=implicit-function-declaration]
curve_codec_set_verbose (self->codec, *verbose == '1');
^
src/curve_client.c: In function 's_agent_handle_dealer':
src/curve_client.c:337:28: error: initialization makes pointer from integer without a cast [-Werror]
zframe_t *output = curve_codec_execute (self->codec, &input);
^
src/curve_client.c:341:9: error: implicit declaration of function 'curve_codec_connected' [-Werror=implicit-function-declaration]
if (curve_codec_connected (self->codec))
^
src/curve_client.c:344:9: error: implicit declaration of function 'curve_codec_exception' [-Werror=implicit-function-declaration]
if (curve_codec_exception (self->codec))
^
src/curve_client.c:350:9: error: implicit declaration of function 'curve_codec_decode' [-Werror=implicit-function-declaration]
zframe_t *cleartext = curve_codec_decode (self->codec, &encrypted);
^
src/curve_client.c:350:31: error: initialization makes pointer from integer without a cast [-Werror]
zframe_t *cleartext = curve_codec_decode (self->codec, &encrypted);
^
src/curve_client.c: In function 's_agent_handle_data':
src/curve_client.c:372:9: error: implicit declaration of function 'curve_codec_encode' [-Werror=implicit-function-declaration]
zframe_t *encrypted = curve_codec_encode (self->codec, &cleartext);
^
src/curve_client.c:372:31: error: initialization makes pointer from integer without a cast [-Werror]
zframe_t *encrypted = curve_codec_encode (self->codec, &cleartext);
^
src/curve_client.c: In function 'server_task':
src/curve_client.c:449:5: error: unknown type name 'curve_codec_t'
curve_codec_t *server = curve_codec_new_server (server_cert, ctx);
^
src/curve_client.c:449:5: error: implicit declaration of function 'curve_codec_new_server' [-Werror=implicit-function-declaration]
src/curve_client.c:449:29: error: initialization makes pointer from integer without a cast [-Werror]
curve_codec_t *server = curve_codec_new_server (server_cert, ctx);
^
src/curve_client.c:463:28: error: initialization makes pointer from integer without a cast [-Werror]
zframe_t *output = curve_codec_execute (server, &input);
^
src/curve_client.c:469:5: error: implicit declaration of function 'curve_codec_metadata' [-Werror=implicit-function-declaration]
char *client_name = (char *) zhash_lookup (curve_codec_metadata (server), "client");
^
src/curve_client.c:469:5: error: passing argument 1 of 'zhash_lookup' makes pointer from integer without a cast [-Werror]
In file included from /usr/local/include/czmq_library.h:153:0,
from /usr/local/include/czmq.h:29,
from src/../include/curve_library.h:24,
from src/../include/curve.h:16,
from src/curve_client.c:23:
/usr/local/include/zhash.h:69:5: note: expected 'struct zhash_t *' but argument is of type 'int'
zhash_lookup (zhash_t *self, const char *key);
^
src/curve_client.c:479:31: error: initialization makes pointer from integer without a cast [-Werror]
zframe_t *cleartext = curve_codec_decode (server, &encrypted);
^
src/curve_client.c:484:19: error: assignment makes pointer from integer without a cast [-Werror]
encrypted = curve_codec_encode (server, &cleartext);
^
src/curve_client.c: In function 'curve_client_test':
src/curve_client.c:517:5: error: unknown type name 'curve_client_t'
curve_client_t *client = curve_client_new (&client_cert);
^
src/curve_client.c:518:5: error: implicit declaration of function 'curve_client_set_metadata' [-Werror=implicit-function-declaration]
curve_client_set_metadata (client, "Client", "CURVEZMQ/curve_client");
^
src/curve_client.c:520:5: error: implicit declaration of function 'curve_client_set_verbose' [-Werror=implicit-function-declaration]
curve_client_set_verbose (client, verbose);
^
src/curve_client.c:521:5: error: implicit declaration of function 'curve_client_connect' [-Werror=implicit-function-declaration]
curve_client_connect (client, "tcp://127.0.0.1:9005", zcert_public_key (server_cert));
^
src/curve_client.c:523:5: error: implicit declaration of function 'curve_client_sendstr' [-Werror=implicit-function-declaration]
curve_client_sendstr (client, "Hello, World");
^
src/curve_client.c:524:5: error: implicit declaration of function 'curve_client_recvstr' [-Werror=implicit-function-declaration]
char *reply = curve_client_recvstr (client);
^
src/curve_client.c:524:19: error: initialization makes pointer from integer without a cast [-Werror]
char *reply = curve_client_recvstr (client);
^
src/curve_client.c:532:5: error: implicit declaration of function 'curve_client_send' [-Werror=implicit-function-declaration]
curve_client_send (client, &msg);
^
src/curve_client.c:533:5: error: implicit declaration of function 'curve_client_recv' [-Werror=implicit-function-declaration]
msg = curve_client_recv (client);
^
src/curve_client.c:533:9: error: assignment makes pointer from integer without a cast [-Werror]
msg = curve_client_recv (client);
^
src/curve_client.c:553:13: error: assignment makes pointer from integer without a cast [-Werror]
msg = curve_client_recv (client);
^
src/curve_client.c:566:11: error: assignment makes pointer from integer without a cast [-Werror]
reply = curve_client_recvstr (client);
^
src/curve_client.c:571:5: error: implicit declaration of function 'curve_client_destroy' [-Werror=implicit-function-declaration]
curve_client_destroy (&client);
^
cc1: all warnings being treated as errors
make[1]: *** [src/src_libcurve_la-curve_client.lo] Error 1
make[1]: Leaving directory `/path/to/libcurve'
make: *** [check-recursive] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment