Skip to content
This repository

Compilation Error on Ubuntu #29

Open
Dulds opened this Issue · 8 comments

2 participants

Dulds Yurii Rashkovskii
Dulds

erl -version
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 5.7.4

uname -a
Linux Dulds 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

==> erlzmq2 (compile)
make[1]: Entering directory /home/dulds/Projects/zeromq2.1/erlzmq2/c_src'
autoreconf: Entering directory
.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal -I config --force -I config
autoreconf: configure.in: tracing
autoreconf: configure.in: subdirectory foreign/openpgm/build-staging/openpgm/pgm/ not present
autoreconf: running: libtoolize --install --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, config'.
libtoolize: copying file
config/config.guess'
libtoolize: copying file config/config.sub'
libtoolize: copying file
config/install-sh'
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
.'
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking for cc option to accept ISO C99... -std=gnu99
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking whether cc -std=gnu99 and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... (cached) mawk
checking for xmlto... no
checking for asciidoc... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... (cached) /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 cc -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... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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 ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc -std=gnu99 object... ok
checking how to run the C preprocessor... cc -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 whether we are using the GNU C++ compiler... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking dependency style of c++... (cached) gcc3
checking how to run the C++ preprocessor... c++ -E
checking for objdir... .libs
checking if cc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for cc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if cc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if cc -std=gnu99 static flag -static works... yes
checking if cc -std=gnu99 supports -c -o file.o... yes
checking if cc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the cc -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 ld used by c++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether the C compiler works... yes
checking whether we are using Intel C compiler... no
checking whether we are using Sun Studio C compiler... no
checking whether we are using clang C compiler... no
checking whether we are using gcc >= 4 C compiler... yes
checking whether the C++ compiler works... yes
checking whether we are using Intel C++ compiler... no
checking whether we are using Sun Studio C++ compiler... no
checking whether we are using clang C++ compiler... no
checking whether we are using gcc >= 4 C++ compiler... yes
checking whether to enable debugging information... no
checking whether to enable code coverage... no
checking for pthread_create in -lpthread... yes
checking for sem_init in -lrt... yes
checking for uuid_generate in -luuid... yes
checking whether C++ compiler supports -fvisibility=hidden... yes
checking whether C++ compiler supports dso visibility... yes
checking for asciidoc... no
checking for xmlto... no
configure: WARNING: You are building an unreleased version of 0MQ 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 stdbool.h that conforms to C99... yes
checking for Bool... no
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 how to enable additional warnings for C++ compiler... -Wall
checking how to turn warnings to errors in C++ compiler... -Werror
checking how to enable strict standards compliance in C++ compiler... -pedantic
checking return type of signal handlers... void
checking for perror... yes
checking for gettimeofday... yes
checking for memset... yes
checking for socket... yes
checking for getifaddrs... yes
checking for freeifaddrs... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating perf/Makefile
config.status: creating src/libzmq.pc
config.status: creating builds/msvc/Makefile
config.status: creating tests/Makefile
config.status: creating foreign/openpgm/Makefile
config.status: creating builds/redhat/zeromq.spec
config.status: creating src/platform.hpp
config.status: src/platform.hpp is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make[2]: Entering directory /home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2'
Making all in src
make[3]: Entering directory
/home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/src'
make all-am
make[4]: Entering directory /home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/src'
CXX libzmq_la-clock.lo
CXX libzmq_la-command.lo
CXX libzmq_la-ctx.lo
CXX libzmq_la-connect_session.lo
CXX libzmq_la-decoder.lo
CXX libzmq_la-device.lo
CXX libzmq_la-devpoll.lo
CXX libzmq_la-dist.lo
CXX libzmq_la-encoder.lo
CXX libzmq_la-epoll.lo
CXX libzmq_la-err.lo
CXX libzmq_la-fq.lo
CXX libzmq_la-io_object.lo
CXX libzmq_la-io_thread.lo
CXX libzmq_la-ip.lo
CXX libzmq_la-kqueue.lo
CXX libzmq_la-lb.lo
CXX libzmq_la-mailbox.lo
CXX libzmq_la-named_session.lo
CXX libzmq_la-object.lo
CXX libzmq_la-options.lo
CXX libzmq_la-own.lo
CXX libzmq_la-pair.lo
CXX libzmq_la-pgm_receiver.lo
CXX libzmq_la-pgm_sender.lo
CXX libzmq_la-pgm_socket.lo
CXX libzmq_la-pipe.lo
CXX libzmq_la-poll.lo
CXX libzmq_la-poller_base.lo
CXX libzmq_la-pull.lo
CXX libzmq_la-push.lo
CXX libzmq_la-reaper.lo
CXX libzmq_la-pub.lo
CXX libzmq_la-rep.lo
CXX libzmq_la-req.lo
CXX libzmq_la-select.lo
CXX libzmq_la-session.lo
CXX libzmq_la-signaler.lo
CXX libzmq_la-socket_base.lo
CXX libzmq_la-sub.lo
CXX libzmq_la-swap.lo
CXX libzmq_la-tcp_connecter.lo
CXX libzmq_la-tcp_listener.lo
CXX libzmq_la-tcp_socket.lo
CXX libzmq_la-thread.lo
CXX libzmq_la-transient_session.lo
CXX libzmq_la-trie.lo
CXX libzmq_la-uuid.lo
CXX libzmq_la-xpub.lo
CXX libzmq_la-xrep.lo
CXX libzmq_la-xreq.lo
CXX libzmq_la-xsub.lo
CXX libzmq_la-zmq.lo
CXX libzmq_la-zmq_connecter.lo
CXX libzmq_la-zmq_engine.lo
CXX libzmq_la-zmq_init.lo
CXX libzmq_la-zmq_listener.lo
CXXLD libzmq.la
make[4]: Leaving directory
/home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/src'
make[3]: Leaving directory /home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/src'
Making all in doc
make[3]: Entering directory
/home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/doc'
make[3]: Nothing to be done for all'.
make[3]: Leaving directory
/home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/doc'
Making all in perf
make[3]: Entering directory /home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/perf'
CXX local_lat.o
CXXLD local_lat
CXX remote_lat.o
CXXLD remote_lat
CXX local_thr.o
CXXLD local_thr
CXX remote_thr.o
CXXLD remote_thr
CXX inproc_lat.o
CXXLD inproc_lat
CXX inproc_thr.o
CXXLD inproc_thr
make[3]: Leaving directory
/home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/perf'
Making all in tests
make[3]: Entering directory /home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/tests'
CXX test_pair_inproc.o
CXXLD test_pair_inproc
CXX test_pair_tcp.o
CXXLD test_pair_tcp
CXX test_reqrep_inproc.o
CXXLD test_reqrep_inproc
CXX test_reqrep_tcp.o
CXXLD test_reqrep_tcp
CXX test_hwm.o
CXXLD test_hwm
CXX test_shutdown_stress.o
CXXLD test_shutdown_stress
CXX test_pair_ipc.o
CXXLD test_pair_ipc
CXX test_reqrep_ipc.o
CXXLD test_reqrep_ipc
make[3]: Leaving directory
/home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2/tests'
make[3]: Entering directory /home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2'
make[3]: Nothing to be done for
all-am'.
make[3]: Leaving directory /home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2'
make[2]: Leaving directory
/home/dulds/Projects/zeromq2.1/erlzmq2/deps/zeromq2'
make[1]: Leaving directory `/home/dulds/Projects/zeromq2.1/erlzmq2/c_src'
Compiled src/erlzmq_nif.erl
Compiled src/erlzmq.erl
Compiling c_src/erlzmq_nif.c
c_src/erlzmq_nif.c:33:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_
’ before ‘’ token
c_src/erlzmq_nif.c:34:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘
’ token
c_src/erlzmq_nif.c:41:3: error: expected specifier-qualifier-list before ‘ErlNifTid’
c_src/erlzmq_nif.c:54:3: error: expected specifier-qualifier-list before ‘ErlNifMutex’
c_src/erlzmq_nif.c:71:7: error: expected specifier-qualifier-list before ‘ErlNifPid’
c_src/erlzmq_nif.c:78:7: error: expected specifier-qualifier-list before ‘ErlNifPid’
c_src/erlzmq_nif.c:84:7: error: expected specifier-qualifier-list before ‘ErlNifPid’
c_src/erlzmq_nif.c:89:7: error: expected specifier-qualifier-list before ‘ErlNifPid’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_context’:
c_src/erlzmq_nif.c:137:3: warning: implicit declaration of function ‘enif_alloc_resource’
c_src/erlzmq_nif.c:137:52: error: ‘erlzmq_nif_resource_context’ undeclared (first use in this function)
c_src/erlzmq_nif.c:137:52: note: each undeclared identifier is reported only once for each function it appears in
c_src/erlzmq_nif.c:149:10: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:149:3: warning: implicit declaration of function ‘enif_mutex_create’
c_src/erlzmq_nif.c:150:3: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:153:5: warning: implicit declaration of function ‘enif_mutex_destroy’
c_src/erlzmq_nif.c:153:31: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:155:5: warning: implicit declaration of function ‘enif_release_resource’
c_src/erlzmq_nif.c:162:3: warning: implicit declaration of function ‘enif_thread_create’
c_src/erlzmq_nif.c:163:54: error: ‘erlzmq_context_t’ has no member named ‘polling_tid’
c_src/erlzmq_nif.c:173:3: warning: implicit declaration of function ‘enif_make_tuple2’
c_src/erlzmq_nif.c:174:27: warning: implicit declaration of function ‘enif_make_resource’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_socket’:
c_src/erlzmq_nif.c:183:3: warning: implicit declaration of function ‘enif_get_resource’
c_src/erlzmq_nif.c:183:41: error: ‘erlzmq_nif_resource_context’ undeclared (first use in this function)
c_src/erlzmq_nif.c:196:50: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
c_src/erlzmq_nif.c:206:9: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:207:3: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:210:27: warning: implicit declaration of function ‘enif_make_uint64’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_bind’:
c_src/erlzmq_nif.c:219:41: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
c_src/erlzmq_nif.c:224:3: warning: implicit declaration of function ‘enif_get_list_length’
c_src/erlzmq_nif.c:229:3: warning: implicit declaration of function ‘enif_get_string’
c_src/erlzmq_nif.c:230:25: error: ‘ERL_NIF_LATIN1’ undeclared (first use in this function)
c_src/erlzmq_nif.c:234:3: warning: implicit declaration of function ‘enif_mutex_lock’
c_src/erlzmq_nif.c:234:25: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:236:5: warning: implicit declaration of function ‘enif_mutex_unlock’
c_src/erlzmq_nif.c:236:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:241:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_connect’:
c_src/erlzmq_nif.c:257:41: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
c_src/erlzmq_nif.c:268:25: error: ‘ERL_NIF_LATIN1’ undeclared (first use in this function)
c_src/erlzmq_nif.c:272:25: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:274:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:279:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_setsockopt’:
c_src/erlzmq_nif.c:295:41: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
c_src/erlzmq_nif.c:304:3: error: ‘ErlNifUInt64’ undeclared (first use in this function)
c_src/erlzmq_nif.c:304:16: error: expected ‘;’ before ‘value_uint64’
c_src/erlzmq_nif.c:305:3: error: ‘ErlNifSInt64’ undeclared (first use in this function)
c_src/erlzmq_nif.c:305:16: error: expected ‘;’ before ‘value_int64’
c_src/erlzmq_nif.c:316:7: warning: implicit declaration of function ‘enif_get_uint64’
c_src/erlzmq_nif.c:316:44: error: ‘value_uint64’ undeclared (first use in this function)
c_src/erlzmq_nif.c:327:7: warning: implicit declaration of function ‘enif_get_int64’
c_src/erlzmq_nif.c:327:43: error: ‘value_int64’ undeclared (first use in this function)
c_src/erlzmq_nif.c:337:7: warning: implicit declaration of function ‘enif_inspect_iolist_as_binary’
c_src/erlzmq_nif.c:357:25: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:360:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:364:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_getsockopt’:
c_src/erlzmq_nif.c:374:41: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
c_src/erlzmq_nif.c:397:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:400:33: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:403:31: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:405:31: warning: implicit declaration of function ‘enif_make_int64’
c_src/erlzmq_nif.c:411:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:414:33: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:417:31: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:422:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:425:33: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:428:31: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:429:7: warning: passing argument 1 of ‘enif_alloc_binary’ makes pointer from integer without a cast
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: expected ‘struct ErlNifEnv *’ but argument is of type ‘size_t’
c_src/erlzmq_nif.c:429:7: warning: passing argument 2 of ‘enif_alloc_binary’ makes integer from pointer without a cast
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: expected ‘unsigned int’ but argument is of type ‘struct ErlNifBinary *’
c_src/erlzmq_nif.c:429:7: error: too few arguments to function ‘enif_alloc_binary’
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: declared here
c_src/erlzmq_nif.c:440:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:443:33: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:446:31: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_send’:
c_src/erlzmq_nif.c:460:41: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
c_src/erlzmq_nif.c:481:27: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:484:31: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:493:31: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:500:5: warning: implicit declaration of function ‘enif_alloc_env’
c_src/erlzmq_nif.c:500:23: warning: assignment makes pointer from integer without a cast
c_src/erlzmq_nif.c:501:5: warning: implicit declaration of function ‘enif_make_ref’
c_src/erlzmq_nif.c:502:5: warning: implicit declaration of function ‘enif_self’
c_src/erlzmq_nif.c:502:34: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:508:7: warning: implicit declaration of function ‘enif_free_env’
c_src/erlzmq_nif.c:514:36: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:516:40: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:520:40: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:528:40: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:532:7: warning: implicit declaration of function ‘enif_keep_resource’
c_src/erlzmq_nif.c:534:7: warning: implicit declaration of function ‘enif_make_copy’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_recv’:
c_src/erlzmq_nif.c:549:41: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
c_src/erlzmq_nif.c:569:25: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:571:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:580:23: warning: assignment makes pointer from integer without a cast
c_src/erlzmq_nif.c:582:34: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:592:36: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:594:40: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:598:40: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:605:40: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:615:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:618:5: warning: passing argument 1 of ‘enif_alloc_binary’ makes pointer from integer without a cast
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: expected ‘struct ErlNifEnv *’ but argument is of type ‘size_t’
c_src/erlzmq_nif.c:618:5: warning: passing argument 2 of ‘enif_alloc_binary’ makes integer from pointer without a cast
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: expected ‘unsigned int’ but argument is of type ‘struct ErlNifBinary *’
c_src/erlzmq_nif.c:618:5: error: too few arguments to function ‘enif_alloc_binary’
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: declared here
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_close’:
c_src/erlzmq_nif.c:632:41: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
c_src/erlzmq_nif.c:639:22: warning: assignment makes pointer from integer without a cast
c_src/erlzmq_nif.c:641:33: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:652:34: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:655:27: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:658:29: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:659:30: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:661:38: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:665:38: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:671:38: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_term’:
c_src/erlzmq_nif.c:683:40: error: ‘erlzmq_nif_resource_context’ undeclared (first use in this function)
c_src/erlzmq_nif.c:690:21: warning: assignment makes pointer from integer without a cast
c_src/erlzmq_nif.c:692:32: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:702:26: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:704:30: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:710:30: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c: In function ‘erlzmq_nif_version’:
c_src/erlzmq_nif.c:722:3: warning: implicit declaration of function ‘enif_make_tuple3’
c_src/erlzmq_nif.c: In function ‘polling_thread’:
c_src/erlzmq_nif.c:775:44: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:782:48: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:784:13: warning: implicit declaration of function ‘enif_send’
c_src/erlzmq_nif.c:784:42: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:793:30: warning: assignment makes pointer from integer without a cast
c_src/erlzmq_nif.c:801:48: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:805:9: warning: passing argument 1 of ‘enif_alloc_binary’ makes pointer from integer without a cast
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: expected ‘struct ErlNifEnv *’ but argument is of type ‘size_t’
c_src/erlzmq_nif.c:805:9: warning: passing argument 2 of ‘enif_alloc_binary’ makes integer from pointer without a cast
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: expected ‘unsigned int’ but argument is of type ‘struct ErlNifBinary *’
c_src/erlzmq_nif.c:805:9: error: too few arguments to function ‘enif_alloc_binary’
/usr/lib/erlang/erts-5.7.4/include/erl_nif_api_funcs.h:30:1: note: declared here
c_src/erlzmq_nif.c:814:13: warning: implicit declaration of function ‘enif_make_list1’
c_src/erlzmq_nif.c:819:40: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:820:13: warning: implicit declaration of function ‘enif_make_tuple4’
c_src/erlzmq_nif.c:829:28: warning: assignment makes pointer from integer without a cast
c_src/erlzmq_nif.c:833:40: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:852:44: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:855:48: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:856:40: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:861:48: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:862:40: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:883:30: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:885:32: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:918:15: warning: implicit declaration of function ‘enif_clear_env’
c_src/erlzmq_nif.c:940:45: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:942:47: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:943:48: error: ‘erlzmq_socket_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:946:39: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c:954:32: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:958:34: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:976:32: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:979:34: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:981:32: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:982:34: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:983:35: error: ‘erlzmq_context_t’ has no member named ‘mutex’
c_src/erlzmq_nif.c:986:38: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c: In function ‘add_active_req’:
c_src/erlzmq_nif.c:1010:21: warning: assignment makes pointer from integer without a cast
c_src/erlzmq_nif.c:1012:32: error: ‘struct ’ has no member named ‘pid’
c_src/erlzmq_nif.c: In function ‘on_load’:
c_src/erlzmq_nif.c:1260:3: error: ‘erlzmq_nif_resource_context’ undeclared (first use in this function)
c_src/erlzmq_nif.c:1261:5: warning: implicit declaration of function ‘enif_open_resource_type’
c_src/erlzmq_nif.c:1264:29: error: ‘ERL_NIF_RT_CREATE’ undeclared (first use in this function)
c_src/erlzmq_nif.c:1264:49: error: ‘ERL_NIF_RT_TAKEOVER’ undeclared (first use in this function)
c_src/erlzmq_nif.c:1266:3: error: ‘erlzmq_nif_resource_socket’ undeclared (first use in this function)
ERROR: $CC -c $CFLAGS $DRV_CFLAGS c_src/erlzmq_nif.c -o c_src/erlzmq_nif.o failed with error: 1

Yurii Rashkovskii
Collaborator

what's the gcc version?

also your erlang is quite old (R13B04? I'd recommend using R15B or at least R14B02+)

Dulds

I was thinking that. I just "apt-get installed" my erlang. Thanks for the reply.

Yurii Rashkovskii
Collaborator

Never use Ubuntu-packaged erlang. They get it wrong in many disastrous ways.

Dulds

gcc version 4.5.2.

Dulds

Will try building erlang from source and then report back :)

Yurii Rashkovskii
Collaborator

Use kerl (https://github.com/spawngrid/kerl) to simplify building from source

Dulds

Kerl Issue: Used kerl, but "activate" doesn't seem to be activating the installation. It still says "No active installation..." after repeated calls to the activate script (with sudo of course).

Yurii Rashkovskii
Collaborator

Unlikely to be a kerl problem as it is very widely used in the community. Also, you don't need sudo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.