ok, added that to libcitadel webcit.
please revalidate whether its working for you now.
can you please test the attached patch to configure?
you need to apply it with
~/src/citadel/libcitadel$ patch -p2 /tmp/check_memcpy.diff
and coppy the attached other file to ~/src/citadel/libcitadel/m4/localm4
then re-run bootstrap, and configure.
on my system I get:
checking "whether memcpy
hm, either that test doesn't work...
or this one:
#define _GNU_SOURCE#include "sysdep.h"#include ctype.h#include errno.h#include string.h#include unistd.h
is pulling some other stuff in...
as mentioned before, there realy has to be some other header with a define, which then in term gets
please try whether this text works.
AC_MSG_CHECKING([whether your system likes memcpy + HKEY]) AC_TRY_COMPILE([#define _GNU_SOURCE#include ctype.h#include errno.h#include string.h#include unistd.h#include string.h#include stdioh#include sys/select.h#include fcntl.h#include sys/types.h#include
Hm,
this doesn't align with the errormessage you've posted.
there should be some header with #define memcpy (a,b,c) so please grep over all files not just string.h;
maybe that header gets pulled in first, and causes the error message.
Sat Jul 21 2012 13:52:42 EDT from Lightspeed @ Uncensored
can you find out from your headers what the actual definition of memcpy is? there needs to be a define in some place.
This is all I could find.
[/usr/include]$ grep memcpy string.h void *memcpy(void *, const void *, size_t);
[12:50PM] 38 [~]$ man memcpy MEMCPY(3) BSD Library Functions Manual MEMCPY(3)NAME memcpy -- copy memory areaLIBRARY Standard C Library (libc,
you're using a compiler that doesn't support macros in macros (or a libc where memcpy is a macro...). Afair we had this problem several times so far. You need to use a more recent compiler.
the code in question is this one:
memcpy(bptr, HKEY("\\n"));where
#define HKEY(a) a, (sizeof(a) - 1)
expands to two parameters.