Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build Dockerfile #196

Open
AlexeyStolyarov opened this issue Aug 31, 2017 · 5 comments
Open

cannot build Dockerfile #196

AlexeyStolyarov opened this issue Aug 31, 2017 · 5 comments

Comments

@AlexeyStolyarov
Copy link

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

@AlexeyStolyarov AlexeyStolyarov changed the title cannod build Dockerfile cannot build Dockerfile Aug 31, 2017
@thorgrin
Copy link
Collaborator

thorgrin commented Sep 4, 2017

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

@AlexeyStolyarov
Copy link
Author

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

@thorgrin
Copy link
Collaborator

thorgrin commented Sep 5, 2017

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?

@AlexeyStolyarov
Copy link
Author

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

@thorgrin
Copy link
Collaborator

thorgrin commented Sep 5, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants