Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2914

Fix link error on OS/X for checksum_init call

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.12
    • Fix Version/s: WT2.9.0, 3.2.10, 3.3.14
    • Labels:
      None
    • Environment:
      OS/X 10.11

      Description

      When checksum_init is used in a program that does not also have a call to wiredtiger_open, there is an unresolved symbol:

      libtool: link: cc -Wall -Wextra -Waddress -Waggregate-return -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat -Winline -Wmissing-declarations -Wmissing-field-initializers -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wunused -Wwrite-strings -Werror -g -Wall -o test_wt2695_checksum wt2695_checksum/main.o  -L/Users/dda/wt/snappy/installed/snappy-1.1.1/lib -L/Users/dda/wt/ext/lz4/installed/lib /Users/dda/wt/git/process-init/test/utility/.libs/libtest_util.a ../../.libs/libwiredtiger.a -ldl -lpthread -lz -llz4 /Users/dda/wt/snappy/installed/snappy-1.1.1/lib/libsnappy.dylib
      Undefined symbols for architecture x86_64:
        "___wt_process", referenced from:
            _main in main.o
            ___wt_checksum_init in libwiredtiger.a(crc32-x86.o)
      ld: symbol(s) not found for architecture x86_64
      

        Attachments

          Activity

            People

            • Assignee:
              donald.anderson Donald Anderson
              Reporter:
              donald.anderson Donald Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: