Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile pinba2-2.6.0 on CentOS7 for mariadb-10.2 #69

Open
vanyabrovary opened this issue May 10, 2020 · 4 comments
Open

Can't compile pinba2-2.6.0 on CentOS7 for mariadb-10.2 #69

vanyabrovary opened this issue May 10, 2020 · 4 comments

Comments

@vanyabrovary
Copy link

Details:
CentOS7, gcc - version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)

  1. Compile nanomsg.
  2. Put meow, boost at pinba2-2.6.0/include/
  3. Prepare mariadb-10.2 (headers)
  4. Configure:
    ./configure --with-mysql=/var/src/pinba/mariadb-10.2

Problem:

  • Can't compile pinba2-2.6.0 on CentOS 7 for mariadb-10.2

Questions:

  • Could you tell me what I'm doing wrong and how to fix it?

make -j4

make  all-recursive
make[1]: Вход в каталог `/var/src/pinba/pinba2-2.6.0'
Making all in third_party/t1ha
make[2]: Вход в каталог `/var/src/pinba/pinba2-2.6.0/third_party/t1ha'
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -c -o t1ha0.o src/t1ha0.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -c -o t1ha1.o src/t1ha1.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -c -o t1ha2.o src/t1ha2.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -c -o t1ha0_selfcheck.o src/t1ha0_selfcheck.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -c -o t1ha1_selfcheck.o src/t1ha1_selfcheck.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -c -o t1ha2_selfcheck.o src/t1ha2_selfcheck.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -c -o t1ha_selfcheck.o src/t1ha_selfcheck.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -c -o t1ha_selfcheck_all.o src/t1ha_selfcheck_all.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -save-temps -mno-avx2 -mno-avx -maes -c -o t1ha0_aes_noavx.o src/t1ha0_ia32aes_noavx.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -save-temps -mno-avx2 -mavx -maes -c -o t1ha0_aes_avx.o src/t1ha0_ia32aes_avx.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -save-temps -mavx2 -mavx -maes -c -o t1ha0_aes_avx2.o src/t1ha0_ia32aes_avx2.c
cc -Wextra -Werror  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -c -o bench.o tests/bench.c
cc -Wextra -Werror  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -save-temps -c -o mera.o tests/mera.c
cc -Wextra -Werror  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -c -o test.o tests/test.c
cc -Wextra -Werror  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -Wno-error -c -o 4bench_xxhash.o tests/xxhash/xxhash.c
cc -Wextra -Werror  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -Wno-error -c -o 4bench_highwayhash_test.o tests/highwayhash/verifier.c
cc -Wextra -Werror  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -Wno-error -c -o 4bench_highwayhash_pure_c.o tests/highwayhash/pure_c.c
g++ -I tests -Wextra -Werror -std=c++11 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -Wno-error -c -o 4bench_highwayhash_portable.o tests/highwayhash/4bench_portable.cc
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -mno-avx2 -mno-avx -maes -c -o 4bench_t1ha0_aes_noavx.o tests/4bench_t1ha0_ia32aes_noavx.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -mno-avx2 -mavx -maes -c -o 4bench_t1ha0_aes_avx.o tests/4bench_t1ha0_ia32aes_avx.c
cc -Wall -ffunction-sections -fPIC  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -fvisibility=hidden -Dt1ha_EXPORTS -mavx2 -mavx -maes -c -o 4bench_t1ha0_aes_avx2.o tests/4bench_t1ha0_ia32aes_avx2.c
g++ -I tests -Wextra -Werror -std=c++11 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -mavx2 -Wno-error -c -o 4bench_highwayhash_avx2.o tests/highwayhash/4bench_avx2.cc
g++ -I tests -Wextra -Werror -std=c++11 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -msse4.1 -Wno-error -c -o 4bench_highwayhash_sse41.o tests/highwayhash/4bench_sse41.cc
cc -Wextra -Werror  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -Wno-error -c -o 4bench_stadtx.o tests/stadtx/stadtx_thunk.c
ar rs libt1ha.a t1ha0.o t1ha1.o t1ha2.o t1ha0_selfcheck.o t1ha1_selfcheck.o t1ha2_selfcheck.o t1ha_selfcheck.o t1ha_selfcheck_all.o t1ha0_aes_noavx.o t1ha0_aes_avx.o t1ha0_aes_avx2.o
ar: создаётся libt1ha.a
cc  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -shared -s -o libt1ha.so t1ha0.o t1ha1.o t1ha2.o t1ha0_selfcheck.o t1ha1_selfcheck.o t1ha2_selfcheck.o t1ha_selfcheck.o t1ha_selfcheck_all.o t1ha0_aes_noavx.o t1ha0_aes_avx.o t1ha0_aes_avx2.o
Target-ARCH: ia32
cc -Wextra -Werror  -std=c99 -O3 -DNDEBUG -D_DEFAULT_SOURCE -fno-stack-protector -mtune=native -o test tests/main.c t1ha0.o t1ha1.o t1ha2.o t1ha0_selfcheck.o t1ha1_selfcheck.o t1ha2_selfcheck.o t1ha_selfcheck.o t1ha_selfcheck_all.o t1ha0_aes_noavx.o t1ha0_aes_avx.o t1ha0_aes_avx2.o bench.o mera.o test.o 4bench_xxhash.o 4bench_highwayhash_test.o 4bench_highwayhash_pure_c.o 4bench_highwayhash_portable.o 4bench_t1ha0_aes_noavx.o 4bench_t1ha0_aes_avx.o 4bench_t1ha0_aes_avx2.o 4bench_highwayhash_avx2.o 4bench_highwayhash_sse41.o 4bench_stadtx.o
make[2]: Выход из каталога `/var/src/pinba/pinba2-2.6.0/third_party/t1ha'
Making all in src
make[2]: Вход в каталог `/var/src/pinba/pinba2-2.6.0/src'
depbase=`echo globals.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT globals.o -MD -MP -MF $depbase.Tpo -c -o globals.o globals.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo os_symbols.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT os_symbols.o -MD -MP -MF $depbase.Tpo -c -o os_symbols.o os_symbols.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo collector.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT collector.o -MD -MP -MF $depbase.Tpo -c -o collector.o collector.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo repacker.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT repacker.o -MD -MP -MF $depbase.Tpo -c -o repacker.o repacker.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo coordinator.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT coordinator.o -MD -MP -MF $depbase.Tpo -c -o coordinator.o coordinator.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo packet.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT packet.o -MD -MP -MF $depbase.Tpo -c -o packet.o packet.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo report_snapshot.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT report_snapshot.o -MD -MP -MF $depbase.Tpo -c -o report_snapshot.o report_snapshot.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo report_by_packet.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT report_by_packet.o -MD -MP -MF $depbase.Tpo -c -o report_by_packet.o report_by_packet.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo report_by_request.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT report_by_request.o -MD -MP -MF $depbase.Tpo -c -o report_by_request.o report_by_request.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo report_by_timer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT report_by_timer.o -MD -MP -MF $depbase.Tpo -c -o report_by_timer.o report_by_timer.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo ../proto/pinba.pb-c.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -std=gnu11  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT ../proto/pinba.pb-c.o -MD -MP -MF $depbase.Tpo -c -o ../proto/pinba.pb-c.o ../proto/pinba.pb-c.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.cpp &&\
mv -f $depbase.Tpo $depbase.Po
rm -f libpinba2.a
ar cru libpinba2.a globals.o os_symbols.o collector.o repacker.o coordinator.o packet.o report_snapshot.o report_by_packet.o report_by_request.o report_by_timer.o ../proto/pinba.pb-c.o ../third_party/t1ha/libt1ha.a 
ranlib libpinba2.a
/bin/sh ../libtool --preserve-dup-deps  --tag=CXX   --mode=link g++ -std=c++14 -fno-rtti  -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include   -flto -lrt -ldl -rdynamic   -o pinba2 main.o libpinba2.a ../third_party/t1ha/libt1ha.a  
libtool: link: g++ -std=c++14 -fno-rtti -pthread -Wformat -Wformat-security -Werror -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-parentheses -fno-omit-frame-pointer -fPIC -DPIC -D_GNU_SOURCE -D_POSIX_SOURCE -maes -msse4 -msse4.2 -O3 -ffast-math -ggdb3 -mtune=native -I../third_party -I../third_party/robin-map/include -I../include -flto -rdynamic -o pinba2 main.o  -lrt -ldl libpinba2.a ../third_party/t1ha/libt1ha.a -pthread
libpinba2.a(collector.o): In function `nmsg_socket_t::get_option_int(int, int, meow::string_ref<char const>)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:183: undefined reference to `nn_getsockopt'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:183: undefined reference to `nn_getsockopt'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:183: undefined reference to `nn_getsockopt'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:183: undefined reference to `nn_getsockopt'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
libpinba2.a(collector.o): In function `nmsg_socket_t::open(int, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:110: undefined reference to `nn_socket'
libpinba2.a(collector.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
libpinba2.a(collector.o): In function `nmsg_socket_t::bind(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:142: undefined reference to `nn_bind'
libpinba2.a(collector.o): In function `nmsg_socket_t::open(int, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:110: undefined reference to `nn_socket'
libpinba2.a(collector.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
libpinba2.a(collector.o): In function `nmsg_socket_t::bind(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:142: undefined reference to `nn_bind'
libpinba2.a(collector.o): In function `nmsg_socket_t::open(int, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:110: undefined reference to `nn_socket'
libpinba2.a(collector.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
libpinba2.a(collector.o): In function `nmsg_socket_t::connect(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:128: undefined reference to `nn_connect'
libpinba2.a(collector.o): In function `nmsg_socket_t::open(int, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:112: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:112: undefined reference to `nn_errno'
libpinba2.a(collector.o): In function `nmsg_socket_t::bind(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_errno'
libpinba2.a(collector.o): In function `nmsg_socket_t::connect(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_errno'
libpinba2.a(collector.o): In function `nmsg_socket_t::open(int, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:112: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:112: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:112: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:112: undefined reference to `nn_errno'
libpinba2.a(collector.o): In function `bool nmsg_socket_t::send_ex<boost::intrusive_ptr<raw_request_t> >(boost::intrusive_ptr<raw_request_t> const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(collector.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(collector.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(collector.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(collector.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(collector.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(collector.o): In function `bool nmsg_socket_t::send_ex<boost::intrusive_ptr<raw_request_t> >(boost::intrusive_ptr<raw_request_t> const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(collector.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(repacker.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
libpinba2.a(repacker.o): In function `nmsg_socket_t::connect(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:128: undefined reference to `nn_connect'
libpinba2.a(repacker.o): In function `nmsg_socket_t::set_option(int, int, int, meow::string_ref<char const>)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:154: undefined reference to `nn_setsockopt'
libpinba2.a(repacker.o): In function `nmsg_socket_t::connect(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_errno'
libpinba2.a(repacker.o): In function `nmsg_socket_t::set_option(int, int, int, meow::string_ref<char const>)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:159: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:159: undefined reference to `nn_errno'
libpinba2.a(repacker.o): In function `bool nmsg_socket_t::send_ex<boost::intrusive_ptr<packet_batch_t> >(boost::intrusive_ptr<packet_batch_t> const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(repacker.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(repacker.o): In function `boost::intrusive_ptr<raw_request_t> nmsg_socket_t::recv<boost::intrusive_ptr<raw_request_t> >(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(repacker.o): In function `bool nmsg_socket_t::send_ex<boost::intrusive_ptr<packet_batch_t> >(boost::intrusive_ptr<packet_batch_t> const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(repacker.o): In function `boost::intrusive_ptr<raw_request_t> nmsg_socket_t::recv<boost::intrusive_ptr<raw_request_t> >(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(repacker.o): In function `nmsg_socket_t::open(int, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:110: undefined reference to `nn_socket'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:112: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:112: undefined reference to `nn_errno'
libpinba2.a(repacker.o): In function `nmsg_socket_t::bind(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:142: undefined reference to `nn_bind'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_errno'
libpinba2.a(repacker.o): In function `nmsg_socket_t::connect(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:128: undefined reference to `nn_connect'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:130: undefined reference to `nn_errno'
libpinba2.a(repacker.o): In function `nmsg_socket_t::get_option_int(int, int, meow::string_ref<char const>)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:183: undefined reference to `nn_getsockopt'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:188: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
libpinba2.a(coordinator.o): In function `boost::intrusive_ptr<packet_batch_t> nmsg_socket_t::recv<boost::intrusive_ptr<packet_batch_t> >(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::bind(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:142: undefined reference to `nn_bind'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::set_option(int, int, int, meow::string_ref<char const>)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:154: undefined reference to `nn_setsockopt'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:159: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:159: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::bind(char const*)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:144: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `send_ex<boost::intrusive_ptr<(anonymous namespace)::aux::report_host_req_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(coordinator.o): In function `recv<boost::intrusive_ptr<(anonymous namespace)::aux::report_host_result_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `send_ex<boost::intrusive_ptr<(anonymous namespace)::aux::report_host_req_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `send_ex<boost::intrusive_ptr<(anonymous namespace)::aux::relay_worker_t::request_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(coordinator.o): In function `recv<boost::intrusive_ptr<(anonymous namespace)::aux::relay_worker_t::response_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `send_ex<boost::intrusive_ptr<(anonymous namespace)::aux::relay_worker_t::request_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `recv<boost::intrusive_ptr<(anonymous namespace)::aux::relay_worker_t::request_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `send_ex<boost::intrusive_ptr<(anonymous namespace)::aux::relay_worker_t::response_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(coordinator.o): In function `recv<boost::intrusive_ptr<(anonymous namespace)::aux::relay_worker_t::request_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `send_ex<boost::intrusive_ptr<(anonymous namespace)::aux::relay_worker_t::response_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `recv<boost::intrusive_ptr<(anonymous namespace)::aux::report_host_req_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `send_ex<boost::intrusive_ptr<(anonymous namespace)::aux::report_host_result_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(coordinator.o): In function `recv<boost::intrusive_ptr<(anonymous namespace)::aux::report_host_req_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `send_ex<boost::intrusive_ptr<(anonymous namespace)::aux::report_host_result_t> >':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<boost::intrusive_ptr<packet_batch_t> >(boost::intrusive_ptr<packet_batch_t> const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::close()':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:89: undefined reference to `nn_close'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:92: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `boost::intrusive_ptr<packet_batch_t> nmsg_socket_t::recv<boost::intrusive_ptr<packet_batch_t> >(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<boost::intrusive_ptr<packet_batch_t> >(boost::intrusive_ptr<packet_batch_t> const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
libpinba2.a(coordinator.o): In function `boost::intrusive_ptr<packet_batch_t> nmsg_socket_t::recv<boost::intrusive_ptr<packet_batch_t> >(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<boost::intrusive_ptr<packet_batch_t> >(boost::intrusive_ptr<packet_batch_t> const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:215: undefined reference to `nn_recv'
libpinba2.a(coordinator.o): In function `bool nmsg_socket_t::send_ex<int>(int const&, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:235: undefined reference to `nn_send'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:238: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:242: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `int nmsg_socket_t::recv<int>(meow::string_ref<char const>, int)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:218: undefined reference to `nn_errno'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:224: undefined reference to `nn_strerror'
libpinba2.a(coordinator.o): In function `nmsg_socket_t::set_option(int, int, int, meow::string_ref<char const>)':
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:154: undefined reference to `nn_setsockopt'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:159: undefined reference to `nn_strerror'
	/var/src/pinba/pinba2-2.6.0/src/../include/pinba/nmsg_socket.h:159: undefined reference to `nn_errno'
collect2: error: ld returned 1 exit status
make[2]: *** [pinba2] Ошибка 1
make[2]: Выход из каталога `/var/src/pinba/pinba2-2.6.0/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Выход из каталога `/var/src/pinba/pinba2-2.6.0'
make: *** [all] Ошибка 2
@tony2001
Copy link
Owner

How did you compile and where did you put nanomsg?
I believe you need to compile a static lib, which isn't done by default.
Try this in nanomsg sources dir: cmake -DNN_STATIC_LIB=On -DCMAKE_INSTALL_PREFIX= && make install

CC @anton-povarov

@anton-povarov
Copy link

There is no mention of nanomsg in configure invocation - therefore it's not even mentioned in the linking command.

Just use --with-nanomsg= option and see comment from @tony2001 (which is also mentioned in the doc).
There is also an example in Dockerfile.

@tony2001
Copy link
Owner

I guess configure should've checked that nanomsg is available.

@anton-povarov
Copy link

Well, it's not perfect :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants