Hi,
there are a couple of places where we set _GNU_SOURCE in the source
files to enable glibc specific extensions. If by chance
'-D_GNU_SOURCE=1' is set on the gcc command line, e.g. by using the
CFLAGS from a pkg-config output (yes, there are examples :-), we get
'"_GNU_SOURCE" redefined' message during compilation. With the attached
patch _GNU_SOURCE is only defined in the sources if not already set.
An alternative fix would be to remove all defines of _GNU_SOURCE from
the source code and add AC_USE_SYSTEM_EXTENSIONS/AC_GNU_SOURCE to
configure.ac . I'm not sure if there is a recommended way how to handle
_GNU_SOURCE and friends.
bye,
Sumit