[MacPorts] #64190: libjpeg-turbo: header file missing

MacPorts noreply at macports.org
Sun Dec 12 18:26:02 UTC 2021


#64190: libjpeg-turbo: header file missing
----------------------------+----------------------
  Reporter:  jasonliu--     |      Owner:  mascguy
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.7.1
Resolution:                 |   Keywords:
      Port:  libjpeg-turbo  |
----------------------------+----------------------

Comment (by jasonliu--):

 Replying to [comment:2 ryandesign]:
 > The port isn't doing anything special to remove jpegint.h. The libjpeg-
 turbo build process just doesn't install it. Seems like it is an internal
 header intended only for the use of libjpeg-turbo itself during the build.
 The software you're currently porting shouldn't be using it (or, as the
 case may be, shouldn't be defining `JPEG_INTERNALS`).

 Ryan, it looks like you're right: The project's source code is indeed
 defining {{{JPEG_INTERNALS}}}:

 {{{
 #define JPEG_INTERNALS
 //extern "C" {
 #include <jpeglib.h>
 //}
 }}}

 If I patch that file to remove the {{{#define}}}, the code compiles fine
 without the error. Since defining {{{JPEG_INTERNALS}}} is supposed to also
 include {{{jerror.h}}}, I suppose I could patch the source code file to
 add that in, since {{{jerror.h}}} is present as part of {{{libjpeg-
 turbo}}}'s package contents.

 I guess this ticket can be closed with a status of: "upstream author who
 is using a library improperly", although it's interesting to note that
 when I set the configure args to compile using the internally included
 {{{libjpeg}}} (which appears to be {{{libjpeg 6}}}), the compile completes
 fine, since in that scenario the entire {{{libjpeg}}} source code,
 including {{{jpegint.h}}}, is available to the build system.

-- 
Ticket URL: <https://trac.macports.org/ticket/64190#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list