Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9786

Missing external symbol strcasestr on Solaris 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.4.6, 2.5.1
    • Component/s: Internal Code
    • Labels:
      None
    • Environment:
      Solaris 10
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      Solaris

      Description

      Along with backtrace (SERVER-7080) and posix_fadvise (SERVER-7404), there is an unresolved symbol "strcasestr" on Solaris 10 in mongod version 2.4.

      ~/mongodb-sunos5-x86_64-2.4.3/bin
      $ env LD_LIBRARY_PATH=. ldd -r ./mongod
              libsocket.so.1 =>        /lib/64/libsocket.so.1
              libresolv.so.2 =>        /lib/64/libresolv.so.2
              librt.so.1 =>    /lib/64/librt.so.1
              libnsl.so.1 =>   /lib/64/libnsl.so.1
              libstdc++.so.6 =>        ./libstdc++.so.6
              libm.so.2 =>     /lib/64/libm.so.2
              libgcc_s.so.1 =>         ./libgcc_s.so.1
              libpthread.so.1 =>       /lib/64/libpthread.so.1
              libc.so.1 =>     /lib/64/libc.so.1
              libaio.so.1 =>   /lib/64/libaio.so.1
              libmd.so.1 =>    /lib/64/libmd.so.1
              libmp.so.2 =>    /lib/64/libmp.so.2
              libscf.so.1 =>   /lib/64/libscf.so.1
              libdoor.so.1 =>  /lib/64/libdoor.so.1
              libuutil.so.1 =>         /lib/64/libuutil.so.1
              libgen.so.1 =>   /lib/64/libgen.so.1
              symbol not found: posix_fadvise         (mongod)
              symbol not found: strcasestr            (mongod)
              symbol not found: backtrace             (mongod)
              symbol not found: backtrace_symbols_fd          (mongod)
              symbol not found: backtrace_symbols             (mongod)

      The symbol is referenced from src/mongo/db/fts/fts_matcher.cpp line 241. The code has a workaround for Windows (#ifdef _WIN32) but otherwise assumes that the routine is available.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tad Tad Marshall
                Reporter:
                tad Tad Marshall
                Participants:
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: