[Bug 263352] graphics/GraphicsMagick: fails to build with graphics/libjxl installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Apr 2022 18:51:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263352

            Bug ID: 263352
           Summary: graphics/GraphicsMagick: fails to build with
                    graphics/libjxl installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: http://hg.code.sf.net/p/graphicsmagick/code/log/8412d0
                    44e645/coders/jxl.c
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: osidorkin@gmail.com
                CC: jbeich@FreeBSD.org, sunpoet@FreeBSD.org
                CC: jbeich@FreeBSD.org, sunpoet@FreeBSD.org
 Attachment #233257 maintainer-approval?
             Flags:

Created attachment 233257
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233257&action=edit
disable libjxl for GraphicsMagick port

GraphicsMagick picks up libjxl when it is installed. However it requires libjxl
API trunk and fails to build with the version from ports. GraphicsMagic commit
mentions mysterious 0.7.0 version that seems to be some tag in the repository
picked by debian maintainers. Attached patch disables libjxl support and
supposed to be removed after libjxl update

The error is the following:


coders/jxl.c:513:19: warning: implicit declaration of function
'JxlDecoderCloseInput' is invalid in C99 [-Wimplicit-function-declaration]
                  JxlDecoderCloseInput(jxl);
                  ^
coders/jxl.c:811:3: error: use of undeclared identifier
'JxlEncoderFrameSettings'
  JxlEncoderFrameSettings
  ^
coders/jxl.c:812:6: error: use of undeclared identifier 'frame_settings'
    *frame_settings = NULL; /* Deallocated when encoder is destroyed with
JxlEncoderDestroy() */
     ^
coders/jxl.c:960:3: error: use of undeclared identifier 'frame_settings'
  frame_settings = JxlEncoderFrameSettingsCreate(jxl_encoder, NULL);
  ^
coders/jxl.c:960:20: warning: implicit declaration of function
'JxlEncoderFrameSettingsCreate' is invalid in C99 [-Wimplicit-function
-declaration]
  frame_settings = JxlEncoderFrameSettingsCreate(jxl_encoder, NULL);
                   ^
coders/jxl.c:963:11: warning: implicit declaration of function
'JxlEncoderSetFrameLossless' is invalid in C99 [-Wimplicit-function-de
claration]
      if (JxlEncoderSetFrameLossless(frame_settings,JXL_TRUE) !=
JXL_ENC_SUCCESS)
          ^
coders/jxl.c:963:38: error: use of undeclared identifier 'frame_settings'
      if (JxlEncoderSetFrameLossless(frame_settings,JXL_TRUE) !=
JXL_ENC_SUCCESS)

-- 
You are receiving this mail because:
You are the assignee for the bug.