From xemacs-m  Thu Dec  5 23:24:29 1996
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with ESMTP id XAA08701 for <xemacs-beta@xemacs.org>; Thu, 5 Dec 1996 23:24:28 -0600 (CST)
Received: (from steve@localhost)
          by altair.xemacs.org (8.8.4/8.8.4)
	  id VAA10599; Thu, 5 Dec 1996 21:33:46 -0800
Sender: steve@xemacs.org
To: xemacs-beta@xemacs.org
Subject: Re: b30 success
References: <199612052210.RAA20759@nvwls.cc.purdue.edu> 	<m2ral4plfg.fsf@altair.xemacs.org> <199612060443.UAA03346@xemacs.eng.sun.com>
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Martin Buchholz's message of Thu, 5 Dec 1996 20:43:36 -0800
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII
Date: 05 Dec 1996 21:33:45 -0800
Message-ID: <m2sp5knsna.fsf@altair.xemacs.org>
Lines: 75
X-Mailer: Red Gnus v0.72/XEmacs 19.15

Here is the pertinent output from `./configure ... --extra-verbose':

checking for png.h
checking for -lpng

/usr/lib/libpng.so: undefined reference to `deflate'
/usr/lib/libpng.so: undefined reference to `inflate'
/usr/lib/libpng.so: undefined reference to `inflateInit_'
/usr/lib/libpng.so: undefined reference to `deflateInit2_'
/usr/lib/libpng.so: undefined reference to `inflateReset'
/usr/lib/libpng.so: undefined reference to `deflateReset'
/usr/lib/libpng.so: undefined reference to `inflateEnd'
/usr/lib/libpng.so: undefined reference to `deflateEnd'


So it's finding -lm (no undefined reference to `pow'), but choking on
-lz.

This is precisely the output I get if I perform a test link like:

gcc -o ptest ptest.o -lpng -lm


>>>>> "Martin" == Martin Buchholz <mrb@eng.sun.com> writes:

>>>>> "Steven" == Steven L Baur <steve@miranova.com> writes:
Steven> Do you have png libraries & headers installed from libgr?

Martin> My setup, which works, does NOT use libgr, but instead libpng-0.89 +
Martin> zlib-1.02 on Solaris 2.5.

Martin> Perhaps it breaks if:
Martin> - libgr is used?

libgr is a convenient package of popular graphics libraries compilable
in one bundle.  It includes jpeg, tiff, zlib, png, and some others.
Once installed, the libraries and headers are present on the system as
if each package were installed separately.

The png library is `libpng 1.0 beta 3 - version 0.89'.

Martin> - libgz is used?

The `signature' for that looks like:

$ gcc -o ptest ptest.o -lpng -lgz -lm
/usr/lib/libpng.so: undefined reference to `inflateInit_'
/usr/lib/libpng.so: undefined reference to `deflateInit2_'

Martin> - -lm not autodetected?

`-lm' is being added.

Martin> - bash is being used?

Bash *is* being used, I don't have a lot of choice there :-(.

I get the same results with zsh symlinked to /bin/sh (which causes it
to go into sh compatibility mode), and also invoking the script with
#!/bin/zsh,emulate sh.  Really strange stuff happens with ash
symlinked to /bin/sh (a whole bunch of coredumps and it doesn't find
png).

I notice that the tests are wrapped in
test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
 ...
}

instead of an if/then like they used to be (and worked).  Perhaps you
could change it back.
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
"Bill Clinton is a bore.  He doesn't have a creative bone in his
body."  -- David Brinkley

