Problems installing flow-tools (Undefined symbols for architecture x86_64)

Andrew Williams andrewmosswilliams at gmail.com
Sun May 6 05:14:06 PDT 2012


Lion 10.7.3

gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

port version
Version: 2.0.4

Just ran selfupdate etc.

Hand patching and building netflow seems to work.  Issue appears to be
limited to just macports install.


port install flow-tools
--->  Computing dependencies for flow-tools
--->  Fetching archive for flow-tools
--->  Attempting to fetch flow-tools-0.68_1.darwin_11.x86_64.tbz2 from
http://packages.macports.org/flow-tools
--->  Fetching flow-tools
--->  Attempting to fetch flow-tools-0.68.tar.gz from
http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/flow-tools
--->  Verifying checksum(s) for flow-tools
--->  Extracting flow-tools
--->  Applying patches to flow-tools
--->  Configuring flow-tools
--->  Building flow-tools
Error: Target org.macports.build returned: shell command failed (see log
for details)
Log for flow-tools is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>


Tail of the referenced logfile

:info:build /usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o
flow-dscan -L../lib flow-dscan.o -lft -lwrap -lz -L/opt/local/lib
:info:build 2 warnings generated.
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68/src'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68'
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68"
&& /usr/bin/make -j8 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see
log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for flow-tools):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
:notice:build Log for flow-tools is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/main.log


Output from running
make -j8 -w all
in

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68


By hand.



make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68'
Making all in lib
make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68/lib'
/usr/bin/make  all-am
make[2]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68/lib'
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68/lib'
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68/lib'
Making all in src
make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68/src'
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-capture
-L../lib flow-capture.o -lft -lcrypto -lwrap -lz -L/opt/local/lib
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-send
-L../lib flow-send.o -lft -lwrap -lz -L/opt/local/lib
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-receive
-L../lib flow-receive.o -lft -lwrap -lz -L/opt/local/lib
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-gen
-L../lib flow-gen.o -lft -lwrap -lz -L/opt/local/lib
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-expire
-L../lib flow-expire.o -lft -lwrap -lz -L/opt/local/lib
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-filter
-L../lib flow-filter.o aclyacc.o acllex.o acl2.o -lft -lfl  -ly -lwrap -lz
-L/opt/local/lib
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-export
-L../lib flow_export-flow-export.o -lft   -lwrap -lz -L/opt/local/lib
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-header
-L../lib flow-header.o -lft -lwrap -lz -L/opt/local/lib
Undefined symbols for architecture x86_64:
  "_eval_match_src_as", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_dst_as", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_prot", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_prefix_len", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_prefix_len", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_tos", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_marked_tos", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_tcp_flags", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_port", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_port", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_src_if_index", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_dst_if_index", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_engine_id", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_engine_type", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_flows", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_octets", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_packets", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_xtra_packets", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_duration", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_start_time_date", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_start_time", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_end_time_date", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_end_time", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_src_tag_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_src_tag_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_dst_tag_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_dst_tag_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_nexthop_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_nexthop_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_nexthop_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_sc_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_sc_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_sc_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_exporter_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_exporter_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_exporter_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_bps", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_pps", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_random_sample", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [flow-capture] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-split
-L../lib flow-split.o -lft -lwrap -lz -L/opt/local/lib
/usr/bin/clang  -g -Wall  -L/opt/local/lib -arch x86_64 -o flow-xlate
-L../lib flow-xlate.o -lft -lcrypto -lwrap -lz -L/opt/local/lib
Undefined symbols for architecture x86_64:
  "_eval_match_src_as", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_dst_as", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_prot", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_prefix_len", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_prefix_len", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_tos", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_marked_tos", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_tcp_flags", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_port", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_port", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_src_if_index", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_dst_if_index", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_engine_id", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_engine_type", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_flows", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_octets", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_packets", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_xtra_packets", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_duration", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_start_time_date", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_start_time", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_end_time_date", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_end_time", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_src_tag_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_src_tag_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_dst_tag_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_dst_tag_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_nexthop_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_nexthop_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_nexthop_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_sc_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_sc_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_sc_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_src_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_dst_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_exporter_addr_l", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_exporter_addr_h", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_ip_exporter_addr_r", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_bps", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_pps", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
  "_eval_match_random_sample", referenced from:
      _resolve_primitives in libft.a(ftfil.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [flow-xlate] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68/src'
make: *** [all-recursive] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_flow-tools/flow-tools/work/flow-tools-0.68'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120506/d62d998f/attachment.html>


More information about the macports-users mailing list