From xemacs-m  Fri May 30 04:43:50 1997
Received: from iria.mines.u-nancy.fr (galibert@iria.mines.u-nancy.fr [193.49.140.100])
	by xemacs.org (8.8.5/8.8.5) with SMTP id EAA17367
	for <xemacs-beta@xemacs.org>; Fri, 30 May 1997 04:43:47 -0500 (CDT)
Received: (from galibert@localhost) by iria.mines.u-nancy.fr (950413.SGI.8.6.12/950213.SGI.AUTOCF) id LAA20770; Fri, 30 May 1997 11:40:52 +0200
Message-ID: <19970530114052.50290@iria.mines.u-nancy.fr>
Date: Fri, 30 May 1997 11:40:52 +0200
From: Olivier Galibert <Olivier.Galibert@mines.u-nancy.fr>
To: Xemacs-beta ML <xemacs-beta@xemacs.org>
Subject: configure problems on irix 6.2
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.74

Interesting irix behavior :

galibert@iria:~/tmp #246 >cat tt.c
int main(void)
{
  return 0;
}
galibert@iria:~/tmp #247 >cc -n32 tt.c -o tt -lpng
ld32: WARNING 84: /usr/lib32/libpng.so is not used for resolving any symbol.
galibert@iria:~/tmp #248 >./tt
20760:./tt: rld: Error: unresolvable symbol in /usr/lib32/libpng.so: inflateReset
20760:./tt: rld: Error: unresolvable symbol in /usr/lib32/libpng.so: inflate
20760:./tt: rld: Error: unresolvable symbol in /usr/lib32/libpng.so: deflate
20760:./tt: rld: Error: unresolvable symbol in /usr/lib32/libpng.so: pow
20760:./tt: rld: Fatal Error: this executable has unresolvable symbols

Which means the configure test for png/png with gz/png with z does not work
properly because the code only tries to link the test code and not to run it.
Here it finds that -lpng is enough which is wrong since -lz is also needed.

The only workaround I see is to look specifically for the zlib. Is this lib
used by anything else than png in xemacs ?

  OG.

