* emacs 21.2 failed to compile
@ 2002-05-03 13:58 Peter van Hoof
2002-05-03 16:13 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Peter van Hoof @ 2002-05-03 13:58 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]
When I tried to install emacs 21.2 on my Sun Blade 100 station running Solaris
2.8, I encountered the following problem:
configure --prefix=/opt/local
gmake
.....
gmake[2]: Entering directory `/opt/temp/emacs-21.2/lwlib'
gcc -c -DUSE_LUCID -I/usr/openwin/include -I/usr/dt/include
-I/opt/sfw/include -I/opt/local/include -I/usr/X/include -g -O2
-DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs -I. -I../src
-I/opt/temp/emacs-21.2/lwlib -I/opt/temp/emacs-21.2/lwlib/../src
/opt/temp/emacs-21.2/lwlib/lwlib.c
gcc -c -I/usr/openwin/include -I/usr/dt/include -I/opt/sfw/include
-I/opt/local/include -I/usr/X/include -g -O2 -DEMACS_BITMAP_FILES
-DHAVE_CONFIG_H -Demacs -I. -I../src -I/opt/temp/emacs-21.2/lwlib
-I/opt/temp/emacs-21.2/lwlib/../src lwlib-Xlw.c
gcc -c -I/usr/openwin/include -I/usr/dt/include -I/opt/sfw/include
-I/opt/local/include -I/usr/X/include -g -O2 -DEMACS_BITMAP_FILES
-DHAVE_CONFIG_H -Demacs -I. -I../src -I/opt/temp/emacs-21.2/lwlib
-I/opt/temp/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/iso/string_iso.h:62: previous declaration of `memmove'
/usr/include/strings.h:26: parse error before numeric constant
gmake[2]: *** [xlwmenu.o] Error 1
gmake[2]: Leaving directory `/opt/temp/emacs-21.2/lwlib'
gmake[1]: *** [really-lwlib] Error 2
gmake[1]: Leaving directory `/opt/temp/emacs-21.2/src'
gmake: *** [src] Error 2
The preprocessed file xlwmenu.i.bz2 is attached. It appears that bcopy is
#define'd to memmove before the prototype of bcopy is read from
/usr/include/strings.h. This leads to the conflicting types error.
Peter van Hoof.
--
Peter van Hoof
APS Division - Physics Department
Queen's University Belfast
Belfast, BT7 1NN
Northern Ireland
Home Page: http://star.pst.qub.ac.uk/~pvh
[-- Attachment #2: xlwmenu.i.bz2 --]
[-- Type: application/octet-stream, Size: 34891 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: emacs 21.2 failed to compile
2002-05-03 13:58 emacs 21.2 failed to compile Peter van Hoof
@ 2002-05-03 16:13 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2002-05-03 16:13 UTC (permalink / raw)
Peter van Hoof wrote:
>
> 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/iso/string_iso.h:62: previous declaration of `memmove'
> /usr/include/strings.h:26: parse error before numeric constant
> gmake[2]: *** [xlwmenu.o] Error 1
> gmake[2]: Leaving directory `/opt/temp/emacs-21.2/lwlib'
> gmake[1]: *** [really-lwlib] Error 2
> gmake[1]: Leaving directory `/opt/temp/emacs-21.2/src'
> gmake: *** [src] Error 2
>
> The preprocessed file xlwmenu.i.bz2 is attached. It appears that bcopy is
> #define'd to memmove before the prototype of bcopy is read from
> /usr/include/strings.h. This leads to the conflicting types error.
Thank you for your report. This is already fixed for the next release;
please try the patch below and see if the problem goes away.
--- src/s/sol2-5.h 5 Dec 2001 18:32:15 -0000 1.13.14.1
+++ src/s/sol2-5.h 19 Apr 2002 11:36:16 -0000 1.13.14.2
@@ -29,6 +29,18 @@
#define HAVE_VFORK 1
#endif
+/* Newer versions of Solaris have bcopy etc. as functions, with
+ prototypes in strings.h. They lose if the defines from usg5-4.h
+ are visible, which happens when X headers are included. */
+#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-05-03 16:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-03 13:58 emacs 21.2 failed to compile Peter van Hoof
2002-05-03 16:13 ` Eli Zaretskii
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.