Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-7868

postgresql-musicbrainz-collate extension doesn't build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Database setup
    • Labels:
      None

      Description

      When trying to build the musicbrainz-collate extension on a recent Debian testing, the linking step fails, with various messages about undefined references to main and to library functions, indicating that the linker is trying to produce an executable instead of a shared object.

      I was able to get an apparently-working extension by either adding -shared to the end of the command line, or removing -Wl,-z,relro from it. The latter sneaks in because it is in the output of icu-config --ldflags.

      As using icu-config is no longer recommended anyway, the best fix seems to be to use pkg-config instead. pkg-config --libs icu-uc icu-i18n output does not contain any special linker flags, just -l. Unfortunately, there were no pc files for ICU yet in the ancient Ubuntu version that is still the official minimum version.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chirlu Ulrich Klauer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package