No description provided.
Bugfix: Support building test_bitcoin with shared-object boost test framework #777
pull luke-jr wants to merge 2 commits into bitcoin:master from luke-jr:bugfix_shared_boost_test changing 2 files +11 −7-
luke-jr commented at 4:38 PM on January 23, 2012: member
-
Bugfix: Support building test_bitcoin with shared-object boost test framework ca9afa8401
-
TheBlueMatt commented at 5:29 PM on January 23, 2012: member
NACK, doesnt build:
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 20 has invalid symbol index 21 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crt1.o: In function
_start': (.text+0x20): undefined reference tomain' collect2: ld returned 1 exit status -
luke-jr commented at 5:55 PM on January 23, 2012: member
Did you make clean first? It works fine here... :/
-
TheBlueMatt commented at 6:19 PM on January 23, 2012: member
Nope, still happens if I make -f makefile.unix clean first
-
luke-jr commented at 6:35 PM on January 23, 2012: member
What boost version? I have 1.46.1
-
gavinandresen commented at 6:37 PM on January 23, 2012: contributor
Not working for me, either on an ubuntu 64 VM:
U64:src gavin$ make -f makefile.unix USE_UPNP= test_bitcoin
g++ -c -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/gavin/src/bitcoin/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/test/base58_tests.o test/base58_tests.cpp
U64:src gavin$ make --version GNU Make 3.81
I have no idea why TESTDEFS isn't working, it looks like it aught to work...
-
TheBlueMatt commented at 6:43 PM on January 23, 2012: member
IIRC you cant define a variable in a conditional in makefiles and have it work outside the conditional.
-
luke-jr commented at 6:49 PM on January 23, 2012: member
GNU Make 3.82 fixed some bugs... though not ones that I'd think affect this.
-
Rename src/obj/test to src/obj-test to workaround bug in older GNU Make 34c69036da
-
TheBlueMatt commented at 7:33 PM on January 23, 2012: member
Compiles now, but it still doesnt have BOOST_TEST_DYN_LINK defined, which I dont know if it will kill something, but Id say it should absolutely be there before merge (esp if this is going to be default).Nevermind, ACK, though not a bugfix. - gavinandresen merged this on Jan 23, 2012
- gavinandresen closed this on Jan 23, 2012
- destenson referenced this in commit a69a643c6e on Jun 26, 2016
- DrahtBot locked this on Sep 8, 2021