tcpflow icon indicating copy to clipboard operation
tcpflow copied to clipboard

Build failure on SmartOS

Open bahamat opened this issue 10 years ago • 1 comments

g++ -DHAVE_CONFIG_H -I. -I..  -I../src/be13_api -I../src/wifipcap -D_REENTRANT -pthreads -I/opt/local/include -I/usr/local/include  -DUTC_OFFSET=+0000   -g -D_REENTRANT -pthreads -g -O3 -std=c++11 -Wall -MD -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wshadow -Wwrite-strings -Wcast-align -Wredundant-decls -Wdisabled-optimization -Wfloat-equal -Wmultichar -Wmissing-noreturn -Woverloaded-virtual -Wsign-promo -funit-at-a-time -Wstrict-null-sentinel -Weffc++  -MT netviz/plot_view.o -MD -MP -MF $depbase.Tpo -c -o netviz/plot_view.o netviz/plot_view.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ./be13_api/feature_recorder.h:46:0,
                 from ./be13_api/bulk_extractor_i.h:92,
                 from ./tcpflow.h:251,
                 from netviz/plot_view.cpp:12:
./dfxml/src/hash_t.h: In static member function 'static hash__<md, SIZE> hash_generator__<md, SIZE>::hash_file(const char*)':
./dfxml/src/hash_t.h:246:68: error: 'MAP_FILE' was not declared in this scope
netviz/plot_view.cpp: In static member function 'static std::string plot_view::pretty_byte_total(uint64_t, uint8_t)':
netviz/plot_view.cpp:337:56: error: call of overloaded 'log(uint64_t&)' is ambiguous
netviz/plot_view.cpp:337:56: note: candidates are:
In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/math.h:46:0,
                 from /opt/local/gcc47/include/c++/cmath:46,
                 from /opt/local/gcc47/include/c++/random:38,
                 from /opt/local/gcc47/include/c++/bits/stl_algo.h:67,
                 from /opt/local/gcc47/include/c++/algorithm:63,
                 from ./be13_api/atomic_set_map.h:13,
                 from ./be13_api/feature_recorder.h:47,
                 from ./be13_api/bulk_extractor_i.h:92,
                 from ./tcpflow.h:251,
                 from netviz/plot_view.cpp:12:
/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/iso/math_iso.h:220:21: note: long double std::log(long double)
/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/iso/math_iso.h:188:15: note: float std::log(float)
/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/iso/math_iso.h:88:15: note: double std::log(double)
netviz/plot_view.cpp:337:68: error: call of overloaded 'log(int)' is ambiguous
netviz/plot_view.cpp:337:68: note: candidates are:
In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/math.h:46:0,
                 from /opt/local/gcc47/include/c++/cmath:46,
                 from /opt/local/gcc47/include/c++/random:38,
                 from /opt/local/gcc47/include/c++/bits/stl_algo.h:67,
                 from /opt/local/gcc47/include/c++/algorithm:63,
                 from ./be13_api/atomic_set_map.h:13,
                 from ./be13_api/feature_recorder.h:47,
                 from ./be13_api/bulk_extractor_i.h:92,
                 from ./tcpflow.h:251,
                 from netviz/plot_view.cpp:12:
/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/iso/math_iso.h:220:21: note: long double std::log(long double)
/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/iso/math_iso.h:188:15: note: float std::log(float)
/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/iso/math_iso.h:88:15: note: double std::log(double)
Makefile:687: recipe for target 'netviz/plot_view.o' failed
make[2]: *** [netviz/plot_view.o] Error 1
make[2]: Leaving directory '/zones/592c6444-67ac-ec04-db16-d4f85fe76e35/data/build/smartos-juicer/tcpflow/tcpflow/src'
Makefile:388: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/zones/592c6444-67ac-ec04-db16-d4f85fe76e35/data/build/smartos-juicer/tcpflow/tcpflow'
Makefile:326: recipe for target 'all' failed
make: *** [all] Error 2

bahamat avatar Jan 14 '15 19:01 bahamat

Looks like you will need to find the #include file that defines MAP_FILE and correct the overloading of log().

simsong avatar Jan 14 '15 19:01 simsong