Skip to content

Instantly share code, notes, and snippets.

@bluca
Created November 10, 2016 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluca/c92513dc54508a7f7e17f6b375d57a24 to your computer and use it in GitHub Desktop.
Save bluca/c92513dc54508a7f7e17f6b375d57a24 to your computer and use it in GitHub Desktop.
symbol rename build
$ git remote add duzy https://github.com/duzy/libzmq.git
lboccass@BRA-6G85P12:~/git/libzmq (bump_version)$ git fetch duzy
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 8 (delta 7), reused 8 (delta 7), pack-reused 0
Unpacking objects: 100% (8/8), done.
From https://github.com/duzy/libzmq
* [new branch] master -> duzy/master
* [new branch] revert-1183-size_fix -> duzy/revert-1183-size_fix
$ git cherry-pick duzy/master
[master 38fc3a4] solving symbole conflicts with libsodium (randombytes/randombytes_close)
Author: Duzy Chan <code@duzy.info>
Date: Tue Nov 8 13:05:39 2016 +0800
5 files changed, 14 insertions(+), 14 deletions(-)
$ ./configure CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3 -O0" --with-docs=no --enable-drafts=no --with-libsodium
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 '20266' is supported by ustar format... yes
checking whether GID '20266' 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... ccache 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 ccache gcc accepts -g... yes
checking for ccache gcc option to accept ISO C89... none needed
checking whether ccache gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of ccache gcc... gcc3
checking whether C compiler accepts -std=gnu11... yes
checking whether we are using the GNU C++ compiler... yes
checking whether ccache g++ accepts -g... yes
checking dependency style of ccache g++... gcc3
checking whether ccache g++ supports C++11 features by default... no
checking whether ccache g++ supports C++11 features with -std=gnu++11... yes
checking for a sed that does not truncate output... /bin/sed
checking whether to build with code coverage support... no
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 xmlto... /usr/bin/xmlto
checking for asciidoc... /usr/bin/asciidoc
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... (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 ccache gcc... /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 ccache gcc 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... ccache gcc -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 ccache gcc supports -fno-rtti -fno-exceptions... no
checking for ccache gcc option to produce PIC... -fPIC -DPIC
checking if ccache gcc PIC flag -fPIC -DPIC works... yes
checking if ccache gcc static flag -static works... yes
checking if ccache gcc supports -c -o file.o... yes
checking if ccache gcc supports -c -o file.o... (cached) yes
checking whether the ccache gcc 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 how to run the C++ preprocessor... ccache g++ -std=gnu++11 -E
checking for ld used by ccache g++ -std=gnu++11... /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 ccache g++ -std=gnu++11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for ccache g++ -std=gnu++11 option to produce PIC... -fPIC -DPIC
checking if ccache g++ -std=gnu++11 PIC flag -fPIC -DPIC works... yes
checking if ccache g++ -std=gnu++11 static flag -static works... yes
checking if ccache g++ -std=gnu++11 supports -c -o file.o... yes
checking if ccache g++ -std=gnu++11 supports -c -o file.o... (cached) yes
checking whether the ccache g++ -std=gnu++11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for valgrind... valgrind
checking for Valgrind tool memcheck... memcheck
checking for Valgrind tool helgrind... helgrind
checking for Valgrind tool drd... drd
checking for Valgrind tool exp-sgcheck... exp-sgcheck
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 if TIPC is available and supports nonblocking connect... no
checking for library containing dladdr... -ldl
checking for pthread_create in -lpthread... yes
checking for clock_gettime in -lrt... yes
checking whether C++ compiler supports -fvisibility=hidden... yes
checking whether C++ compiler supports dso visibility... yes
checking whether to build documentation... no
checking whether to install manpages... no
configure: Choosing polling system from 'kqueue epoll devpoll pollset poll select'...
configure: Using 'epoll' polling system
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for 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 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 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 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 ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/eventfd.h usability... yes
checking sys/eventfd.h presence... yes
checking for sys/eventfd.h... yes
checking whether SO_PEERCRED is declared... yes
checking whether LOCAL_PEERCRED is declared... no
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 for sodium... yes
configure: Using libsodium for CURVE security
checking "with_norm_ext = no"... no
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 whether compiler supports __atomic_Xxx intrinsics... yes
checking return type of signal handlers... void
checking for perror... yes
checking for gettimeofday... yes
checking for clock_gettime... yes
checking for memset... yes
checking for socket... yes
checking for getifaddrs... yes
checking for freeifaddrs... yes
checking for fork... yes
checking for posix_memalign... yes
checking for mkdtemp... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking whether SOCK_CLOEXEC is supported... yes
checking whether SO_KEEPALIVE is supported... yes
checking whether TCP_KEEPCNT is supported... yes
checking whether TCP_KEEPIDLE is supported... yes
checking whether TCP_KEEPINTVL is supported... yes
checking whether TCP_KEEPALIVE is supported... no
checking for ./.git... yes
configure: Building stable and legacy API (no draft API)
checking for LIBUNWIND... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/libzmq.pc
config.status: creating doc/Makefile
config.status: creating builds/Makefile
config.status: creating builds/msvc/Makefile
config.status: creating src/platform.hpp
config.status: src/platform.hpp is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
$ make -j5
Making all in doc
make[1]: Entering directory '/home/lboccass/git/libzmq/doc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/lboccass/git/libzmq/doc'
make[1]: Entering directory '/home/lboccass/git/libzmq'
CXX tools/curve_keygen.o
CXX perf/local_lat.o
CXX perf/local_thr.o
CXX perf/remote_lat.o
CXX perf/remote_thr.o
CXX perf/inproc_lat.o
CXX perf/inproc_thr.o
CXX src/src_libzmq_la-address.lo
CXX src/src_libzmq_la-client.lo
CXX src/src_libzmq_la-clock.lo
CXX src/src_libzmq_la-ctx.lo
CXX src/src_libzmq_la-curve_client.lo
CXX src/src_libzmq_la-curve_server.lo
CXX src/src_libzmq_la-dealer.lo
CXX src/src_libzmq_la-devpoll.lo
CXX src/src_libzmq_la-dgram.lo
CXX src/src_libzmq_la-dish.lo
src/curve_server.cpp: In member function 'int zmq::curve_server_t::produce_welcome(zmq::msg_t*)':
src/curve_server.cpp:332:39: error: 'random_bytes' was not declared in this scope
random_bytes (cookie_nonce + 8, 16);
^
Makefile:3301: recipe for target 'src/src_libzmq_la-curve_server.lo' failed
make[1]: *** [src/src_libzmq_la-curve_server.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
src/ctx.cpp: In destructor 'zmq::ctx_t::~ctx_t()':
src/ctx.cpp:137:25: error: 'random_bytes_close' was not declared in this scope
random_bytes_close ();
^
Makefile:3287: recipe for target 'src/src_libzmq_la-ctx.lo' failed
make[1]: *** [src/src_libzmq_la-ctx.lo] Error 1
src/curve_client.cpp: In member function 'int zmq::curve_client_t::produce_initiate(zmq::msg_t*)':
src/curve_client.cpp:332:38: error: 'random_bytes' was not declared in this scope
random_bytes (vouch_nonce + 8, 16);
^
Makefile:3294: recipe for target 'src/src_libzmq_la-curve_client.lo' failed
make[1]: *** [src/src_libzmq_la-curve_client.lo] Error 1
make[1]: Leaving directory '/home/lboccass/git/libzmq'
Makefile:4034: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment