all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* buidling emacs 21.2 on solaris 7 or later
@ 2003-01-02 23:31 John Bartelt
  2003-01-04 10:08 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: John Bartelt @ 2003-01-02 23:31 UTC (permalink / raw)
  Cc: bartelt

Hello.  I have recently run into a new problem building emacs 21.2
on solaris 7, 8, 9.  The problem may be Sun's fault, but I thought
I would run it past you first.

I had successfully built emacs 21.2 on solaris 7 twice in 2002.
In December, I tried to build it again (same computer, same version
of gcc).  But the build failed in the lwlib directory (see below).
I traced this new problem to a change in an openwin include file,
X11/Xos.h.  It was changed by Sun's patch 108376-36.  If I edit
xlwmenu.c to use the older version of this file, the build succeeds
completely.  If I use the newer patched version, the build fails
100% of the time, independent of the compiler version (cc or gcc).

These details are specific to solaris 7; but the build fails in the
same way on solaris 8 and 9.  The patch numbers may be different.

I am not sure if its possible to workaround this in the ./configure
script.  I did not find any set of switches that would make it work.
Maybe it is purely a Sun/Openwin problem.

John Bartelt

PS:  Here is the output from the failing compilation:

cc -c   -I/usr/openwin/include    -g -O  -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H 
-Demacs -I. -I../src 
-I/afs/slac.stanford.edu/package/emacs/build/emacs-21.2/lwlib 
-I/afs/slac.stanford.edu/package/emacs/build/emacs-21.2/lwlib/../src xlwmenu.c
"/usr/include/strings.h", line 25: identifier redeclared: memmove
        current : function(pointer to void, pointer to const void, uint) 
returning void
        previous: function(pointer to void, pointer to const void, uint) 
returning pointer to void : "/usr/include/string.h", line 44
"/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, uint) returning pointer to void 
: "/usr/include/string.h", line 69
"xlwmenu.c", line 252: cannot recover from previous errors
cc: acomp failed for xlwmenu.c
make: *** [xlwmenu.o] Error 2



+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
John Bartelt                             bartelt@SLAC.Stanford.edu
Stanford Linear Accelerator Center       650-926-4591
MS 97, P.O. Box 4349                     
Stanford, CA 94309                       office:  SCS room 380

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

* Re: buidling emacs 21.2 on solaris 7 or later
@ 2003-01-02 23:36 John Bartelt
  0 siblings, 0 replies; 4+ messages in thread
From: John Bartelt @ 2003-01-02 23:36 UTC (permalink / raw)
  Cc: bartelt

PPS: Maybe the problem is both 'string.h' and 'stirngs.h' are
included.

Here is the error message from gcc:

bartelt@www5 $ gcc -c   -I/usr/openwin/include    -g -O  -DEMACS_BITMAP_FILES 
-DHAVE_CONFIG_H -Demacs -I. -I../src 
-I/afs/slac.stanford.edu/package/emacs/build/emacs-21.2/lwlib 
-I/afs/slac.stanford.edu/package/emacs/build/emacs-21.2/lwlib/../src xlwmenu.c
In file included from /usr/openwin/include/X11/Xos.h:81,
                 from xlwmenu.c:32:
/usr/include/strings.h:25: conflicting types for `memmove'
/usr/include/string.h:44: previous declaration of `memmove'
/usr/include/strings.h:26: parse error before `0'
/usr/include/strings.h:26: warning: conflicting types for built-in function 
`memset'

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
John Bartelt                             bartelt@SLAC.Stanford.edu
Stanford Linear Accelerator Center       650-926-4591
MS 97, P.O. Box 4349                     
Stanford, CA 94309                       office:  SCS room 380

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

* Re: buidling emacs 21.2 on solaris 7 or later
  2003-01-02 23:31 buidling emacs 21.2 on solaris 7 or later John Bartelt
@ 2003-01-04 10:08 ` Eli Zaretskii
  2003-01-04 17:53   ` John Bartelt
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2003-01-04 10:08 UTC (permalink / raw)
  Cc: bug-gnu-emacs

> Date: Thu, 02 Jan 2003 15:31:12 -0800 (PST)
> From: John Bartelt <bartelt@SLAC.Stanford.EDU>
> 
> I had successfully built emacs 21.2 on solaris 7 twice in 2002.
> In December, I tried to build it again (same computer, same version
> of gcc).  But the build failed in the lwlib directory (see below).
> I traced this new problem to a change in an openwin include file,
> X11/Xos.h.  It was changed by Sun's patch 108376-36.  If I edit
> xlwmenu.c to use the older version of this file, the build succeeds
> completely.  If I use the newer patched version, the build fails
> 100% of the time, independent of the compiler version (cc or gcc).
> 
> These details are specific to solaris 7; but the build fails in the
> same way on solaris 8 and 9.  The patch numbers may be different.

Search the archives of this group for similar problems, there's a
patch that was posted here to fix this.

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

* Re: buidling emacs 21.2 on solaris 7 or later
  2003-01-04 10:08 ` Eli Zaretskii
@ 2003-01-04 17:53   ` John Bartelt
  0 siblings, 0 replies; 4+ messages in thread
From: John Bartelt @ 2003-01-04 17:53 UTC (permalink / raw)
  Cc: John Bartelt

Richard Stallman already pointed me at the latest build,
and I confirmed it was fixed.

thanks, John

On Sat, 4 Jan 2003, Eli Zaretskii wrote:

> > Date: Thu, 02 Jan 2003 15:31:12 -0800 (PST)
> > From: John Bartelt <bartelt@SLAC.Stanford.EDU>
> >
> > I had successfully built emacs 21.2 on solaris 7 twice in 2002.
> > In December, I tried to build it again (same computer, same version
> > of gcc).  But the build failed in the lwlib directory (see below).
> > I traced this new problem to a change in an openwin include file,
> > X11/Xos.h.  It was changed by Sun's patch 108376-36.  If I edit
> > xlwmenu.c to use the older version of this file, the build succeeds
> > completely.  If I use the newer patched version, the build fails
> > 100% of the time, independent of the compiler version (cc or gcc).
> >
> > These details are specific to solaris 7; but the build fails in the
> > same way on solaris 8 and 9.  The patch numbers may be different.
>
> Search the archives of this group for similar problems, there's a
> patch that was posted here to fix this.
>

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
John Bartelt                             bartelt@SLAC.Stanford.edu
Stanford Linear Accelerator Center       650-926-4591
MS 97, P.O. Box 4349
Stanford, CA 94309                       office:  SCS room 380

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

end of thread, other threads:[~2003-01-04 17:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-02 23:31 buidling emacs 21.2 on solaris 7 or later John Bartelt
2003-01-04 10:08 ` Eli Zaretskii
2003-01-04 17:53   ` John Bartelt
  -- strict thread matches above, loose matches on Subject: below --
2003-01-02 23:36 John Bartelt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.