unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: dkcombs@panix.com (David Combs)
Subject: Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?
Date: Mon, 26 May 2003 13:13:59 +0000 (UTC)	[thread overview]
Message-ID: <bat3un$mtu$1@reader1.panix.com> (raw)
In-Reply-To: pan.2003.05.24.14.55.20.320641@yahoo.com

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

  parent reply	other threads:[~2003-05-26 13:13 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-20 16:41 Has anyone actually built emacs 21.3 for SOLARIS (sparc)? David Combs
2003-05-20 18:10 ` Stefan Monnier
2003-05-20 19:38   ` Dave Uhring
2003-05-20 18:39 ` Dave Uhring
2003-05-21 21:47   ` David Combs
2003-05-21 22:37     ` Stefan Monnier
2003-05-21 23:15       ` Darren Dunham
2003-05-22  0:54         ` Stefan Monnier
2003-05-22 15:06           ` bbense+gnu.emacs.help.comp.unix.solaris.May.22.03
2003-05-22 15:45             ` Dave Uhring
2003-05-23  5:28               ` David Combs
2003-05-23  9:18                 ` David Combs
2003-05-23 10:45                   ` Dave Uhring
2003-05-26  0:44                     ` David Combs
2003-05-23 10:41                 ` Dave Uhring
2003-05-23  4:36             ` David Combs
2003-05-23  5:53               ` Miles Bader
2003-05-22  8:02       ` David Combs
2003-05-22 13:56         ` Stefan Monnier
2003-05-22 14:53           ` David Combs
2003-05-20 19:53 ` Bijan Soleymani
2003-05-20 21:03   ` Dave Uhring
2003-05-21  8:50     ` David Combs
2003-05-21 15:55       ` Dave Uhring
2003-05-21 22:24         ` David Combs
2003-05-21 22:49           ` Stefan Monnier
2003-05-21 23:34           ` Dave Uhring
2003-05-22  8:07             ` David Combs
2003-05-22 13:48             ` Casper H.S. Dik
2003-05-22 14:45               ` Dave Uhring
2003-05-24  7:29                 ` David Combs
2003-05-24 14:55                   ` Dave Uhring
2003-05-25 16:40                     ` Philip Brown
2003-05-26  2:46                       ` David Combs
2003-05-26 19:14                         ` Philip Brown
2003-05-26 13:13                     ` David Combs [this message]
2003-05-26 15:46                       ` Dave Uhring
2003-05-26 22:49                         ` David Combs
2003-05-26 23:44                           ` Dave Uhring
2003-05-27  0:10                             ` Dave Uhring
2003-06-03  7:13                               ` David Combs
2003-06-03  7:09                             ` David Combs
2003-06-03 13:47                               ` Dave Uhring
2003-05-27 15:42                         ` Kevin Rodgers
2003-06-03  7:19                           ` David Combs
2003-05-21 21:44     ` David Combs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='bat3un$mtu$1@reader1.panix.com' \
    --to=dkcombs@panix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).