Project

General

Profile

Actions

Bug #44

closed

Engine fails to build on OSX/FreeBSD with --enable-unittests

Added by Will Metcalf almost 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

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

Actions #1

Updated by Pablo Rincon almost 15 years ago

  • File 0001-Wrapper-for-fmemopen-for-osx-and-freebsd.patch added
  • % Done changed from 0 to 50

This fmemopen() wrapper should work on freebsd too. I need someone to test the attached patch.

Actions #2

Updated by Pablo Rincon almost 15 years ago

  • File deleted (0001-Wrapper-for-fmemopen-for-osx-and-freebsd.patch)
Actions #3

Updated by Pablo Rincon almost 15 years ago

  • File 0001-Wrapper-for-fmemopen-fix-for-macosx-and-freebsd.patch added

adding some changes, renaming to util-fmemopen.{c,h}

Actions #4

Updated by Pablo Rincon almost 15 years ago

  • File deleted (0001-Wrapper-for-fmemopen-fix-for-macosx-and-freebsd.patch)
Actions #5

Updated by Pablo Rincon almost 15 years ago

  • File 0001-Adding-fmemopen-wrapper-fix-compilation-issues-on-ma.patch added

Fixing naming conventions for fmemopen wrapper

Actions #6

Updated by Pablo Rincon almost 15 years ago

  • Status changed from New to Assigned
Actions #7

Updated by Pablo Rincon almost 15 years ago

  • File deleted (0001-Adding-fmemopen-wrapper-fix-compilation-issues-on-ma.patch)
Actions #8

Updated by Pablo Rincon almost 15 years ago

  • File 0001-fmemopen-wrapper-fix-osx-and-freebsd-compilation-iss.patch added

Changed fmemopen to our naming conventions. Please, use SCFmemopen().

Actions #9

Updated by Pablo Rincon almost 15 years ago

  • File deleted (0001-fmemopen-wrapper-fix-osx-and-freebsd-compilation-iss.patch)
Actions #10

Updated by Pablo Rincon almost 15 years ago

  • File 0001-fmemopen-wrapper-implementation-fix-unittest-compila.patch added

Adding some fixes

Actions #11

Updated by Pablo Rincon almost 15 years ago

  • File deleted (0001-fmemopen-wrapper-implementation-fix-unittest-compila.patch)
Actions #13

Updated by Victor Julien almost 15 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF