* Re: building 21.2 on sparc-sun-solaris2.7, conflicting types for memmove
@ 2002-07-31 17:47 Matthew Wilkins
2002-08-01 5:30 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilkins @ 2002-07-31 17:47 UTC (permalink / raw)
>This is a known problem, it is fixed for the next release. Please
>try this patch:
sorry that i bothered you with a known problem, still atleast my
problem was easy to solve!
thanks Eli,
matt
^ permalink raw reply [flat|nested] 4+ messages in thread
* building 21.2 on sparc-sun-solaris2.7, conflicting types for memmove
@ 2002-07-30 20:22 Matthew Wilkins
2002-07-31 10:46 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilkins @ 2002-07-30 20:22 UTC (permalink / raw)
hi,
i am trying to build emacs 21.2 on sparc-sun-solaris2.7 and get
problems with both string.h and strings.h getting included.
here are some details (i'll give you more if necessary)
to pick up my xpm, jpeg etc libraries i do:
setenv LDFLAGS "-L/cs/local/lib -R/cs/local/lib"
then:
../configure --prefix=/cs/local/generic/lib/pkg/emacs-21.2
--exec-prefix=/cs/local/lib/pkg/emacs-21.2
--x-includes=/usr/openwin/include --x-libraries=/usr/openwin/lib
--with-xpm --with-jpeg --with-tiff --with-png
the tail end of the configure gives me:
Configured for `sparc-sun-solaris2.7'.
Where should the build process find the source code? /cs/local/src/gnu/emacs/emacs-21.2
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? gcc -g -O2
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? no
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use -lungif? no
Does Emacs use -lpng? yes
Does Emacs use X toolkit scroll bars? no
now i build:
gmake
the error is:
gmake[2]: Entering directory `/cs/local/src/gnu/emacs/emacs-21.2/obj-SunOS-5.7-sparc/lwlib'
gcc -c -I/usr/openwin/include -I/usr/dt/include -g -O2
-DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs -I. -I../src
-I/cs/local/src/gnu/emacs/emacs-21.2/lwlib
-I/cs/local/src/gnu/emacs/emacs-21.2/lwlib/../src
/cs/local/src/gnu/emacs/emacs-21.2/lwlib/xlwmenu.c
In file included from /usr/openwin/include/X11/Xos.h:81,
from /cs/local/src/gnu/emacs/emacs-21.2/lwlib/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'
gmake[2]: *** [xlwmenu.o] Error 1
any help would be much appreciated
thx!
matt
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: building 21.2 on sparc-sun-solaris2.7, conflicting types for memmove
2002-07-30 20:22 Matthew Wilkins
@ 2002-07-31 10:46 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2002-07-31 10:46 UTC (permalink / raw)
Cc: bug-gnu-emacs
> From: Matthew Wilkins <mcw@cs.ubc.ca>
> Date: Tue, 30 Jul 2002 13:22:14 -0700
>
> the error is:
> gmake[2]: Entering directory `/cs/local/src/gnu/emacs/emacs-21.2/obj-SunOS-5.7-sparc/lwlib'
> gcc -c -I/usr/openwin/include -I/usr/dt/include -g -O2
> -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs -I. -I../src
> -I/cs/local/src/gnu/emacs/emacs-21.2/lwlib
> -I/cs/local/src/gnu/emacs/emacs-21.2/lwlib/../src
> /cs/local/src/gnu/emacs/emacs-21.2/lwlib/xlwmenu.c
> In file included from /usr/openwin/include/X11/Xos.h:81,
> from /cs/local/src/gnu/emacs/emacs-21.2/lwlib/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'
> gmake[2]: *** [xlwmenu.o] Error 1
This is a known problem, it is fixed for the next release. Please
try this patch:
Index: src/s/sol2-5.h
===================================================================
RCS file: /cvs/emacs/src/s/sol2-5.h,v
retrieving revision 1.13
diff -c -r1.13 sol2-5.h
*** 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] 4+ messages in thread
end of thread, other threads:[~2002-08-01 5:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-31 17:47 building 21.2 on sparc-sun-solaris2.7, conflicting types for memmove Matthew Wilkins
2002-08-01 5:30 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2002-07-30 20:22 Matthew Wilkins
2002-07-31 10:46 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).