From xemacs-m  Mon Jan  6 15:59:46 1997
Received: from cs.uchicago.edu (alexandria.cs.uchicago.edu [128.135.11.87])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id PAA00150 for <xemacs-beta@xemacs.org>; Mon, 6 Jan 1997 15:59:46 -0600 (CST)
Received: from gargoyle164.cs.uchicago.edu (gargoyle20 [128.135.20.100]) by cs.uchicago.edu (8.8.3/8.7.3) with ESMTP id PAA23926 for <xemacs-beta@xemacs.org>; Mon, 6 Jan 1997 15:59:43 -0600 (CST)
Received: (from csdayton@localhost) by gargoyle164.cs.uchicago.edu (8.8.3/8.7.3) id PAA09237; Mon, 6 Jan 1997 15:59:43 -0600 (CST)
To: xemacs-beta@xemacs.org
Subject: Re: [Build Report] XEmacs-20.0-b34 / SparcLinux
References: <199701061958.UAA13537@nimitz.info.ucl.ac.be>
	<m2bub2h77y.fsf@altair.xemacs.org>
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII
From: Soren Dayton <csdayton@cs.uchicago.edu>
Date: 06 Jan 1997 15:59:39 -0600
In-Reply-To: Steven L Baur's message of 06 Jan 1997 12:36:01 -0800
Message-ID: <xcdvi9ampmc.fsf@gargoyle164.cs.uchicago.edu>
Lines: 53
X-Mailer: Gnus v5.3/XEmacs 19.14

Steven L Baur <steve@miranova.com> writes:

> >>>>> "Frederic" == Frederic Poncin <fp@info.ucl.ac.be> writes:
> 
> Frederic> #if !(defined(linux) && defined(sparc))
> Frederic> extern __ptr_t __sbrk __P ((int increment));
> Frederic> #endif
> 
> Thanks for the patch, I applied it to the current betas.
> 
> Frederic> in gmalloc.c should fix it but the problem is probably
> Frederic> somewhere else. I don't see why this is needed.
> 
> The problem is we shouldn't be redeclaring system routines.
> 
> Frederic> xmu lib. is not detected by configure and is missing at link
> 
> sb> O.K.  Do you have libpng, or did the detection fail for that too?
> 
> Frederic> Same problem with libpng, not detected.
> 
> O.K.  It's probably related then.  libpng is not configure-detected
> because of incompatibilities in /bin/bash as /bin/sh.

are you _sure_ that is the reason?  It also fails on Solaris.  Here is
an example of the failure:

% cat conftest.c
 
int main() { return 0; }
int t() { main();; return 0; }
 
alexandria:0:3:54PM:/src/local/xemacs/xemacs-20.0-b34:
% cc conftest.c -lpng -lm -lz
 
alexandria:0:3:55PM:/src/local/xemacs/xemacs-20.0-b34:
% cc conftest.c -lpng -lm    
Undefined                       first referenced
 symbol                             in file
inflateEnd                          /opt/local/lib/libpng.so
deflateInit2_                       /opt/local/lib/libpng.so
deflateReset                        /opt/local/lib/libpng.so
inflate                             /opt/local/lib/libpng.so
deflate                             /opt/local/lib/libpng.so
deflateEnd                          /opt/local/lib/libpng.so
inflateInit_                        /opt/local/lib/libpng.so
inflateReset                        /opt/local/lib/libpng.so
ld: fatal: Symbol referencing errors. No output written to a.out

and -lz is tested after -png.  (maybe I am just misreading or
something).  Now _why_ solaris does this is beyond me....

Soren

