Skip to content

cannot build Dockerfile #196

Open
Open

Description

@AlexeyStolyarov

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

Activity

  1. changed the title [-]cannod build Dockerfile[/-] [+]cannot build Dockerfile[/+] on Aug 31, 2017
  2. thorgrin commented on Sep 4, 2017

    @thorgrin
    Collaborator

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

  3. AlexeyStolyarov commented on Sep 5, 2017

    @AlexeyStolyarov
    Author

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

  4. thorgrin commented on Sep 5, 2017

    @thorgrin
    Collaborator

    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?

  5. AlexeyStolyarov commented on Sep 5, 2017

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

  6. thorgrin commented on Sep 5, 2017

    @thorgrin
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions