From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)? Date: Mon, 26 May 2003 13:13:59 +0000 (UTC) Organization: Public Access Networks Corp. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1053954844 6852 80.91.224.249 (26 May 2003 13:14:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 26 May 2003 13:14:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon May 26 15:14:02 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19KHnT-0001ln-00 for ; Mon, 26 May 2003 15:14:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19KHpO-0005Kq-2j for gnu-help-gnu-emacs@m.gmane.org; Mon, 26 May 2003 09:15:50 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.unix.solaris Original-Lines: 269 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader1.panix.com 1053954839 23486 166.84.1.1 (26 May 2003 13:13:59 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Mon, 26 May 2003 13:13:59 +0000 (UTC) X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: dkcombs@panix.com (David Combs) Original-Xref: shelby.stanford.edu gnu.emacs.help:113697 comp.unix.solaris:443302 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10192 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10192 In article , Dave Uhring 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" # # Comp.unix.solaris #442322 (2 + 3185 more) # From: "Dave Uhring" # 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