servalproject / serval-dna

The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
http://servalproject.org
Other
171 stars 80 forks source link

Build error with HAVE_BCOPY #56

Closed rom1v closed 11 years ago

rom1v commented 11 years ago

In serval-dna (tested on version 705f414), I execute:

./configure && make

I have the following error:

CC audiodevices.c
In file included from serval.h:118:0,
                 from audiodevices.c:20:
os.h:67:28: error: conflicting types for 'bcopy'
make: *** [audiodevices.o] Error 1

The problem comes from os.h:

#ifndef HAVE_BCOPY
__SERVALDNA_OS_INLINE void bcopy(void *src, void *dst, size_t len) {
    memcpy(dst, src, len);
}
#endif                                                  

HAVE_BCOPY is not defined while bcopy exists.

Removing this piece of code works as a workaround (of course it is not the solution).

lakeman commented 11 years ago

You need to build a new configure script by running autoreconf.

rom1v commented 11 years ago

Thank you, it works ;-)