Skip to content

moqx-issuer fails to start: gflags linked both statically and dynamically #516

Description

@gmarzot

moqx-issuer exits on every invocation in the published image (no args, --help, --version):

$ docker run --rm --entrypoint moqx-issuer ghcr.io/openmoq/moqx:latest --help
ERROR: something wrong with flag 'flagfile' in file '.../gflags-2.2.2/src/gflags.cc'.
One possibility: file '.../gflags.cc' is being linked both statically and
dynamically into this executable.

It fails during gflags flag registration, before main runs. The relay binary in the same image is unaffected.

Likely cause: moqx-issuer links the bare gflags target (static, per GFLAGS_SHARED OFF) alongside Folly::folly_init_init, which brings in the shared gflags — two copies, each registering flagfile.

Found incidentally while testing #505; unrelated to that change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions