unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs on solaris 9
@ 2002-10-26 20:11 Brad Walker
  2002-10-26 21:51 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Brad Walker @ 2002-10-26 20:11 UTC (permalink / raw)


I'm having trouble compiling  emacs-21.1 on Solaris 9. It won't compile.
I get the following error message. The same thing happens when compiling
emacs-21.2

Any ideas..

Thanks.

-brad w.

<breakthru bwalker> 92 % gmake
cd lib-src; gmake all  \
  CC='cc' CFLAGS='-xO5 -xtarget=native' CPPFLAGS='' \
  LDFLAGS='-L/usr/openwin/lib' MAKE='gmake'
gmake[1]: Entering directory `/var/tmp/emacs-21.1/lib-src'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/var/tmp/emacs-21.1/lib-src'
cd src; gmake all  \
  CC='cc' CFLAGS='-xO5 -xtarget=native' CPPFLAGS='' \
  LDFLAGS='-L/usr/openwin/lib' MAKE='gmake'
gmake[1]: Entering directory `/var/tmp/emacs-21.1/src'
cd ../lwlib/; gmake -w  \
   CC='cc' CFLAGS='-xO5 -xtarget=native' MAKE='gmake' \
   "C_SWITCH_X_SITE=-I/usr/openwin/include" \
   "C_SWITCH_X_MACHINE=" \
   "C_SWITCH_X_SYSTEM=-I/usr/dt/include" \
   "C_SWITCH_SITE=" \
   "C_SWITCH_MACHINE=" \
   "C_SWITCH_SYSTEM="
gmake[2]: Entering directory `/var/tmp/emacs-21.1/lwlib'
cc -c   -I/usr/openwin/include -I/usr/dt/include   -xO5 -xtarget=native 
-DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs -I. -I../src 
-I/var/tmp/emacs-21.1/lwlib -I/var/tmp/emacs-21.1/lwlib/../src xlwmenu.c
cc: Warning: -xarch=native has been explicitly specified, or implicitly 
specified by a macro option, -xarch=native on this architecture implies 
-xarch=v8plusa which generates code that does not run on pre UltraSPARC 
processors
"/usr/include/strings.h", line 25: identifier redeclared: memmove
        current : function(pointer to void, pointer to const void, unsigned int) 
returning void
        previous: function(pointer to void, pointer to const void, unsigned int) 
returning pointer to void : "/usr/include/iso/string_iso.h", line 62
"/usr/include/strings.h", line 26: syntax error before or at: 0
"/usr/include/strings.h", line 26: warning: undefined or missing type for: 
size_t
"/usr/include/strings.h", line 26: identifier redeclared: memset
        current : function() returning void
        previous: function(pointer to void, int, unsigned int) returning pointer 
to void : "/usr/include/iso/string_iso.h", line 63
"xlwmenu.c", line 252: cannot recover from previous errors
cc: acomp failed for xlwmenu.c
gmake[2]: *** [xlwmenu.o] Error 2
gmake[2]: Leaving directory `/var/tmp/emacs-21.1/lwlib'
gmake[1]: *** [really-lwlib] Error 2
gmake[1]: Leaving directory `/var/tmp/emacs-21.1/src'
gmake: *** [src] Error 2
<breakthru bwalker> 93 % 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs on solaris 9
  2002-10-26 20:11 emacs on solaris 9 Brad Walker
@ 2002-10-26 21:51 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2002-10-26 21:51 UTC (permalink / raw)


> From: Brad Walker <bwalker@musings.com>
> Date: Sat, 26 Oct 2002 13:11:25 -0700 (PDT)
> 
> "/usr/include/strings.h", line 25: identifier redeclared: memmove
>         current : function(pointer to void, pointer to const void, unsigned int) 
> returning void
>         previous: function(pointer to void, pointer to const void, unsigned int) 

I think this is already fixed for the next version, but for now
please try this patch:

*** src/s/sol2-5.h	22 Nov 2000 10:37:31 -0000	1.13
--- src/s/sol2-5.h	17 Apr 2002 18:00:03 -0000
***************
*** 24,29 ****
--- 24,38 ----
  
  #undef USE_MMAP_FOR_BUFFERS
  
+ #ifdef HAVE_BCOPY
+ #undef bcopy
+ #undef bzero
+ #undef bcmp
+ #ifndef NOT_C_CODE
+ #include <strings.h>
+ #endif
+ #endif
+ 
  #if 0 /* A recent patch in unexelf.c should eliminate the need for this.  */
  /* Don't use the shared libraries for -lXt and -lXaw,
     to work around a linker bug in Solaris 2.5.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-26 21:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-26 20:11 emacs on solaris 9 Brad Walker
2002-10-26 21:51 ` Eli Zaretskii

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