Project

General

Profile

Actions

Bug #35

closed

building on OS X failes: fmemopen is missing

Added by Victor Julien almost 15 years ago. Updated almost 15 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

Actions #1

Updated by Victor Julien almost 15 years ago

  • Assignee set to Pablo Rincon
Actions #2

Updated by Pablo Rincon almost 15 years ago

  • 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.

Actions #3

Updated by Pablo Rincon almost 15 years ago

  • Status changed from New to Assigned
Actions #4

Updated by Pablo Rincon almost 15 years ago

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

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 #6

Updated by Pablo Rincon almost 15 years ago

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

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 #8

Updated by Pablo Rincon almost 15 years ago

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

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 #10

Updated by Pablo Rincon almost 15 years ago

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

Updated by Pablo Rincon almost 15 years ago

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

Adding some fixes

Actions #12

Updated by Pablo Rincon almost 15 years ago

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

Updated by Victor Julien almost 15 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF