java/openjdk11 build faiiling

Greg Lewis glewis at eyesbeyond.com
Sat Mar 16 01:07:07 UTC 2019


On Sat, Mar 16, 2019 at 09:12:50AM +1300, Jonathan Chen wrote:
> On Fri, 15 Mar 2019 at 21:16, Jonathan Chen <jonc at chen.org.nz> wrote:
> [...]
> > The config.log has:
> > [...]
> > configure:59674: checking for DGifGetCode in -lgif
> > configure:59699: /usr/bin/c++ -o conftest -m64  -I/usr/local/include
> > -m64  -L/usr/local/lib conftest.cpp -lgif  -ljpeg  >&5
> > configure:59699: $? = 0
> > configure:59708: result: yes
> > configure:59739: checking for PNG
> > configure:59804: checking for which libpng to use
> > configure:59827: result: system not found
> > configure:59829: error: --with-libpng=system specified, but no libpng found!

So here is what I get there:

configure:59804: checking for which libpng to use
configure:59824: result: system

And later on in config.log I see

pkg_cv_PNG_CFLAGS='-I/usr/local/include/libpng16 '
pkg_cv_PNG_LIBS='-L/usr/local/lib -lpng16 -lz '

and

PNG_CFLAGS='-I/usr/local/include/libpng16 '
PNG_LIBS='-L/usr/local/lib -lpng16 -lz '

> In fact, the logs indicate that jpeg and gif weren't found easily either:
> 
> checking for which libjpeg to use... system
> checking jpeglib.h usability... yes
> checking jpeglib.h presence... no
> checking for jpeglib.h... yes
> checking for jpeg_CreateDecompress in -ljpeg... configure: WARNING:
> jpeglib.h: accepted by the compiler, rejected by the preprocessor!
> configure: WARNING: jpeglib.h: proceeding with the compiler's result
> yes
> checking for which giflib to use... system
> checking gif_lib.h usability... yes
> checking gif_lib.h presence... no
> configure: WARNING: gif_lib.h: accepted by the compiler, rejected by
> the preprocessor!
> configure: WARNING: gif_lib.h: proceeding with the compiler's result
> checking for gif_lib.h... yes
> checking for DGifGetCode in -lgif... yes
> checking for PNG... checking for which libpng to use... system not found
> Configure: error: --with-libpng=system specified, but no libpng found!

I get similar things for jpeglib.h and gif_lib.h.  That is because the
preprocessor test doesn't pass -I/usr/local/include.

> I'm still trying to figure out how the configure script gets invoked..

I'm not quite sure on what you mean by that?  Do you mean by the ports
system?  If so, look at bsd.port.mk and also at the CONFIGURE_* variables
in the Makefile.

-- 
Greg Lewis                          Email   : glewis at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list