Bug #44
closedEngine fails to build on OSX/FreeBSD with --enable-unittests
Description
Engine fails to build on OSX/FreeBSD with --enable-unittests as fmemopen() doesn't exist on these platforms.
STDERR:util-debug.c: In function 'SCLogMessage':
util-debug.c:331: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'int'
util-debug.c:331: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'int'
util-daemon.c: In function 'TellWaitingParent':
util-daemon.c:34: warning: implicit declaration of function 'kill'
util-classification-config.c: In function 'SCClassConfGenerateValidDummyClassConfigFD01':
util-classification-config.c:474: warning: implicit declaration of function 'fmemopen'
util-classification-config.c:474: warning: assignment makes pointer from integer without a cast
util-classification-config.c: In function 'SCClassConfGenerateInValidDummyClassConfigFD02':
util-classification-config.c:498: warning: assignment makes pointer from integer without a cast
util-classification-config.c: In function 'SCClassConfGenerateInValidDummyClassConfigFD03':
util-classification-config.c:519: warning: assignment makes pointer from integer without a cast
util-classification-config.o(.text+0x16e): In function `SCClassConfGenerateInValidDummyClassConfigFD03':
/testresults/2010-01-04-17-25-14/FreeBSD-8.0-32-bit/oisf/src/util-classification-config.c:519: undefined reference to `fmemopen'
util-classification-config.o(.text+0x19e): In function `SCClassConfGenerateInValidDummyClassConfigFD02':
/testresults/2010-01-04-17-25-14/FreeBSD-8.0-32-bit/oisf/src/util-classification-config.c:498: undefined reference to `fmemopen'
util-classification-config.o(.text+0x1ce): In function `SCClassConfGenerateValidDummyClassConfigFD01':
/testresults/2010-01-04-17-25-14/FreeBSD-8.0-32-bit/oisf/src/util-classification-config.c:474: undefined reference to `fmemopen'
Files