Project

General

Profile

Actions

Bug #35

closed
VJ PR

building on OS X failes: fmemopen is missing

Bug #35: building on OS X failes: fmemopen is missing

Added by Victor Julien over 16 years ago. Updated about 16 years ago.

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

Description

gcc -g -O2 -Wall -fno-strict-aliasing -DOS_DARWIN -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I /opt/local/include -DLIBPCAP_VERSION_MAJOR=1 -DUNITTESTS -DDEBUG -L/opt/local/lib -o suricata suricata.o runmodes.o packet-queue.o threads.o source-nfq.o source-pcap.o source-pcap-file.o source-pfring.o decode.o decode-ethernet.o decode-sll.o decode-gre.o decode-ppp.o decode-pppoe.o decode-ipv4.o decode-ipv6.o decode-icmpv4.o decode-icmpv6.o decode-tcp.o decode-udp.o flow.o flow-queue.o flow-hash.o flow-util.o flow-var.o flow-bit.o flow-alert-sid.o pkt-var.o host.o detect.o detect-engine-sigorder.o detect-engine.o detect-rpc.o detect-isdataat.o detect-window.o detect-ftpbounce.o detect-engine-address.o detect-engine-threshold.o detect-engine-address-ipv4.o detect-engine-address-ipv6.o detect-engine-proto.o detect-engine-port.o detect-engine-siggroup.o detect-engine-mpm.o detect-engine-iponly.o detect-parse.o detect-ack.o detect-seq.o detect-content.o detect-uricontent.o detect-flowbits.o detect-flowvar.o detect-flowint.o detect-pktvar.o detect-pcre.o detect-depth.o detect-nocase.o detect-fast-pattern.o detect-recursive.o detect-rawbytes.o detect-bytetest.o detect-bytejump.o detect-sameip.o detect-ipproto.o detect-within.o detect-distance.o detect-offset.o detect-sid.o detect-priority.o detect-rev.o detect-classtype.o detect-reference.o detect-tag.o detect-threshold.o detect-metadata.o detect-msg.o detect-id.o detect-flow.o detect-dsize.o detect-stream_size.o detect-decode-event.o detect-ipopts.o detect-flags.o detect-fragbits.o detect-gid.o detect-noalert.o detect-csum.o detect-ttl.o detect-itype.o detect-icode.o detect-http-cookie.o detect-tls-version.o detect-icmp-id.o detect-dce-iface.o detect-dce-opnum.o detect-dce-stub-data.o util-print.o util-mpm.o util-binsearch.o util-mpm-wumanber.o util-mpm-b2g.o util-mpm-b3g.o util-cidr.o util-unittest.o util-hash.o util-hashlist.o util-bloomfilter.o util-bloomfilter-counting.o util-pool.o util-time.o util-var.o util-var-name.o util-byte.o util-debug.o util-debug-filters.o util-error.o util-enum.o util-radix-tree.o util-host-os-info.o util-rule-vars.o util-fix_checksum.o util-daemon.o util-random.o util-classification-config.o tm-modules.o tm-queues.o tm-queuehandlers.o tm-threads.o tmqh-simple.o tmqh-nfq.o tmqh-packetpool.o tmqh-flow.o alert-fastlog.o alert-debuglog.o alert-unified-log.o alert-unified-alert.o alert-unified2-alert.o log-httplog.o stream.o stream-tcp.o stream-tcp-reassemble.o respond-reject.o respond-reject-libnet11.o conf.o conf-yaml-loader.o counters.o app-layer.o app-layer-detect-proto.o app-layer-parser.o app-layer-htp.o app-layer-tls.o app-layer-smb.o app-layer-smb2.o app-layer-dcerpc.o app-layer-ftp.o defrag.o -lhtp -lpcap -lnet -lpthread -lyaml -lpcre
Undefined symbols:
"_fmemopen", referenced from:
_SCClassConfGenerateInValidDummyClassConfigFD03 in util-classification-config.o
_SCClassConfGenerateInValidDummyClassConfigFD02 in util-classification-config.o
_SCClassConfGenerateValidDummyClassConfigFD01 in util-classification-config.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [suricata] Error 1


Files

VJ Updated by Victor Julien over 16 years ago Actions #1

  • Assignee set to Pablo Rincon

PR Updated by Pablo Rincon about 16 years ago Actions #2

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

This is a wrapper for osx and freebsd that implements fmemopen() based on funopen(). This fix the compilation problems and the unittests work correctly.

PR Updated by Pablo Rincon about 16 years ago Actions #3

  • Status changed from New to Assigned

PR Updated by Pablo Rincon about 16 years ago Actions #4

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

PR Updated by Pablo Rincon about 16 years ago Actions #5

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

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

PR Updated by Pablo Rincon about 16 years ago Actions #6

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

PR Updated by Pablo Rincon about 16 years ago Actions #7

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

Fixing naming conventions for fmemopen wrapper

PR Updated by Pablo Rincon about 16 years ago Actions #8

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

PR Updated by Pablo Rincon about 16 years ago Actions #9

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

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

PR Updated by Pablo Rincon about 16 years ago Actions #10

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

PR Updated by Pablo Rincon about 16 years ago Actions #11

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

Adding some fixes

PR Updated by Pablo Rincon about 16 years ago Actions #12

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

VJ Updated by Victor Julien about 16 years ago Actions #14

  • Status changed from Assigned to Closed
Actions

Also available in: PDF Atom