building emacs....

11 views
Skip to first unread message

apc!...@uunet.uu.net

unread,
Apr 6, 1993, 10:45:59 AM4/6/93
to

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

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

Undetermined origin c/o Postmaster

unread,
Apr 8, 1993, 4:41:47 AM4/8/93
to
I did this installation yesterday, and I must say it was the easiest emacs installation
I have ever performed.

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

Tim Steele

unread,
Apr 8, 1993, 7:53:31 AM4/8/93
to
In article AA16999@apc, apc!ru...@UUNET.UU.NET () writes:

> 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


Allan Bailey

unread,
Apr 8, 1993, 10:45:20 AM4/8/93
to
>From: apc!ru...@UUNET.UU.NET
>Newsgroups: comp.unix.solaris
>Subject: building emacs....
>Date: 6 Apr 93 14:45:59 GMT
>Reply-To: "Solaris 2.0 & Solaris for Intel" <SOL...@VMA.CC.ND.EDU>
>Distribution: inet

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

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.... :-\

Charles Hedrick

unread,
Apr 12, 1993, 4:12:20 PM4/12/93
to
tj...@tadtec.co.uk (Tim Steele) writes:

>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 Steele

unread,
Apr 13, 1993, 8:47:22 AM4/13/93
to
Wow. Well, I didn't know about -Xlinker -R!

Tim

Reply all
Reply to author
Forward
0 new messages