From xemacs-m  Sat Apr 12 07:45:32 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 HAA17759
	for <xemacs-beta@xemacs.org>; Sat, 12 Apr 1997 07:45:30 -0500 (CDT)
Received: (from griffith@localhost) by filippo.sfs.nphil.uni-tuebingen.de (8.7.5/8.7.3) id OAA00266; Sat, 12 Apr 1997 14:45:27 +0200 (MET DST)
Sender: griffith@sfs.nphil.uni-tuebingen.de
To: xemacs-beta@xemacs.org
Subject: Problems building with png support
Cc: griffith@filippo.sfs.nphil.uni-tuebingen.de
From: John Griffith <griffith@sfs.nphil.uni-tuebingen.de>
Date: 12 Apr 1997 14:45:25 +0200
Message-ID: <tjn2r4l89m.fsf@sfs.nphil.uni-tuebingen.de>
Lines: 52
X-Mailer: Gnus v5.4.37/XEmacs 19.15

I've been trying to build 20.1-b11 with png support but always get the
error:

ld.so.1: ./temacs: fatal: libz.so.1.0.2: can't open file: errno=2

when trying to compile temacs.  If I use the --with-png=no flag when
configuring I have no problems.  Here's the Installation file (with
png):

----------------------------------------------------------------------
uname -a: SunOS filippo 5.5 Generic sun4u sparc SUNW,Ultra-1

./configure  --prefix=../pack/xemacs --error-checking=none --debug=no --with-gnu-make --extra-verbose --cflags=-g -O3


Configured for `sparc-sun-solaris2.5'.

  Where should the build process find the source code?    /export/home/griffith/xemacs-beta/xemacs-20.1-b11
  What installation prefix should install use?		  ../pack/xemacs
  What operating system and machine description files should XEmacs use?
        `s/sol2-5.h' and `m/sparc.h'
  What compiler should XEmacs be built with?              gcc -g -O3
  Should XEmacs use the GNU version of malloc?            yes
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Where do we find X Windows header files?                /usr/openwin/include
  Where do we find X Windows libraries?                   /usr/openwin/lib
  Compiling in support for XAUTH.
  Compiling in support for XPM.
  Compiling in support for X-Face headers.
  Compiling in support for GIF image conversion.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in native sound support.
  Compiling in support for GNU DBM.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.
----------------------------------------------------------------------

Here's the actual call to gcc:

----------------------------------------------------------------------
gcc -g -O3     -L/usr/openwin/lib -R/usr/openwin/lib  -L /usr/ccs/lib `./prefix-args -Xlinker  ` -R /usr/openwin/lib -L /usr/openwin/lib -R /usr/dt/lib -L /usr/dt/lib  	      	  -L. -L../lwlib     -fno-gnu-linker      -o temacs  abbrev.o alloc.o blocktype.o buffer.o bytecode.o 	callint.o callproc.o casefiddle.o casetab.o chartab.o cmdloop.o 	cmds.o console.o console-stream.o 	data.o database.o    device.o dialog.o  dired.o doc.o 	doprnt.o dynarr.o 	editfns.o elhash.o emacs.o     eval.o events.o 	event-stream.o event-unixoid.o  extents.o 	faces.o fileio.o filelock.o filemode.o floatfns.o fns.o font-lock.o 	frame.o 	general.o getloadavg.o dgif_lib.o gif_err.o gifalloc.o  glyphs.o gui.o  	hash.o 	indent.o inline.o insdel.o intl.o 	keymap.o  	lread.o lstream.o 	macros.o marker.o md5.o menubar.o  minibuf.o   	    	objects.o opaque.o 	print.o process.o profile.o pure.o 	rangetab.o   redisplay.o redisplay-output.o regex.o 	scrollbar.o  search.o signal.o sound.o sunplay.o  specifier.o!
 	strftime.o   symbols.o syntax.o sysdep.o 	toolbar.o    console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o  	undo.o unexsol2.o  	console-x.o device-x.o dialog-x.o  event-Xt.o frame-x.o glyphs-x.o gui-x.o  menubar-x.o  objects-x.o redisplay-x.o scrollbar-x.o  toolbar-x.o    xgccache.o xselect.o    	window.o  terminfo.o   lastfile.o gmalloc.o vm-limit.o ralloc.o  EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o        /usr/demo/SOUND/lib/libaudio.a         	  -llw -lXm -lXpm -lcompface -ljpeg -lpng -lz   -lXmu -lXt -lXext   -lX11       	-lsocket -lnsl -lkvm -lelf -lgen -ldl    -ltermlib  	        -lkstat 	-lgdbm        -lm    	 
----------------------------------------------------------------------

The file libz.so.1.0.2 occurs in /usr/local/lib which does not occur
as an -L flag above.  Even if I add it in it doesn't make a
difference.  Besides, lots of other files are in /usr/local/lib which
it does manage to find.

Any ideas?

