From xemacs-m  Sun Apr 13 04:48:14 1997
Received: from filippo.sfs.nphil.uni-tuebingen.de (filippo.sfs.nphil.uni-tuebingen.de [134.2.129.45])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id EAA01228
	for <xemacs-beta@xemacs.org>; Sun, 13 Apr 1997 04:48:11 -0500 (CDT)
Received: (from griffith@localhost) by filippo.sfs.nphil.uni-tuebingen.de (8.7.5/8.7.3) id LAA14736; Sun, 13 Apr 1997 11:47:53 +0200 (MET DST)
Sender: griffith@sfs.nphil.uni-tuebingen.de
To: wmperry@aventail.com
Cc: xemacs-beta@xemacs.org
Subject: Re: Problems building with png support
References: <tjn2r4l89m.fsf@sfs.nphil.uni-tuebingen.de> <m2wwq8v0q0.fsf@altair.xemacs.org> <86912op3p1.fsf@wmperry.in.aventail.com>
From: John Griffith <griffith@sfs.nphil.uni-tuebingen.de>
Date: 13 Apr 1997 11:47:52 +0200
In-Reply-To: wmperry@aventail.com's message of 12 Apr 1997 10:10:34 -0700
Message-ID: <tjiv1rl0dz.fsf@sfs.nphil.uni-tuebingen.de>
Lines: 20
X-Mailer: Gnus v5.4.37/XEmacs 19.15

>> "WMP" == William M Perry <wmperry@aventail.com> writes:

WMP> Try slapping a --site-libraries=/usr/local/lib into your
WMP> configure line, or manually specifying
WMP> LD_LIBRARY_PATH=/usr/local/lib in your shell init script.

Thanks, setting the LD_LIBRARY_PATH worked, setting --site-libraries
did not.

Actually I had tried this before and thought that it didn't work
because I was trying to run xemacs from a different shell which did
not have the LD_LIBRARY_PATH path set to /usr/local/lib.  In this
case, xemacs built fine but wouldn't run, ie. I got "ld.so.1:
./src/xemacs: fatal: libz.so.1.0.2: can't open file: errno=2" at run
time.  So does this mean that zlib is "dynamicalyy linked"?  And does
that mean I should build it "statically linked"?  And if so, do you
know the magic incantations to do this?

Thanks,
John

