make: Fatal error: Command failed for target `xemacs'
Curre./temacs -batch -l inc-vers
ld.so.1: ./temacs: can't find file libX11.so.4
*** Signal 9
make: Fatal error: Command failed for target `xemacs'
Currnt working directory /opt/gnu/emacs-18.59/src
*** Error code 1
make: Fatal error: Command failed for target `doall'
Current working directory /opt/gnu/emacs-18.59/src
*** Error code 1
make: Fatal error: Command failed for target `src'
Any suggestions? I'm going nuts using vi!
Thanks,
Alan
--------------------------------------------------------------------
American Power Conversion
--------------------------------------------------------------------
Alan Russo | 132 Fairgrounds Rd.
Software Engineer | West Kinsgston RI 02892
PowerChute Plus for Unix | Voice: (401) 789-5735 ext 2095
uunet!apc!russo | FAX: (401) 782-0250
--------------------------------------------------------------------
I think that the only modifications I did was to put the emacs stuff is:
/opt/emacs
and the excutables in /opt/bin
Then in src/config.h:
#include "s-sol2.h"
#include "m-sparc.h"
#define HAVE_X_WINDOWS
I did have trouble with make install, and had to move the three
executables to /opt/bin:
etc/emacsclient
etc/etags
src/emacs-18.59.1
Curtis Meyer
> I am trying to build emacs ver 18.59 on a SparcClassic running Solaris 2.1.
> I am using gcc -traditional -L/usr/openwin/lib, and my LD_LIBRARY_PATH is also set
> to /usr/openwin/lib. libX11.so.4 lives in that directory... but when the
> makefile goes to link.. it can't find it:
>
> make: Fatal error: Command failed for target `xemacs'
> Curre./temacs -batch -l inc-vers
> ld.so.1: ./temacs: can't find file libX11.so.4
> *** Signal 9
> make: Fatal error: Command failed for target `xemacs'
> Currnt working directory /opt/gnu/emacs-18.59/src
> *** Error code 1
> make: Fatal error: Command failed for target `doall'
> Current working directory /opt/gnu/emacs-18.59/src
> *** Error code 1
> make: Fatal error: Command failed for target `src'
>
> Any suggestions? I'm going nuts using vi!
>
> Thanks,
> Alan
Yup. You need to set an environment variable like this:
setenv LD_LIBRARY_PATH /usr/openwin/lib:/usr/ucblib
---
Tim Steele
Network Manager
tj...@tadtec.co.uk
Tadpole Technology plc, Science Park, Milton Road, CAMBRIDGE, CB4 4WQ
Phone: +44-223-250030 Fax: +44-223-250036
well, the way i did it was to set my LD_LIBRARY_PATH to have
/lib:/usr/lib:/usr/openwin/lib
i was kinda' hoping they would have fixed this.... :-\
>Yup. You need to set an environment variable like this:
>setenv LD_LIBRARY_PATH /usr/openwin/lib:/usr/ucblib
I think this is bad advice. I don't recommend building software that
requires a user to set LD_LIBRARY_PATH. Rather, use the -R option
when you build it, so that the program has the library path builtin.
Here's what is in our xmakefile:
LIBES = -R/usr/lib:/usr/local/X11R5/lib:/usr/ucblib:/usr/ccs/lib -L/usr/ccs/lib -L/usr/ucblib -L/usr/local/X11R5/lib -ltermcap $(LIBX) $(GNULIB_VAR) -lsocket -lnsl -lelf -lc -lucb /opt/cygnus/lib/crtn.o
Note that this works only with GCC 2.3.3. If you're using the
original Cygnus distribution, you'll need -Xlinker before the -R in
order to get gcc to pass the -R option to ld. I'm inclined to think
that /usr/lib: at the beginning of the -R option is not necessary.
If you're using openwin, of course you'd use /usr/openwin/lib instead
of /usr/local/X11R5/lib.
Tim