Bug 237158 - java/openjdk12 and java/openjdk11: can not build on 11-STABLE (configure error: libjpeg is not found)
Summary: java/openjdk12 and java/openjdk11: can not build on 11-STABLE (configure erro...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-java mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-09 12:17 UTC by Lev A. Serebryakov
Modified: 2019-05-17 04:35 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments
config.log and configure.log for failed build on FreeBSD 11.2 with graphics/jpeg installed (26.91 KB, application/x-xz)
2019-04-12 12:19 UTC, Lev A. Serebryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lev A. Serebryakov freebsd_committer 2019-04-09 12:17:36 UTC
java/openjdk12 can not be built on FreeBSD 11.2-STABLE. Configure can not find jpeg.h. I've tried to add "--with-libjpeg-include" / "--with-libjpeg-lib" (as is done for libgif), but "configure" complains about these options:

Using freetype: system
checking for which libjpeg to use... system
checking for JPEG... no
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
configure: error: --with-libjpeg=system specified, but jpeglib.h not found!
configure exiting with result code 1

% ls /usr/local/include/jpeglib.h
/usr/local/include/jpeglib.h
%
Comment 1 Lev A. Serebryakov freebsd_committer 2019-04-09 12:21:13 UTC
java/openjdk11 has same problem.
Comment 2 Greg Lewis freebsd_committer 2019-04-11 22:02:30 UTC
Please attach config.log
Comment 3 Greg Lewis freebsd_committer 2019-04-11 22:04:35 UTC
Also, what JPEG library do you have installed?  Is it the default (jpeg-turbo) or something different?
Comment 4 Lev A. Serebryakov freebsd_committer 2019-04-12 12:19:57 UTC
Created attachment 203613 [details]
config.log and configure.log for failed build on FreeBSD 11.2 with graphics/jpeg installed

It is basic `graphics/jpeg` which was installed long time ago for some other port.
Comment 5 Lev A. Serebryakov freebsd_committer 2019-04-12 16:01:45 UTC
It works with jpeg-turbo, though.
Comment 6 Greg Lewis freebsd_committer 2019-05-17 04:35:09 UTC
At the moment the port is pulling in the jpeg dependency with USES=jpeg.  The two libraries should be compatible, so maybe this is a bug in the jpeg detection which only impacts with the older version of the jpeg library.