help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?


From: David Combs
Subject: Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?
Date: Mon, 26 May 2003 13:13:59 +0000 (UTC)

In article <pan.2003.05.24.14.55.20.320641@yahoo.com>,
Dave Uhring <daveuhring@yahoo.com> wrote:
....
....
>
>Perhaps you should consider changing your shell for the purpose of
>building emacs.  Re-read this:
>
> http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
>
>Create a ~/.bashrc like this:
>
>-----------------------------------------------------------------------
>PATH=/sbin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/sfw/bin:
>/usr/sfw/sbin:/usr/ccs/bin
>export PATH
>
>PS1="[\W]$ "
>
>export LDFLAGS='-L/usr/openwin/lib -R/usr/openwin/lib -L/usr/sfw/lib 
>-R/usr/sfw/lib'
>export CC=/usr/sfw/bin/gcc
>export CXX=/usr/sfw/bin/g++
>export CFLAGS='-O2 -pipe -mcpu=ultrasparc'
>-------------------------------------------------------------------------
>
>Now from your csh prompt, just execute "bash"
>
>Go back to the directory where your emacs tarball resides and 
>
>$ rm -r emacs-21.3
>$ gzip -cd emacs-21.3.tar.gz | tar xf -
>$ cd emacs-21.3
>$ ./configure --prefix=/usr/sfw   # or whereever you want it to go
>$ make
>


OK, tried both the bash and the .cshrc you sent;
HOURS spent until I finally noticed that you
had /usr/sfw/, but solaris-NINE wants it in
/opt/sfw   (I believe that's who wanted it
there, not me).

Once I fixed that, at least it could run gcc;
however, no matter which of your suggested ways
I tried (starting with the huge rm almost each
time), I always got the same error:


...
...
checking whether gettimeofday can accept two arguments... yes
checking for struct timezone... yes
checking for socket... yes
checking for netinet/in.h... yes
checking for arpa/inet.h... yes
checking whether system supports dynamic ptys... yes
checking for pid_t... yes
checking for vfork.h... no
checking for working vfork... no
checking for size_t... yes

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

  Where should the build process find the source code?    
/big5/david3/from_netcom-dir2/sources-stuff/emacs-21.3
  What operating system and machine description files should Emacs use?
        `s/sol2-5.h' and `m/sparc.h'
  What compiler should emacs be built with?               /opt/sfw/bin/gcc -O2 
-pipe -mcpu=ultrasparc
  Should Emacs use the GNU version of malloc?             yes
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          LUCID
  Where do we find X Windows header files?                /usr/openwin/include
  Where do we find X Windows libraries?                   /usr/openwin/lib
  Does Emacs use -lXaw3d?                                 yes
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  no
  Does Emacs use -ltiff?                                  no
  Does Emacs use -lungif?                                 no
  Does Emacs use -lpng?                                   no
  Does Emacs use X toolkit scroll bars?                   yes

updating cache ./config.cache
creating ./config.status
creating Makefile
sed: command garbled: s%@LDFLAGS@%-L/usr/openwin/lib -R/usr/openwin/lib 
-L/opt/sfw/lib 
creating lib-src/Makefile.c
sed: command garbled: s%@LDFLAGS@%-L/usr/openwin/lib -R/usr/openwin/lib 
-L/opt/sfw/lib 
creating oldXMenu/Makefile
sed: command garbled: s%@LDFLAGS@%-L/usr/openwin/lib -R/usr/openwin/lib 
-L/opt/sfw/lib 
creating man/Makefile
sed: command garbled: s%@LDFLAGS@%-L/usr/openwin/lib -R/usr/openwin/lib 
-L/opt/sfw/lib 
creating lwlib/Makefile
sed: command garbled: s%@LDFLAGS@%-L/usr/openwin/lib -R/usr/openwin/lib 
-L/opt/sfw/lib 
creating src/Makefile.c
sed: command garbled: s%@LDFLAGS@%-L/usr/openwin/lib -R/usr/openwin/lib 
-L/opt/sfw/lib 
creating lisp/Makefile
sed: command garbled: s%@LDFLAGS@%-L/usr/openwin/lib -R/usr/openwin/lib 
-L/opt/sfw/lib 
creating leim/Makefile
sed: command garbled: s%@LDFLAGS@%-L/usr/openwin/lib -R/usr/openwin/lib 
-L/opt/sfw/lib 
creating src/config.h
creating src/epaths.h
make: Fatal error: Don't know how to make target `epaths-force'
creating lib-src/Makefile
creating src/Makefile
[emacs-21.3]$ 





Here's the part of configure that's involved:


# Build src/Makefile from ${srcdir}/src/Makefile.c
# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
# This must be done after src/config.h is built, since we rely on that file.

# Now get this: Some word that is part of the ${srcdir} directory name
# or the ${configuration} value might, just might, happen to be an
# identifier like `sun4' or `i386' or something, and be predefined by
# the C preprocessor to some helpful value like 1, or maybe the empty
# string.  Needless to say consequent macro substitutions are less
# than conducive to the makefile finding the correct directory.
undefs="`echo $top_srcdir $configuration $canonical |
sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
    -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
`"

echo creating src/epaths.h
${MAKE-make} epaths-force

# As of 2000-11-19, newest development versions of GNU cpp preprocess
# `..' to `. .'  unless invoked with -traditional

if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
  CPPFLAGS="$CPPFLAGS -traditional"
fi

echo creating lib-src/Makefile
( cd lib-src







Here's your .cshrc, with a few new aliases,
a -s removed from the hostname-cmd (requires
being root), and a few backslashes for continuations.


#------------------------------------------------------Begin .cshrc
echo "STARTING dave uhring's .cshrc"
umask 022
alias mail Mail
set history=1000
set path=(/sbin /usr/sbin /usr/bin /usr/dt/bin /opt/sfw/bin \
/usr/openwin/bin /usr/ccs/bin)
set filec

# directory stuff: cdpath/cd/back
set cdpath=(/sys /sys/arch \
/usr/src/{bin,sbin,usr.{bin,sbin},pgrm,lib,libexec,share,contrib,local,devel,games,old,gnu,gnu/{lib,usr.bin,usr.sbin,libexec}})

setenv BLOCKSIZE 1k
setenv LDFLAGS '-L/usr/openwin/lib -R/usr/openwin/lib -L/opt/sfw/lib \
-R/opt/sfw/lib'
setenv CC gcc
setenv CFLAGS '-O2 -pipe -mcpu=ultrasparc'


alias   cd      'set old="$cwd"; chdir \!*'
alias   h       history
alias   j       jobs -l
alias   ll      ls -l
alias   l       ls -alF
alias   back    'set back="$old"; set old="$cwd"; cd "$back"; unset \
back; dirs'

alias   z       suspend
alias   x       exit
alias   pd      pushd
alias   pd2     pushd +2
alias   pd3     pushd +3
alias   pd4     pushd +4


if ($?prompt) then
#        set prompt="`hostname -s`$ "
        set prompt="`hostname `$ "  # REMOVED THE "-s" ("must be superuser")
endif


# ---- add some of my own aliases:

# I don't want these two:
unalias z   
unalias x

alias rm 'rm -i'
alias cp 'cp -i'
alias mv 'mv -i'
alias j 'jobs -l'
alias l 'ls -AFs'
alias c 'clear'
alias ls 'ls -A'


alias h 'history 10'
alias h5 'history 5'
alias h10 'history 10'
alias h20 'history 20'
alias h30 'history 30'
alias h50 'history 50'
alias h99 'history'

# to make solaris look like sunos:
alias df 'df -bk'
alias du 'du -k'


echo "ENDING dave uhring's .cshrc"
#---------------------------------------------------------End .cshrc



And here's a slightly-modified .bashrc:

# got this from From: "Dave Uhring" <daveuhring@yahoo.com>
#
# Comp.unix.solaris #442322 (2 + 3185 more)                            
# From: "Dave Uhring" <daveuhring@yahoo.com>                          
# Newsgroups: gnu.emacs.help,comp.unix.solaris                        
# [1] Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?   
# Date: Sat May 24 10:55:24 EDT 2003                                  
#
#
PATH=/sbin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/opt/sfw/bin:/opt/sfw/sbin:/usr/ccs/bin
# I (dkc) added the "me-FIRST...": has some gnu-stuff:
###PATH=/me-FIRST-in-PATH-bin:/sbin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/opt/sfw/bin:/opt/sfw/sbin:/usr/ccs/bin
#
export PATH

PS1="[\W]$ "

export LDFLAGS='-L/usr/openwin/lib -R/usr/openwin/lib -L/opt/sfw/lib 
-R/opt/sfw/lib'
export CC=/opt/sfw/bin/gcc
export CXX=/usr/sfw/bin/g++
export CFLAGS='-O2 -pipe -mcpu=ultrasparc'






Been up all night; must crash.

Any ideas?

Thanks!

David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]