java/openjdk11 build faiiling

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

java/openjdk11 build faiiling

Jonathan Chen
Hi,

I'm trying to build java/openjdk11 with synth, and I'm getting:

checking for PNG... checking for which libpng to use... system not found
configure: error: --with-libpng=system specified, but no libpng found!
configure exiting with result code 1
===>  Script "configure" failed unexpectedly.
Please report the problem to [hidden email] [maintainer] and attach the
"/construction/xports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.2-9-1/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /xports/java/openjdk11


However, the synth build logs indicate that:
===>   Installing existing package /packages/All/png-1.6.36.txz
Installing png-1.6.36...
Extracting png-1.6.36: .......... done
===>   openjdk11-11.0.2.9.1 depends on shared library: libpng16.so -
found (/usr/local/lib/libpng16.so)

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!

Cheers.
--
Jonathan Chen <[hidden email]>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: java/openjdk11 build faiiling

Jonathan Chen
On Fri, 15 Mar 2019 at 21:16, Jonathan Chen <[hidden email]> 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!

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'm still trying to figure out how the configure script gets invoked..
--
Jonathan Chen <[hidden email]>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: java/openjdk11 build faiiling

Greg Lewis-2
On Sat, Mar 16, 2019 at 09:12:50AM +1300, Jonathan Chen wrote:

> On Fri, 15 Mar 2019 at 21:16, Jonathan Chen <[hidden email]> 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   : [hidden email]
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : [hidden email]
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: java/openjdk11 build faiiling

Jonathan Chen
Hi Greg,

I figured it out. The USES line needs to include "pkgconfig", ie:
USES=           compiler:features gmake iconv jpeg pkgconfig

Cheers.
--
Jonathan Chen <[hidden email]>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"