Skip to content

Instantly share code, notes, and snippets.

@epipenau
epipenau / gist:199bd7005187239c2fae
Created January 13, 2015 16:48
ambiguous map in litecoin source code
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/masked/litecoin/src -I/home/masked/litecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/masked/litecoin/src/leveldb/include -I/home/masked/litecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
alert.cpp:20:1: error: reference to 'map' is ambiguous
In file included from compat.h:24:0,
from netbase.h:11,
from util.h:30,
from alert.h:13,
from alert.cpp:11:
/usr/include/net/if.h:97:9: error: candidates are: struct map
In file included from /opt/local/gcc47/include/c++/map:61:0,
from alert.cpp:9:
@epipenau
epipenau / gist:027331dbf66b1aa899d4
Created January 13, 2015 22:31
bitcoin 0.10 on smartos
[root@masked ~/bitcoin]# ./autogen.sh
Makefile.am:3: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:3: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:3: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:3: If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:3: its definition is in aclocal's search path.
Makefile.am:54: warning: source file 'src/secp256k1.c' is in a subdirectory,
Makefile.am:54: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
IKESA: Cookies: Initiator 0x7a9cff970df16c49 Responder 0x5f717e0f18d3d7f5
IKESA: The local host is the responder.
IKESA: ISAKMP version 1.0; main mode (identity protect) exchange
IKESA: Current state is ACTIVE
IKESA: Dead Peer Detection (RFC 3706) enabled
XFORM: Authentication method: <unknown 0>
XFORM: Encryption alg: <none>; Authentication alg: <none>
XFORM: Oakley Group: <unavailable>
XFORM: Phase 2 PFS is not used
GLOBL: Label 'faith', key manager cookie 1
GLOBL: local_idtype=<unknown 0>, ike_mode=any mode
GLOBL: p1_nonce_len=64, p2_nonce_len=64, p2_pfs=false (group 0)
GLOBL: p2_lifetime=43200 seconds (12.00 hours)
GLOBL: p2_softlife=24000 seconds (6.67 hours)
GLOBL: p2_idletime=13333 seconds (3.70 hours)
GLOBL: p2_lifetime_kb=29491200 kilobytes (28.12 GB)
GLOBL: p2_softlife_kb=24576000 kilobytes (23.44 GB)
LOCIP: IP address range(s):
#INDEX vpn0
,9
{ tunnel vpn0
negotiate tunnel dir out } ipsec { encr_algs aes-cbc(128..256) encr_auth_algs hmac-sha256(256) sa shared }
#INDEX vpn0
,10
{ tunnel vpn0
negotiate tunnel dir out } ipsec { encr_algs aes-cbc(128..256) encr_auth_algs hmac-sha256(256) sa shared }
#INDEX vpn0
--<root@be412201-d704-43c9-8e4d-8478ca78344a>-(/data/chroot/dev-2015Q2-i386)-</data/pkgsrc/databases/openldap-server>--
-> bmake show-options
bash: -e: command not found
bash: -ne: command not found
bmake: " -ne "/\.ldif$/p;/\.schema$/p" /data/pkgsrc/databases/openldap-server/PLIST | -e "s|share/examples/openldap/||"" returned non-zero status
bash: -e: command not found
bash: -ne: command not found
bmake: " -ne "/\.ldif$/p;/\.schema$/p" /data/pkgsrc/databases/openldap-server/PLIST | -e "s|share/examples/openldap/||"" returned non-zero status
bash: /usr/pkg/sbin/pkg_info: No such file or directory
bash: /opt/tools/bin/makeinfo: No such file or directory
Making all in third_party/bnlib
make[1]: Entering directory '/root/freeswitch/libs/libzrtp/third_party/bnlib'
gcc -shared -Wl,-z,defs,-soname,libbn.so.1 -o libbn.so.1.0 bn00.o lbn00.o bn.o lbnmem.o sieve.o prime.o bnprint.o jacobi.o germain.o
Undefined first referenced
symbol in file
zrtp_sys_free lbnmem.o
zrtp_sys_alloc lbnmem.o
zrtp_memset lbnmem.o
ld: fatal: symbol referencing errors. No output written to libbn.so.1.0
collect2: error: ld returned 1 exit status
Making all in third_party/bnlib
make[1]: Entering directory '/root/freeswitch/libs/libzrtp/third_party/bnlib'
gcc -shared -Wl,-z,defs,-soname,libbn.so.1 -o libbn.so.1.0 ../../libzrtp.so.1.0 bn00.o lbn00.o bn.o lbnmem.o sieve.o prime.o bnprint.o jacobi.o germain.o
Undefined first referenced
symbol in file
zrtp_mutex_unlock ../../libzrtp.so.1.0
zrtp_add_system_state ../../libzrtp.so.1.0
zrtp_mutex_destroy ../../libzrtp.so.1.0
zrtp_mutex_init ../../libzrtp.so.1.0
zrtp_mutex_lock ../../libzrtp.so.1.0
make[2]: Entering directory '/root/freeswitch'
CC freeswitch-switch.o
CCLD freeswitch
Undefined first referenced
symbol in file
zrtp_resolve_mitm_call ./.libs/libfreeswitch.so
zrtp_stream_stop ./.libs/libfreeswitch.so
zrtp_session_set_userdata ./.libs/libfreeswitch.so
zrtp_log_set_level ./.libs/libfreeswitch.so
zrtp_session_down ./.libs/libfreeswitch.so
CCLD freeswitch
Undefined first referenced
symbol in file
zrtp_mutex_unlock /root/freeswitch/libs/libzrtp/libzrtp.so
zrtp_add_system_state /root/freeswitch/libs/libzrtp/libzrtp.so
srtp_unprotect_rtcp ./.libs/libfreeswitch.so
zrtp_mutex_destroy /root/freeswitch/libs/libzrtp/libzrtp.so
zrtp_mutex_init /root/freeswitch/libs/libzrtp/libzrtp.so
zrtp_mutex_lock /root/freeswitch/libs/libzrtp/libzrtp.so
zrtp_sem_post /root/freeswitch/libs/libzrtp/libzrtp.so