From xemacs-m  Sun Apr 13 13:16:13 1997
Received: from wmperry.in.aventail.com (wmperry@wmperry.oz.net [207.13.185.53])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id NAA04065
	for <xemacs-beta@xemacs.org>; Sun, 13 Apr 1997 13:16:11 -0500 (CDT)
Received: (from wmperry@localhost) by wmperry.in.aventail.com (8.7.6/8.7.3) id LAA00435; Sun, 13 Apr 1997 11:15:29 -0700
Sender: wmperry@wmperry.in.aventail.com
To: John Griffith <griffith@sfs.nphil.uni-tuebingen.de>
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> <tjiv1rl0dz.fsf@sfs.nphil.uni-tuebingen.de>
Errors-to: wmperry@aventail.com
Reply-to: wmperry@aventail.com
X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7</SYF`{vYQ(&RI1&EiH[FvT;J}@f!4kfz
 x_!Y#=y{Uuj9GvUi=cPuajQ(Z42R[wE@{G,sn$qGr5g/wnb*"*ktI+,CD}1Z'wxrM2ag-r0p5I6\nA
 [WJopW_J.WY;
From: wmperry@aventail.com (William M. Perry)
Date: 13 Apr 1997 11:15:28 -0700
In-Reply-To: John Griffith's message of 13 Apr 1997 11:47:52 +0200
Message-ID: <86912m94cf.fsf@wmperry.in.aventail.com>
Lines: 29
X-Mailer: Gnus v5.4.42/Emacs 19.34

John Griffith <griffith@sfs.nphil.uni-tuebingen.de> writes:

> >> "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?

  If you are going to be distributing the binaries, you should definitely
statically link it.  You can do this with --dynamic=no.

  But, if its just for you, the best thing to do would be to configure
--site-runtime-libraries=/usr/local/lib - this will tell the dynamic linker
to always look in /usr/local/lib for resolving libraries for the xemacs
executable, and you wouldn't need to specify LD_LIBRARY_PATH

-Bill P.

