From owner-freebsd-java@freebsd.org Sat Mar 16 01:07:07 2019 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 753121536CB5 for ; Sat, 16 Mar 2019 01:07:07 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id C34218C779 for ; Sat, 16 Mar 2019 01:07:02 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.15.2/8.15.2) with ESMTP id x2G15Z8i006811; Fri, 15 Mar 2019 18:05:36 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.15.2/8.15.2/Submit) id x2G15TQ3006628; Fri, 15 Mar 2019 18:05:29 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 15 Mar 2019 18:05:24 -0700 From: Greg Lewis To: Jonathan Chen Cc: freebsd-java@freebsd.org Subject: Re: java/openjdk11 build faiiling Message-ID: <20190316010524.GA65278@misty.eyesbeyond.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Rspamd-Queue-Id: C34218C779 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [1.88 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.09)[0.095,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[eyesbeyond.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.56)[0.561,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mail.iagu.net,mail.eyesbeyond.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.24)[0.244,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:71.32.0.0/13, country:US]; IP_SCORE(-0.01)[asn: 209(0.01), country: US(-0.07)] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2019 01:07:07 -0000 On Sat, Mar 16, 2019 at 09:12:50AM +1300, Jonathan Chen wrote: > On Fri, 15 Mar 2019 at 21:16, Jonathan Chen 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@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org