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

--use-system-pcre doesn't work unless I add -lpcre to LINKFLAGS

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Build
    • None
    • Environment:
      OS X 10.6.8, Xcode 3.2.6
    • OS X

      When building mongodb 2.0.2 with the

      --use-system-all

      option (or presumably just

      --use-system-pcre

      ), the build fails with:

      Undefined symbols for architecture x86_64:
        "_pcre_config", referenced from:
            mongo::RXTest::run()    in matcher.o
            mongo::RXTest::run()    in matcher.o
      ld: symbol(s) not found for architecture x86_64
      collect2: ld returned 1 exit status
      

      To fix this I have to manually add

      -lpcre

      to LINKFLAGS.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ryandesign Ryan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: