From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Mysterious gzipped images Date: Mon, 12 Aug 2013 15:21:07 +0300 Message-ID: <83vc3bp0b0.fsf@gnu.org> References: <87mwoul8sz.fsf@igel.home> <83y587p0n6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376310074 23148 80.91.229.3 (12 Aug 2013 12:21:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Aug 2013 12:21:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: larsi@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 12 14:21:16 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V8r7a-0003Hh-5i for ged-emacs-devel@m.gmane.org; Mon, 12 Aug 2013 14:21:14 +0200 Original-Received: from localhost ([::1]:48218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8r7Z-0003GO-Mb for ged-emacs-devel@m.gmane.org; Mon, 12 Aug 2013 08:21:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8r7S-0003Fc-KB for emacs-devel@gnu.org; Mon, 12 Aug 2013 08:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8r7M-00006X-PM for emacs-devel@gnu.org; Mon, 12 Aug 2013 08:21:06 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:40528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8r7M-00006J-He for emacs-devel@gnu.org; Mon, 12 Aug 2013 08:21:00 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MRF00B003JB9200@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Mon, 12 Aug 2013 15:20:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRF00BOA3MI4I60@a-mtaout21.012.net.il>; Mon, 12 Aug 2013 15:20:43 +0300 (IDT) In-reply-to: <83y587p0n6.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162606 Archived-At: > Date: Mon, 12 Aug 2013 15:13:49 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > decompress.o(.text+0x16): In function `unwind_decompress': > d:\gnu\bzr\emacs\trunk\src/decompress.c:40: undefined reference to `inflateEnd' > decompress.o(.text+0xf7): In function `Fdecompress_gzipped_region': > d:\gnu\bzr\emacs\trunk\src/decompress.c:83: undefined reference to `inflateInit2_' > decompress.o(.text+0x242):d:\gnu\bzr\emacs\trunk\src/decompress.c:114: undefined reference to `inflate' > collect2: ld returned 1 exit status > Makefile:677: recipe for target `temacs.exe' failed > make[1]: *** [temacs.exe] Error 1 > > Looks like -lz is missing from the link command line. I see the problem in configure.ac: HAVE_ZLIB=no LIBZ= if test "${with_zlib}" != "no"; then if test "${HAVE_PNG}" = "yes"; then ### PNG depends on zlib, so if we have PNG, we have zlib. HAVE_ZLIB=yes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ else ### No PNG, so check zlib ourselves. Your assumption that if PNG is being compiled in, the link command line will necessarily include -lz is false. In particular, on Windows libpng is loaded dynamically, so no -lFOO link arguments are used during the link, even though the PNG support is being compiled. (I don't really understand why you needed to take this shortcut anyway: what's wrong with having two -lz switches passed to the linker?)