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
  1. luke-jr commented at 4:38 PM on January 23, 2012: member

    No description provided.

  2. Bugfix: Support building test_bitcoin with shared-object boost test framework ca9afa8401
  3. 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

  4. luke-jr commented at 5:55 PM on January 23, 2012: member

    Did you make clean first? It works fine here... :/

  5. TheBlueMatt commented at 6:19 PM on January 23, 2012: member

    Nope, still happens if I make -f makefile.unix clean first

  6. luke-jr commented at 6:35 PM on January 23, 2012: member

    What boost version? I have 1.46.1

  7. 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...

  8. 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.

  9. 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.

  10. Rename src/obj/test to src/obj-test to workaround bug in older GNU Make 34c69036da
  11. 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.

  12. gavinandresen merged this on Jan 23, 2012
  13. gavinandresen closed this on Jan 23, 2012

  14. destenson referenced this in commit a69a643c6e on Jun 26, 2016
  15. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me