ipfixcol icon indicating copy to clipboard operation
ipfixcol copied to clipboard

cannot build Dockerfile

Open AlexeyStolyarov opened this issue 8 years ago • 5 comments

when compilling "base" compiller says: cannot find ssl library. adding libssl-dev and openssl into install secrion doesnt helps

AlexeyStolyarov avatar Aug 31 '17 07:08 AlexeyStolyarov

What branch are you using, master of devel? I've just fixed devel to use git submodules correctly, but it should work on master as well (no submodules there yet).

thorgrin avatar Sep 04 '17 15:09 thorgrin

I had tried both. the only solution I ve found is to use ./configure --with-distro=debian --without-openssl; in Dockerfile

AlexeyStolyarov avatar Sep 05 '17 04:09 AlexeyStolyarov

Ok, thanks for information. I just realized that I did not update the docker debian:latest since jessie. Debian Stretch uses newer openssl library and needs to be told explicitly to use libssl1.0-dev package. I've updated the Dockerfile in the devel branch, could you give it a try?

thorgrin avatar Sep 05 '17 05:09 thorgrin

`Switched to a new branch 'devel'

Making install in profiles make[4]: Entering directory '/root/ipfixcol/base/src/utils/profiles' depbase=echo Channel.o | sed 's|[^/]*$|.deps/&|;s|\.o$||';
g++ -DHAVE_CONFIG_H -I. -I../../.. -fPIC -I../../../headers -I../../../src/utils/filter -I/usr/include/libxml2 -std=gnu++11 -g -O2 -MT Channel.o -MD -MP -MF $depbase.Tpo -c -o Channel.o Channel.cpp &&
mv -f $depbase.Tpo $depbase.Po In file included from profiles_internal.h:45:0, from Channel.h:43, from Channel.cpp:42: ../../../src/utils/filter/filter_wrapper.h:45:35: fatal error: libnf-ffilter/ffilter.h: No such file or directory #include "libnf-ffilter/ffilter.h" ^ compilation terminated. make[4]: *** [Channel.o] Error 1 Makefile:427: recipe for target 'Channel.o' failed make[4]: Leaving directory '/root/ipfixcol/base/src/utils/profiles' Makefile:459: recipe for target 'install-recursive' failed make[3]: Leaving directory '/root/ipfixcol/base/src/utils' make[3]: *** [install-recursive] Error 1 Makefile:624: recipe for target 'install-recursive' failed make[2]: Leaving directory '/root/ipfixcol/base/src' make[2]: *** [install-recursive] Error 1 make[1]: *** [install] Error 2 Makefile:781: recipe for target 'install' failed make[1]: Leaving directory '/root/ipfixcol/base/src' Makefile:480: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1

checking for gawk... (cached) mawk checking whether CC supports -std=gnu++11... yes checking for /etc/protocols... yes checking for library containing siso_create... no configure: error: Required library siso missing make: *** No rule to make target 'clean'. Stop. make: *** No rule to make target 'install'. Stop. `

AlexeyStolyarov avatar Sep 05 '17 06:09 AlexeyStolyarov

You need both

RUN git checkout devel;
RUN git submodule update --init --recursive

This problem is caused by the submodule filter not being initialized properly. Can you rebuild that image from scratch?

thorgrin avatar Sep 05 '17 06:09 thorgrin