PNG defines in CFLAGS can cause compilation errors with external libpng

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 21, 25
    • Component/s: client-libs
    • Environment:

      OpenBSD 7.8/aarch64

    • In Review
    • aarch64
    • other

      When building with external libpng, the PNG defines added to CFLAGS may conflict with the installed libpng header pnglibconf.h resulting in compilation errors. For example on OpenBSD/aarch64:

      /usr/local/include/pnglibconf.h:207:9: error: 'PNG_ARM_NEON_OPT' macro redefined [-Werror,-Wmacro-redefined]

            Assignee:
            Kurt Miller
            Reporter:
            Kurt Miller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: