netopeer2 build fails due to -> undefined reference to `np2srv_hostkey_cb'

Netopeer2 build is failing due to
CMakeFiles/netopeer2-server.dir/src/main.c.o: In function `main':
main.c:(.text.startup+0x6dd): undefined reference to 'np2srv_hostkey_cb'
main.c:(.text.startup+0x6eb): undefined reference to 'np2srv_pubkey_auth_cb'
main.c:(.text.startup+0x6f9): undefined reference to 'np2srv_cert_cb'
main.c:(.text.startup+0x707): undefined reference to 'np2srv_cert_list_cb'
main.c:(.text.startup+0xacd): undefined reference to 'np2srv_idle_timeout_cb'
main.c:(.text.startup+0xb01): undefined reference to 'np2srv_endpt_ssh_cb'
Version in CMakeLists.txt is
set(NP2SRV_VERSION 1.1.42)
currently at
siq5g-vm2:/net/open_source/netconf/netopeer2/build>git log -n1
commit f973bb22ff8d07d70417cad22b1a8b99f757b4f6
Author: Vclav Kubernt<EMAIL_ADDRESS>Date:   Mon Sep 7 11:50:37 2020 +0200

    server ssh FEATURE ignore auth key file access error (#708)

    Running Netopeer2 as a normal user is a good use-case for testing.

###Steps:
cmake prints
siq5g-vm2:/net/open_source/netconf/netopeer2/build>SSH_BASE_BIN_DIR=/home/ssh/bin
siq5g-vm2:/net/open_source/netconf/netopeer2/build>NETCONF_BASE_BIN_DIR=/net/open_source/netconf/bin

siq5g-vm2:/net/open_source/netconf/netopeer2/build>cmake -DCMAKE_BUILD_TYPE=Release \
> -DCMAKE_INCLUDE_PATH="${SSH_BASE_BIN_DIR}/usr/local/include/;${NETCONF_BASE_BIN_DIR}/usr/local/include/" \
> -DCMAKE_LIBRARY_PATH="${SSH_BASE_BIN_DIR}/usr/local/lib64/;${NETCONF_BASE_BIN_DIR}/usr/local/lib64/" ..
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- Unable to learn libnetconf2 thread support, check skipped
-- Found LibNETCONF2: /net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so
-- Looking for NC_ENABLED_SSH
-- Looking for NC_ENABLED_SSH - not found
-- Looking for NC_ENABLED_TLS
-- Looking for NC_ENABLED_TLS - not found
-- Looking for vdprintf
-- Looking for vdprintf - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for get_current_dir_name
-- Looking for get_current_dir_name - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for getline
-- Looking for getline - found
-- Looking for strdupa
-- Looking for strdupa - found
-- Looking for strchrnul
-- Looking for strchrnul - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found CURL: /usr/lib64/libcurl.so (found version "7.29.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for stdatomic.h
-- Looking for stdatomic.h - found
-- Found LibSSH: /home/ssh/bin/usr/local/include (found suitable version "0.8.90", minimum required is "0.7.1")
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2k")
-- Found LibYANG: /net/open_source/netconf/bin/usr/local/lib64/libyang.so (found version "1.9.9")
-- Found Sysrepo: /net/open_source/netconf/bin/usr/local/lib64/libsysrepo.so
-- Missing tools (devscripts, debhelper package) for building DEB package.
-- To build local RPM package, use "build-rpm" target.
-- Looking for eaccess
-- Looking for eaccess - found
-- Looking for mkstemps
-- Looking for mkstemps - found
-- roff2html not found, html version of man pages cannot be generated!
-- Configuring done
-- Generating done
-- Build files have been written to: /net/open_source/netconf/netopeer2/build
siq5g-vm2:/net/open_source/netconf/netopeer2/build>

make prints
siq5g-vm2:/net/open_source/netconf/netopeer2/build>
siq5g-vm2:/net/open_source/netconf/netopeer2/build>make
Scanning dependencies of target compat
[  6%] Building C object CMakeFiles/compat.dir/compat/compat.c.o
[  6%] Built target compat
Scanning dependencies of target serverobj
[ 13%] Building C object CMakeFiles/serverobj.dir/src/common.c.o
[ 20%] Building C object CMakeFiles/serverobj.dir/src/netconf.c.o
/net/open_source/netconf/netopeer2/src/netconf.c: In function \u2018np2srv_rpc_validate_cb\u2019:
/net/open_source/netconf/netopeer2/src/netconf.c:635:9: warning: \u2018ds\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
         sr_session_switch_ds(session, ds);
         ^
[ 26%] Building C object CMakeFiles/serverobj.dir/src/netconf_monitoring.c.o
[ 33%] Building C object CMakeFiles/serverobj.dir/src/netconf_acm.c.o
[ 40%] Building C object CMakeFiles/serverobj.dir/src/netconf_nmda.c.o
[ 46%] Building C object CMakeFiles/serverobj.dir/src/log.c.o
[ 46%] Built target serverobj
Scanning dependencies of target netopeer2-server
[ 53%] Building C object CMakeFiles/netopeer2-server.dir/src/main.c.o
[ 60%] Linking C executable netopeer2-server
CMakeFiles/netopeer2-server.dir/src/main.c.o: In function `main':
main.c:(.text.startup+0x6dd): undefined reference to `np2srv_hostkey_cb'
main.c:(.text.startup+0x6eb): undefined reference to `np2srv_pubkey_auth_cb'
main.c:(.text.startup+0x6f9): undefined reference to `np2srv_cert_cb'
main.c:(.text.startup+0x707): undefined reference to `np2srv_cert_list_cb'
main.c:(.text.startup+0xacd): undefined reference to `np2srv_idle_timeout_cb'
main.c:(.text.startup+0xb01): undefined reference to `np2srv_endpt_ssh_cb'
main.c:(.text.startup+0xb34): undefined reference to `np2srv_endpt_tcp_params_cb'
main.c:(.text.startup+0xb6b): undefined reference to `np2srv_endpt_ssh_hostkey_cb'
main.c:(.text.startup+0xb99): undefined reference to `np2srv_endpt_ssh_auth_methods_cb'
main.c:(.text.startup+0xbcf): undefined reference to `np2srv_endpt_ssh_auth_users_oper_cb'
main.c:(.text.startup+0xc02): undefined reference to `np2srv_endpt_tls_cb'
main.c:(.text.startup+0xc3b): undefined reference to `np2srv_endpt_tcp_params_cb'
main.c:(.text.startup+0xc68): undefined reference to `np2srv_endpt_tls_servercert_cb'
main.c:(.text.startup+0xc9a): undefined reference to `np2srv_endpt_tls_client_auth_cb'
main.c:(.text.startup+0xcce): undefined reference to `np2srv_endpt_tls_client_ctn_cb'
main.c:(.text.startup+0xd00): undefined reference to `np2srv_ch_client_cb'
main.c:(.text.startup+0xd34): undefined reference to `np2srv_ch_connection_type_cb'
main.c:(.text.startup+0xd6d): undefined reference to `np2srv_ch_reconnect_strategy_cb'
main.c:(.text.startup+0xd9a): undefined reference to `np2srv_ch_client_endpt_ssh_cb'
main.c:(.text.startup+0xdcc): undefined reference to `np2srv_ch_client_endpt_tcp_params_cb'
main.c:(.text.startup+0xe00): undefined reference to `np2srv_ch_endpt_ssh_hostkey_cb'
main.c:(.text.startup+0xe32): undefined reference to `np2srv_ch_endpt_ssh_auth_methods_cb'
main.c:(.text.startup+0xe66): undefined reference to `np2srv_ch_client_endpt_tls_cb'
main.c:(.text.startup+0xe9f): undefined reference to `np2srv_ch_client_endpt_tcp_params_cb'
main.c:(.text.startup+0xecc): undefined reference to `np2srv_ch_client_endpt_tls_servercert_cb'
main.c:(.text.startup+0xefe): undefined reference to `np2srv_ch_client_endpt_tls_client_auth_cb'
main.c:(.text.startup+0xf32): undefined reference to `np2srv_ch_client_endpt_tls_client_ctn_cb'
collect2: error: ld returned 1 exit status
make[2]: *** [netopeer2-server] Error 1
make[1]: *** [CMakeFiles/netopeer2-server.dir/all] Error 2
make: *** [all] Error 2

Hi,
there is likely some incompatibility between the libnetconf2 headers found during cmake (they have no SSH or TLS support) and the ones used when compiling (they have support for both). If you sort that out, it should work fine.

Hi Michal,
I thought cmake  will only find dependent libs,  and than generate Makefile such that at compile time it finds the same headers generated by cmake.
Am I missing something?
Thanks
Govind.

Hi Michal,
Okay, I think what you were pointing to was
-- Unable to learn libnetconf2 thread support, check skipped
-- Found LibNETCONF2: /net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so
-- Looking for NC_ENABLED_SSH
-- Looking for NC_ENABLED_SSH - not found
-- Looking for NC_ENABLED_TLS
-- Looking for NC_ENABLED_TLS - not found

Do I need to give some flag option for netopeer2 while doing cmake?
like we do for libnetconf2.
I assumed since I built libnetconf2 with -DENABLE_TLS=ON -DENABLE_SSH=ON netopeer cmake will detect that by its own.
For better understanding, please find below printed for cmake , make , make install for each repo.
libyang
siq5g:/net/open_source/netconf>cd ${NETCONF_BASE_DIR}/libyang
siq5g:/net/open_source/netconf/libyang>mkdir -p build && cd build
siq5g:/net/open_source/netconf/libyang/build>cmake -DCMAKE_BUILD_TYPE=Release -DGEN_LANGUAGE_BINDINGS=ON -DGEN_PYTHON_BINDINGS=OFF ..
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found FLEX: /usr/bin/flex (found version "2.5.37")
-- Found BISON: /usr/bin/bison (found version "3.0.4")
-- Looking for vdprintf
-- Looking for vdprintf - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for get_current_dir_name
-- Looking for get_current_dir_name - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for getline
-- Looking for getline - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PCRE: /usr/lib64/libpcre.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
CMake Warning at CMakeLists.txt:262 (message):
  pkg-config will not detect the new package after installation, adjust
  PKG_CONFIG_PATH using "export
  PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib64/pkgconfig".

-- Found Doxygen: /usr/bin/doxygen (found version "1.8.5")
CMake Warning (dev) at CMakeLists.txt:275 (message):
  Doxygen: to generate UML diagrams please install graphviz
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Missing tools (devscripts, debhelper package) for building DEB package.
-- To build local RPM package, use "build-rpm" target.
-- The CXX compiler identification is GNU 4.9.2
-- Check for working CXX compiler: /opt/rh/devtoolset-3/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-3/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SWIG: /usr/local/bin/swig (found suitable version "3.0.12", minimum required is "3.0.12")
-- Configuring done
-- Generating done
-- Build files have been written to: /net/open_source/netconf/libyang/build
siq5g:/net/open_source/netconf/libyang/build>make && make DESTDIR=${NETCONF_BASE_BIN_DIR} install
make: Warning: File `Makefile' has modification time 861 s in the future
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 864 s in the future
make[2]: Warning: File `CMakeFiles/yangobj_tests.dir/flags.make' has modification time 860 s in the future
Scanning dependencies of target yangobj_tests
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yangobj_tests.dir/flags.make' has modification time 860 s in the future
[  1%] Building C object CMakeFiles/yangobj_tests.dir/src/common.c.o
[  2%] Building C object CMakeFiles/yangobj_tests.dir/src/context.c.o
[  3%] Building C object CMakeFiles/yangobj_tests.dir/src/log.c.o
[  4%] Building C object CMakeFiles/yangobj_tests.dir/src/hash_table.c.o
[  5%] Building C object CMakeFiles/yangobj_tests.dir/src/resolve.c.o
/net/open_source/netconf/libyang/src/resolve.c: In function \u2018resolve_identref\u2019:
/net/open_source/netconf/libyang/src/resolve.c:6013:24: warning: \u2018der\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
     for (i = 0; i < cur->iffeature_size; i++) {
                        ^
[  6%] Building C object CMakeFiles/yangobj_tests.dir/src/validation.c.o
[  7%] Building C object CMakeFiles/yangobj_tests.dir/src/xml.c.o
[  8%] Building C object CMakeFiles/yangobj_tests.dir/src/parser.c.o
[  9%] Building C object CMakeFiles/yangobj_tests.dir/src/parser_yin.c.o
[ 10%] Building C object CMakeFiles/yangobj_tests.dir/src/parser_xml.c.o
[ 11%] Building C object CMakeFiles/yangobj_tests.dir/src/parser_json.c.o
[ 12%] Building C object CMakeFiles/yangobj_tests.dir/src/parser_lyb.c.o
[ 13%] Building C object CMakeFiles/yangobj_tests.dir/src/parser_yang_bis.c.o
[ 15%] Building C object CMakeFiles/yangobj_tests.dir/src/parser_yang_lex.c.o
[ 16%] Building C object CMakeFiles/yangobj_tests.dir/src/parser_yang.c.o
[ 17%] Building C object CMakeFiles/yangobj_tests.dir/src/tree_schema.c.o
[ 18%] Building C object CMakeFiles/yangobj_tests.dir/src/tree_data.c.o
[ 19%] Building C object CMakeFiles/yangobj_tests.dir/src/plugins.c.o
[ 20%] Building C object CMakeFiles/yangobj_tests.dir/src/printer.c.o
[ 21%] Building C object CMakeFiles/yangobj_tests.dir/src/xpath.c.o
/net/open_source/netconf/libyang/src/xpath.c: In function \u2018cast_string_recursive\u2019:
/net/open_source/netconf/libyang/src/xpath.c:468:13: warning: \u2018ptr\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
             strcpy(*str + (*used - 1), line);
             ^
[ 22%] Building C object CMakeFiles/yangobj_tests.dir/src/printer_yang.c.o
[ 23%] Building C object CMakeFiles/yangobj_tests.dir/src/printer_yin.c.o
[ 24%] Building C object CMakeFiles/yangobj_tests.dir/src/printer_json_schema.c.o
[ 25%] Building C object CMakeFiles/yangobj_tests.dir/src/printer_xml.c.o
[ 26%] Building C object CMakeFiles/yangobj_tests.dir/src/printer_tree.c.o
[ 27%] Building C object CMakeFiles/yangobj_tests.dir/src/printer_info.c.o
[ 29%] Building C object CMakeFiles/yangobj_tests.dir/src/printer_json.c.o
[ 30%] Building C object CMakeFiles/yangobj_tests.dir/src/printer_lyb.c.o
[ 31%] Building C object CMakeFiles/yangobj_tests.dir/src/yang_types.c.o
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 31%] Built target yangobj_tests
make[2]: Warning: File `CMakeFiles/yangobj.dir/flags.make' has modification time 835 s in the future
Scanning dependencies of target yangobj
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yangobj.dir/flags.make' has modification time 835 s in the future
[ 32%] Building C object CMakeFiles/yangobj.dir/src/common.c.o
[ 33%] Building C object CMakeFiles/yangobj.dir/src/context.c.o
[ 34%] Building C object CMakeFiles/yangobj.dir/src/log.c.o
[ 35%] Building C object CMakeFiles/yangobj.dir/src/hash_table.c.o
[ 36%] Building C object CMakeFiles/yangobj.dir/src/resolve.c.o
/net/open_source/netconf/libyang/src/resolve.c: In function \u2018resolve_identref\u2019:
/net/open_source/netconf/libyang/src/resolve.c:6013:24: warning: \u2018der\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
     for (i = 0; i < cur->iffeature_size; i++) {
                        ^
[ 37%] Building C object CMakeFiles/yangobj.dir/src/validation.c.o
[ 38%] Building C object CMakeFiles/yangobj.dir/src/xml.c.o
[ 39%] Building C object CMakeFiles/yangobj.dir/src/parser.c.o
[ 40%] Building C object CMakeFiles/yangobj.dir/src/parser_yin.c.o
[ 41%] Building C object CMakeFiles/yangobj.dir/src/parser_xml.c.o
[ 43%] Building C object CMakeFiles/yangobj.dir/src/parser_json.c.o
[ 44%] Building C object CMakeFiles/yangobj.dir/src/parser_lyb.c.o
[ 45%] Building C object CMakeFiles/yangobj.dir/src/parser_yang_bis.c.o
[ 46%] Building C object CMakeFiles/yangobj.dir/src/parser_yang_lex.c.o
[ 47%] Building C object CMakeFiles/yangobj.dir/src/parser_yang.c.o
[ 48%] Building C object CMakeFiles/yangobj.dir/src/tree_schema.c.o
[ 49%] Building C object CMakeFiles/yangobj.dir/src/tree_data.c.o
[ 50%] Building C object CMakeFiles/yangobj.dir/src/plugins.c.o
[ 51%] Building C object CMakeFiles/yangobj.dir/src/printer.c.o
[ 52%] Building C object CMakeFiles/yangobj.dir/src/xpath.c.o
/net/open_source/netconf/libyang/src/xpath.c: In function \u2018cast_string_recursive\u2019:
/net/open_source/netconf/libyang/src/xpath.c:468:13: warning: \u2018ptr\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
             strcpy(*str + (*used - 1), line);
             ^
[ 53%] Building C object CMakeFiles/yangobj.dir/src/printer_yang.c.o
[ 54%] Building C object CMakeFiles/yangobj.dir/src/printer_yin.c.o
[ 55%] Building C object CMakeFiles/yangobj.dir/src/printer_json_schema.c.o
[ 56%] Building C object CMakeFiles/yangobj.dir/src/printer_xml.c.o
[ 58%] Building C object CMakeFiles/yangobj.dir/src/printer_tree.c.o
[ 59%] Building C object CMakeFiles/yangobj.dir/src/printer_info.c.o
[ 60%] Building C object CMakeFiles/yangobj.dir/src/printer_json.c.o
[ 61%] Building C object CMakeFiles/yangobj.dir/src/printer_lyb.c.o
[ 62%] Building C object CMakeFiles/yangobj.dir/src/yang_types.c.o
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 62%] Built target yangobj
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 810 s in the future
Scanning dependencies of target compat
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 809 s in the future
[ 63%] Building C object CMakeFiles/compat.dir/compat/compat.c.o
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 63%] Built target compat
make[2]: Warning: File `CMakeFiles/yang.dir/flags.make' has modification time 809 s in the future
Scanning dependencies of target yang
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yang.dir/flags.make' has modification time 809 s in the future
[ 64%] Linking C shared library libyang.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 64%] Built target yang
make[2]: Warning: File `CMakeFiles/yanglint.dir/flags.make' has modification time 809 s in the future
Scanning dependencies of target yanglint
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yanglint.dir/flags.make' has modification time 809 s in the future
[ 65%] Building C object CMakeFiles/yanglint.dir/tools/lint/main.c.o
[ 66%] Building C object CMakeFiles/yanglint.dir/tools/lint/main_ni.c.o
[ 67%] Building C object CMakeFiles/yanglint.dir/tools/lint/commands.c.o
[ 68%] Building C object CMakeFiles/yanglint.dir/tools/lint/completion.c.o
[ 69%] Building C object CMakeFiles/yanglint.dir/tools/lint/configuration.c.o
[ 70%] Building C object CMakeFiles/yanglint.dir/linenoise/linenoise.c.o
[ 72%] Linking C executable yanglint
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 72%] Built target yanglint
make[2]: Warning: File `CMakeFiles/yangre.dir/flags.make' has modification time 806 s in the future
Scanning dependencies of target yangre
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yangre.dir/flags.make' has modification time 806 s in the future
[ 73%] Building C object CMakeFiles/yangre.dir/tools/re/main.c.o
[ 74%] Linking C executable yangre
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 74%] Built target yangre
make[2]: Warning: File `CMakeFiles/yang2yin.dir/flags.make' has modification time 806 s in the future
Scanning dependencies of target yang2yin
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yang2yin.dir/flags.make' has modification time 806 s in the future
[ 75%] Building C object CMakeFiles/yang2yin.dir/tools/yang2yin/main.c.o
[ 76%] Linking C executable yang2yin
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 76%] Built target yang2yin
make[2]: Warning: File `src/extensions/CMakeFiles/yangdata.dir/flags.make' has modification time 805 s in the future
Scanning dependencies of target yangdata
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/extensions/CMakeFiles/yangdata.dir/flags.make' has modification time 805 s in the future
[ 77%] Building C object src/extensions/CMakeFiles/yangdata.dir/yangdata.c.o
[ 78%] Linking C shared library yangdata.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 78%] Built target yangdata
make[2]: Warning: File `src/extensions/CMakeFiles/metadata.dir/flags.make' has modification time 804 s in the future
Scanning dependencies of target metadata
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/extensions/CMakeFiles/metadata.dir/flags.make' has modification time 804 s in the future
[ 79%] Building C object src/extensions/CMakeFiles/metadata.dir/metadata.c.o
[ 80%] Linking C shared library metadata.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 80%] Built target metadata
make[2]: Warning: File `src/extensions/CMakeFiles/nacm.dir/flags.make' has modification time 804 s in the future
Scanning dependencies of target nacm
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/extensions/CMakeFiles/nacm.dir/flags.make' has modification time 804 s in the future
[ 81%] Building C object src/extensions/CMakeFiles/nacm.dir/nacm.c.o
[ 82%] Linking C shared library nacm.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 82%] Built target nacm
make[2]: Warning: File `src/user_types/CMakeFiles/user_inet_types.dir/flags.make' has modification time 804 s in the future
Scanning dependencies of target user_inet_types
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/user_types/CMakeFiles/user_inet_types.dir/flags.make' has modification time 803 s in the future
[ 83%] Building C object src/user_types/CMakeFiles/user_inet_types.dir/user_inet_types.c.o
[ 84%] Linking C shared library user_inet_types.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 84%] Built target user_inet_types
make[2]: Warning: File `src/user_types/CMakeFiles/user_yang_types.dir/flags.make' has modification time 803 s in the future
Scanning dependencies of target user_yang_types
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/user_types/CMakeFiles/user_yang_types.dir/flags.make' has modification time 803 s in the future
[ 86%] Building C object src/user_types/CMakeFiles/user_yang_types.dir/user_yang_types.c.o
[ 87%] Linking C shared library user_yang_types.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 87%] Built target user_yang_types
make[2]: Warning: File `swig/CMakeFiles/libyang-cpp.dir/flags.make' has modification time 803 s in the future
Scanning dependencies of target libyang-cpp
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `swig/CMakeFiles/libyang-cpp.dir/flags.make' has modification time 802 s in the future
[ 88%] Building CXX object swig/CMakeFiles/libyang-cpp.dir/cpp/src/Xml.cpp.o
[ 89%] Building CXX object swig/CMakeFiles/libyang-cpp.dir/cpp/src/Libyang.cpp.o
[ 90%] Building CXX object swig/CMakeFiles/libyang-cpp.dir/cpp/src/Tree_Data.cpp.o
[ 91%] Building CXX object swig/CMakeFiles/libyang-cpp.dir/cpp/src/Tree_Schema.cpp.o
[ 92%] Building CXX object swig/CMakeFiles/libyang-cpp.dir/cpp/src/Internal.cpp.o
[ 93%] Linking CXX shared library libyang-cpp.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 93%] Built target libyang-cpp
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/xpath.dir/flags.make' has modification time 791 s in the future
Scanning dependencies of target xpath
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/xpath.dir/flags.make' has modification time 791 s in the future
[ 94%] Building CXX object swig/cpp/examples/CMakeFiles/xpath.dir/xpath.cpp.o
[ 95%] Linking CXX executable xpath
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 95%] Built target xpath
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/context.dir/flags.make' has modification time 790 s in the future
Scanning dependencies of target context
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/context.dir/flags.make' has modification time 790 s in the future
[ 96%] Building CXX object swig/cpp/examples/CMakeFiles/context.dir/context.cpp.o
[ 97%] Linking CXX executable context
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 97%] Built target context
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/process_tree.dir/flags.make' has modification time 789 s in the future
Scanning dependencies of target process_tree
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/process_tree.dir/flags.make' has modification time 789 s in the future
[ 98%] Building CXX object swig/cpp/examples/CMakeFiles/process_tree.dir/process_tree.cpp.o
[100%] Linking CXX executable process_tree
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[100%] Built target process_tree
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make: warning:  Clock skew detected.  Your build may be incomplete.
make: Warning: File `Makefile' has modification time 786 s in the future
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 788 s in the future
make[2]: Warning: File `CMakeFiles/yangobj_tests.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yangobj_tests.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 31%] Built target yangobj_tests
make[2]: Warning: File `CMakeFiles/yangobj.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yangobj.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 62%] Built target yangobj
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 63%] Built target compat
make[2]: Warning: File `CMakeFiles/yang.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yang.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 64%] Built target yang
make[2]: Warning: File `CMakeFiles/yanglint.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yanglint.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 72%] Built target yanglint
make[2]: Warning: File `CMakeFiles/yangre.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yangre.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 74%] Built target yangre
make[2]: Warning: File `CMakeFiles/yang2yin.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/yang2yin.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 76%] Built target yang2yin
make[2]: Warning: File `src/extensions/CMakeFiles/yangdata.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/extensions/CMakeFiles/yangdata.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 78%] Built target yangdata
make[2]: Warning: File `src/extensions/CMakeFiles/metadata.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/extensions/CMakeFiles/metadata.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 80%] Built target metadata
make[2]: Warning: File `src/extensions/CMakeFiles/nacm.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/extensions/CMakeFiles/nacm.dir/flags.make' has modification time 784 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 82%] Built target nacm
make[2]: Warning: File `src/user_types/CMakeFiles/user_inet_types.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/user_types/CMakeFiles/user_inet_types.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 84%] Built target user_inet_types
make[2]: Warning: File `src/user_types/CMakeFiles/user_yang_types.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `src/user_types/CMakeFiles/user_yang_types.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 87%] Built target user_yang_types
make[2]: Warning: File `swig/CMakeFiles/libyang-cpp.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `swig/CMakeFiles/libyang-cpp.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 93%] Built target libyang-cpp
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/xpath.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/xpath.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 95%] Built target xpath
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/context.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/context.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 97%] Built target context
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/process_tree.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `swig/cpp/examples/CMakeFiles/process_tree.dir/flags.make' has modification time 785 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[100%] Built target process_tree
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 786 s in the future
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
Install the project...
-- Install configuration: "Release"
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang.so.1.9.9
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang.so.1
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang.so
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/tree_schema.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/tree_data.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/extensions.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/user_types.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/xml.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/dict.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/libyang.h
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/pkgconfig/libyang.pc
-- Installing: /net/open_source/netconf/bin/usr/local/bin/yanglint
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/bin/yanglint" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/share/man/man1/yanglint.1
-- Installing: /net/open_source/netconf/bin/usr/local/bin/yangre
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/bin/yangre" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/share/man/man1/yangre.1
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang1/extensions/nacm.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libyang1/extensions/nacm.so" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang1/extensions/metadata.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libyang1/extensions/metadata.so" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang1/extensions/yangdata.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libyang1/extensions/yangdata.so" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang1/user_types/user_yang_types.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libyang1/user_types/user_yang_types.so" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang1/user_types/user_inet_types.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libyang1/user_types/user_inet_types.so" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/pkgconfig/libyang-cpp.pc
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang-cpp.so.1.9.9
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang-cpp.so.1
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libyang-cpp.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libyang-cpp.so.1.9.9" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/Xml.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/Libyang.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/Tree_Data.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/Tree_Schema.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/libyang/Internal.hpp
make: warning:  Clock skew detected.  Your build may be incomplete.
siq5g:/net/open_source/netconf/libyang/build>

libnetconf2

siq5g:/net/open_source/netconf/libyang/build>
siq5g:/net/open_source/netconf/libyang/build>cd ${NETCONF_BASE_DIR}/libnetconf2
siq5g:/net/open_source/netconf/libnetconf2>mkdir -p build && cd build
siq5g:/net/open_source/netconf/libnetconf2/build>
siq5g:/net/open_source/netconf/libnetconf2/build>pwd
/net/open_source/netconf/libnetconf2/build
siq5g:/net/open_source/netconf/libnetconf2/build>cmake -DENABLE_TLS=ON -DENABLE_SSH=ON -DCMAKE_BUILD_TYPE=Release \
> -DCMAKE_INCLUDE_PATH="${SSH_BASE_BIN_DIR}/usr/local/include/;${NETCONF_BASE_BIN_DIR}/usr/local/include/" \
> -DCMAKE_LIBRARY_PATH="${SSH_BASE_BIN_DIR}/usr/local/lib64/;${NETCONF_BASE_BIN_DIR}/usr/local/lib64/" ..
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for vdprintf
-- Looking for vdprintf - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for get_current_dir_name
-- Looking for get_current_dir_name - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for getline
-- Looking for getline - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for stdatomic.h
-- Looking for stdatomic.h - found
-- Looking for pthread_mutex_timedlock
-- Looking for pthread_mutex_timedlock - found
-- Looking for pthread_rwlockattr_setkind_np
-- Looking for pthread_rwlockattr_setkind_np - found
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2k")
-- OPENSSL found, required for TLS
-- Found LibSSH: /home/gy1005/5g-code/netconf/bin/usr/local/include (found suitable version "0.8.90", minimum required is "0.7.1")
-- Found LibYANG: /net/open_source/netconf/bin/usr/local/lib64/libyang.so (found version "1.9.9")
-- Looking for shadow.h
-- Looking for shadow.h - found
-- Looking for crypt.h
-- Looking for crypt.h - found
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.5")
-- Missing tools (devscripts, debhelper package) for building DEB package.
-- To build local RPM package, use "build-rpm" target.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /net/open_source/netconf/libnetconf2/build
siq5g:/net/open_source/netconf/libnetconf2/build>make && make DESTDIR=${NETCONF_BASE_BIN_DIR} install
make: Warning: File `Makefile' has modification time 863 s in the future
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 864 s in the future
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 863 s in the future
Scanning dependencies of target compat
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 863 s in the future
[  7%] Building C object CMakeFiles/compat.dir/compat/compat.c.o
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[  7%] Built target compat
make[2]: Warning: File `CMakeFiles/netconf2.dir/flags.make' has modification time 863 s in the future
Scanning dependencies of target netconf2
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/netconf2.dir/flags.make' has modification time 863 s in the future
[ 14%] Building C object CMakeFiles/netconf2.dir/src/io.c.o
[ 21%] Building C object CMakeFiles/netconf2.dir/src/log.c.o
[ 28%] Building C object CMakeFiles/netconf2.dir/src/messages_client.c.o
[ 35%] Building C object CMakeFiles/netconf2.dir/src/messages_server.c.o
[ 42%] Building C object CMakeFiles/netconf2.dir/src/session.c.o
[ 50%] Building C object CMakeFiles/netconf2.dir/src/session_client.c.o
/net/open_source/netconf/libnetconf2/src/session_client.c:70:5: warning: missing initializer for field \u2018ch_binds\u2019 of \u2018struct nc_client_opts\u2019 [-Wmissing-field-initializers]
     .ssh_opts = {
     ^
In file included from /net/open_source/netconf/libnetconf2/src/libnetconf.h:22:0,
                 from /net/open_source/netconf/libnetconf2/src/session_client.c:43:
/net/open_source/netconf/libnetconf2/src/session_p.h:152:8: note: \u2018ch_binds\u2019 declared here
     } *ch_binds;
        ^
/net/open_source/netconf/libnetconf2/src/session_client.c: In function \u2018nc_recv_notif\u2019:
/net/open_source/netconf/libnetconf2/src/session_client.c:2179:9: warning: \u2018xml\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
         lyxml_free(session->ctx, xml);
         ^
[ 57%] Building C object CMakeFiles/netconf2.dir/src/session_server.c.o
/net/open_source/netconf/libnetconf2/src/session_server.c: In function \u2018nc_accept\u2019:
/net/open_source/netconf/libnetconf2/src/session_server.c:1757:8: warning: \u2018uid\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
     pw = getpwuid(uid);
        ^
/net/open_source/netconf/libnetconf2/src/session_server.c:1750:11: note: \u2018uid\u2019 was declared here
     uid_t uid;
           ^
[ 64%] Building C object CMakeFiles/netconf2.dir/src/time.c.o
[ 71%] Building C object CMakeFiles/netconf2.dir/src/session_client_ssh.c.o
/net/open_source/netconf/libnetconf2/src/session_client_ssh.c: In function \u2018sshauth_hostkey_check\u2019:
/net/open_source/netconf/libnetconf2/src/session_client_ssh.c:292:5: warning: \u2018ssh_is_server_known\u2019 is deprecated (declared at /home/gy1005/5g-code/netconf/bin/usr/local/include/libssh/libssh.h:550) [-Wdeprecated-declarations]
     state = ssh_is_server_known(session);
     ^
/net/open_source/netconf/libnetconf2/src/session_client_ssh.c:428:17: warning: \u2018ssh_write_knownhost\u2019 is deprecated (declared at /home/gy1005/5g-code/netconf/bin/usr/local/include/libssh/libssh.h:548) [-Wdeprecated-declarations]
                 ret = ssh_write_knownhost(session);
                 ^
[ 78%] Building C object CMakeFiles/netconf2.dir/src/session_server_ssh.c.o
[ 85%] Building C object CMakeFiles/netconf2.dir/src/session_client_tls.c.o
[ 92%] Building C object CMakeFiles/netconf2.dir/src/session_server_tls.c.o
[100%] Linking C shared library libnetconf2.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[100%] Built target netconf2
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make: warning:  Clock skew detected.  Your build may be incomplete.
make: Warning: File `Makefile' has modification time 855 s in the future
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 856 s in the future
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 855 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 855 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[  7%] Built target compat
make[2]: Warning: File `CMakeFiles/netconf2.dir/flags.make' has modification time 855 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/netconf2.dir/flags.make' has modification time 855 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[100%] Built target netconf2
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 855 s in the future
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
Install the project...
-- Install configuration: "Release"
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so.1.3.10
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so.1
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so.1.3.10" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/include/nc_client.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/nc_server.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/config.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/log.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/netconf.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/session.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/messages_client.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/messages_server.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/session_client.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/session_client_ch.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/session_server.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/libnetconf2/session_server_ch.h
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/pkgconfig/libnetconf2.pc
make: warning:  Clock skew detected.  Your build may be incomplete.
siq5g:/net/open_source/netconf/libnetconf2/build>

sysrepo

siq5g:/net/open_source/netconf/libnetconf2/build>
siq5g:/net/open_source/netconf/libnetconf2/build>cd ${NETCONF_BASE_DIR}/sysrepo
siq5g:/net/open_source/netconf/sysrepo>mkdir -p build && cd build
siq5g:/net/open_source/netconf/sysrepo/build>cmake -DCMAKE_BUILD_TYPE=Release -DGEN_LANGUAGE_BINDINGS=ON -DGEN_PYTHON_BINDINGS=OFF \
> -DCMAKE_INCLUDE_PATH="${NETCONF_BASE_BIN_DIR}/usr/local/include/" \
> -DCMAKE_LIBRARY_PATH="${NETCONF_BASE_BIN_DIR}/usr/local/lib64/" ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/rh/devtoolset-3/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-3/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ietf-yang-library revision: 2019-01-04
-- Sysrepo repository: /etc/sysrepo
-- Startup data path:  /etc/sysrepo/data
-- Notification path:  /etc/sysrepo/data/notif
-- YANG module path:   /etc/sysrepo/yang
-- SRPD plugins path:  /usr/local/lib64/sysrepo/plugins
-- Looking for vdprintf
-- Looking for vdprintf - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for get_current_dir_name
-- Looking for get_current_dir_name - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for getline
-- Looking for getline - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - not found
-- Found LibYANG: /net/open_source/netconf/bin/usr/local/lib64/libyang.so (found suitable version "1.9.9", minimum required is "1.9.7")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for pthread_mutex_timedlock
-- Looking for pthread_mutex_timedlock - found
-- Looking for eaccess
-- Looking for eaccess - found
-- Looking for stdatomic.h
-- Looking for stdatomic.h - found
-- Looking for mkstemps
-- Looking for mkstemps - found
-- Missing tools (devscripts, debhelper package) for building DEB package.
-- To build local RPM package, use "build-rpm" target.
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.5")
CMake Warning (dev) at CMakeLists.txt:297 (message):
  Doxygen: to generate UML diagrams please install graphviz
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /net/open_source/netconf/sysrepo/build
siq5g:/net/open_source/netconf/sysrepo/build>make && make DESTDIR=${NETCONF_BASE_BIN_DIR} install
make: Warning: File `Makefile' has modification time 859 s in the future
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 863 s in the future
make[2]: Warning: File `CMakeFiles/srobj.dir/flags.make' has modification time 857 s in the future
Scanning dependencies of target srobj
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/srobj.dir/flags.make' has modification time 857 s in the future
[  1%] Building C object CMakeFiles/srobj.dir/src/sysrepo.c.o
/net/open_source/netconf/sysrepo/src/sysrepo.c: In function \u2018sr_oper_get_items_subscribe\u2019:
/net/open_source/netconf/sysrepo/src/sysrepo.c:4891:21: warning: \u2018sub_type\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
     if ((err_info = sr_shmmod_oper_subscription_add(&conn->ext_shm, shm_mod, path, sub_type, sub_opts,
                     ^
[  2%] Building C object CMakeFiles/srobj.dir/src/common.c.o
/net/open_source/netconf/sysrepo/src/common.c: In function \u2018sr_module_file_data_append\u2019:
/net/open_source/netconf/sysrepo/src/common.c:4292:14: warning: \u2018flags\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
     mod_data = lyd_parse_fd(ly_mod->ctx, fd, LYD_LYB, flags);
              ^
[  4%] Building C object CMakeFiles/srobj.dir/src/log.c.o
/net/open_source/netconf/sysrepo/src/log.c: In function \u2018sr_log_msg\u2019:
/net/open_source/netconf/sysrepo/src/log.c:139:9: warning: \u2018severity\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
         syslog(priority | (plugin ? LOG_DAEMON : 0), "[%s] %s\n", severity, msg);
         ^
/net/open_source/netconf/sysrepo/src/log.c:139:9: warning: \u2018priority\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
[  5%] Building C object CMakeFiles/srobj.dir/src/replay.c.o
[  7%] Building C object CMakeFiles/srobj.dir/src/modinfo.c.o
[  8%] Building C object CMakeFiles/srobj.dir/src/edit_diff.c.o
/net/open_source/netconf/sysrepo/src/edit_diff.c: In function \u2018sr_edit_insert\u2019:
/net/open_source/netconf/sysrepo/src/edit_diff.c:408:9: warning: variable \u2018user_ordered\u2019 set but not used [-Wunused-but-set-variable]
     int user_ordered = 0;
         ^
/net/open_source/netconf/sysrepo/src/edit_diff.c: In function \u2018sr_diff_ly2sr\u2019:
/net/open_source/netconf/sysrepo/src/edit_diff.c:3223:25: warning: \u2018attr_val\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
         if ((err_info = sr_diff_add_attrs(node, attr_val, prev_attr_val, op))) {
                         ^
/net/open_source/netconf/sysrepo/src/edit_diff.c: In function \u2018sr_edit_add\u2019:
/net/open_source/netconf/sysrepo/src/edit_diff.c:3557:18: warning: \u2018attr_val\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
             if (!lyd_insert_attr(node, NULL, node->schema->nodetype == LYS_LIST ? "yang:key" : "yang:value", attr_val)) {
                  ^
[  9%] Building C object CMakeFiles/srobj.dir/src/lyd_mods.c.o
[ 11%] Building C object CMakeFiles/srobj.dir/src/shm_main.c.o
[ 12%] Building C object CMakeFiles/srobj.dir/src/shm_mod.c.o
[ 14%] Building C object CMakeFiles/srobj.dir/src/shm_sub.c.o
/net/open_source/netconf/sysrepo/src/shm_sub.c: In function \u2018sr_shmsub_change_notify_change\u2019:
/net/open_source/netconf/sysrepo/src/shm_sub.c:903:29: warning: \u2018diff_lyb_len\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
             if ((err_info = sr_shm_remap(&shm_sub, sizeof *multi_sub_shm + diff_lyb_len))) {
                             ^
/net/open_source/netconf/sysrepo/src/shm_sub.c: In function \u2018sr_shmsub_change_notify_change_done\u2019:
/net/open_source/netconf/sysrepo/src/shm_sub.c:1021:29: warning: \u2018diff_lyb_len\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
             if ((err_info = sr_shm_remap(&shm_sub, sizeof *multi_sub_shm + diff_lyb_len))) {
                             ^
/net/open_source/netconf/sysrepo/src/shm_sub.c: In function \u2018sr_shmsub_change_notify_change_abort\u2019:
/net/open_source/netconf/sysrepo/src/shm_sub.c:1173:29: warning: \u2018diff_lyb_len\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
             if ((err_info = sr_shm_remap(&shm_sub, sizeof *multi_sub_shm + diff_lyb_len))) {
                             ^
/net/open_source/netconf/sysrepo/src/shm_sub.c:1215:34: warning: \u2018err_subscriber_count\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
                 subscriber_count -= err_subscriber_count;
                                  ^
/net/open_source/netconf/sysrepo/src/shm_sub.c:1213:29: warning: \u2018err_priority\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
             if (last_subscr && (err_priority == cur_priority)) {
                             ^
[ 15%] Building C object CMakeFiles/srobj.dir/src/utils/values.c.o
[ 16%] Building C object CMakeFiles/srobj.dir/src/utils/xpath.c.o
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 16%] Built target srobj
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 850 s in the future
Scanning dependencies of target compat
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 850 s in the future
[ 18%] Building C object CMakeFiles/compat.dir/compat/compat.c.o
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 18%] Built target compat
make[2]: Warning: File `CMakeFiles/sysrepo.dir/flags.make' has modification time 850 s in the future
Scanning dependencies of target sysrepo
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/sysrepo.dir/flags.make' has modification time 849 s in the future
[ 19%] Linking C shared library libsysrepo.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 19%] Built target sysrepo
make[2]: Warning: File `CMakeFiles/sysrepoctl.dir/flags.make' has modification time 849 s in the future
Scanning dependencies of target sysrepoctl
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/sysrepoctl.dir/flags.make' has modification time 849 s in the future
[ 21%] Building C object CMakeFiles/sysrepoctl.dir/src/executables/sysrepoctl.c.o
[ 22%] Linking C executable sysrepoctl
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 22%] Built target sysrepoctl
make[2]: Warning: File `CMakeFiles/sysrepocfg.dir/flags.make' has modification time 849 s in the future
Scanning dependencies of target sysrepocfg
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/sysrepocfg.dir/flags.make' has modification time 849 s in the future
[ 23%] Building C object CMakeFiles/sysrepocfg.dir/src/executables/sysrepocfg.c.o
[ 25%] Linking C executable sysrepocfg
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 25%] Built target sysrepocfg
make[2]: Warning: File `CMakeFiles/sysrepo-plugind.dir/flags.make' has modification time 848 s in the future
Scanning dependencies of target sysrepo-plugind
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/sysrepo-plugind.dir/flags.make' has modification time 848 s in the future
[ 26%] Building C object CMakeFiles/sysrepo-plugind.dir/src/executables/sysrepo-plugind.c.o
[ 28%] Linking C executable sysrepo-plugind
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 28%] Built target sysrepo-plugind
make[2]: Warning: File `examples/CMakeFiles/application_changes_example.dir/flags.make' has modification time 849 s in the future
Scanning dependencies of target application_changes_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/application_changes_example.dir/flags.make' has modification time 849 s in the future
[ 29%] Building C object examples/CMakeFiles/application_changes_example.dir/application_changes_example.c.o
[ 30%] Linking C executable application_changes_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 30%] Built target application_changes_example
make[2]: Warning: File `examples/CMakeFiles/sr_set_item_example.dir/flags.make' has modification time 849 s in the future
Scanning dependencies of target sr_set_item_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/sr_set_item_example.dir/flags.make' has modification time 848 s in the future
[ 32%] Building C object examples/CMakeFiles/sr_set_item_example.dir/sr_set_item_example.c.o
[ 33%] Linking C executable sr_set_item_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 33%] Built target sr_set_item_example
make[2]: Warning: File `examples/CMakeFiles/oper_pull_push_example.dir/flags.make' has modification time 848 s in the future
Scanning dependencies of target oper_pull_push_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/oper_pull_push_example.dir/flags.make' has modification time 848 s in the future
[ 35%] Building C object examples/CMakeFiles/oper_pull_push_example.dir/oper_pull_push_example.c.o
[ 36%] Linking C executable oper_pull_push_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 36%] Built target oper_pull_push_example
make[2]: Warning: File `examples/CMakeFiles/sr_get_items_example.dir/flags.make' has modification time 848 s in the future
Scanning dependencies of target sr_get_items_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/sr_get_items_example.dir/flags.make' has modification time 848 s in the future
[ 38%] Building C object examples/CMakeFiles/sr_get_items_example.dir/sr_get_items_example.c.o
[ 39%] Linking C executable sr_get_items_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 39%] Built target sr_get_items_example
make[2]: Warning: File `examples/CMakeFiles/oper_data_example.dir/flags.make' has modification time 848 s in the future
Scanning dependencies of target oper_data_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/oper_data_example.dir/flags.make' has modification time 848 s in the future
[ 40%] Building C object examples/CMakeFiles/oper_data_example.dir/oper_data_example.c.o
[ 42%] Linking C executable oper_data_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 42%] Built target oper_data_example
make[2]: Warning: File `examples/CMakeFiles/notif_send_example.dir/flags.make' has modification time 847 s in the future
Scanning dependencies of target notif_send_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/notif_send_example.dir/flags.make' has modification time 847 s in the future
[ 43%] Building C object examples/CMakeFiles/notif_send_example.dir/notif_send_example.c.o
[ 45%] Linking C executable notif_send_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 45%] Built target notif_send_example
make[2]: Warning: File `examples/CMakeFiles/notif_subscribe_example.dir/flags.make' has modification time 847 s in the future
Scanning dependencies of target notif_subscribe_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/notif_subscribe_example.dir/flags.make' has modification time 847 s in the future
[ 46%] Building C object examples/CMakeFiles/notif_subscribe_example.dir/notif_subscribe_example.c.o
[ 47%] Linking C executable notif_subscribe_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 47%] Built target notif_subscribe_example
make[2]: Warning: File `examples/CMakeFiles/oven.dir/flags.make' has modification time 847 s in the future
Scanning dependencies of target oven
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/oven.dir/flags.make' has modification time 847 s in the future
[ 49%] Building C object examples/CMakeFiles/oven.dir/plugin/oven.c.o
[ 50%] Linking C shared module oven.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 50%] Built target oven
make[2]: Warning: File `examples/CMakeFiles/rpc_send_example.dir/flags.make' has modification time 846 s in the future
Scanning dependencies of target rpc_send_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/rpc_send_example.dir/flags.make' has modification time 846 s in the future
[ 52%] Building C object examples/CMakeFiles/rpc_send_example.dir/rpc_send_example.c.o
[ 53%] Linking C executable rpc_send_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 53%] Built target rpc_send_example
make[2]: Warning: File `examples/CMakeFiles/rpc_subscribe_example.dir/flags.make' has modification time 846 s in the future
Scanning dependencies of target rpc_subscribe_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/rpc_subscribe_example.dir/flags.make' has modification time 846 s in the future
[ 54%] Building C object examples/CMakeFiles/rpc_subscribe_example.dir/rpc_subscribe_example.c.o
[ 56%] Linking C executable rpc_subscribe_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 56%] Built target rpc_subscribe_example
make[2]: Warning: File `bindings/cpp/CMakeFiles/sysrepo-cpp.dir/flags.make' has modification time 846 s in the future
Scanning dependencies of target sysrepo-cpp
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/CMakeFiles/sysrepo-cpp.dir/flags.make' has modification time 846 s in the future
[ 57%] Building CXX object bindings/cpp/CMakeFiles/sysrepo-cpp.dir/src/Sysrepo.cpp.o
[ 59%] Building CXX object bindings/cpp/CMakeFiles/sysrepo-cpp.dir/src/Connection.cpp.o
[ 60%] Building CXX object bindings/cpp/CMakeFiles/sysrepo-cpp.dir/src/Session.cpp.o
[ 61%] Building CXX object bindings/cpp/CMakeFiles/sysrepo-cpp.dir/src/Struct.cpp.o
[ 63%] Building CXX object bindings/cpp/CMakeFiles/sysrepo-cpp.dir/src/Xpath.cpp.o
[ 64%] Building CXX object bindings/cpp/CMakeFiles/sysrepo-cpp.dir/src/Internal.cpp.o
[ 66%] Linking CXX shared library libsysrepo-cpp.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 66%] Built target sysrepo-cpp
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_module_info.dir/flags.make' has modification time 840 s in the future
Scanning dependencies of target cpp_module_info
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_module_info.dir/flags.make' has modification time 840 s in the future
[ 67%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_module_info.dir/cpp_module_info.cpp.o
[ 69%] Linking CXX executable cpp_module_info
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 69%] Built target cpp_module_info
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_notif_example.dir/flags.make' has modification time 839 s in the future
Scanning dependencies of target cpp_notif_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_notif_example.dir/flags.make' has modification time 839 s in the future
[ 70%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_notif_example.dir/cpp_notif_example.cpp.o
[ 71%] Linking CXX executable cpp_notif_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 71%] Built target cpp_notif_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_item_example.dir/flags.make' has modification time 838 s in the future
Scanning dependencies of target cpp_get_item_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_item_example.dir/flags.make' has modification time 837 s in the future
[ 73%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_get_item_example.dir/cpp_get_item_example.cpp.o
[ 74%] Linking CXX executable cpp_get_item_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 74%] Built target cpp_get_item_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_turing_rpc_example.dir/flags.make' has modification time 837 s in the future
Scanning dependencies of target cpp_turing_rpc_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_turing_rpc_example.dir/flags.make' has modification time 836 s in the future
[ 76%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_turing_rpc_example.dir/cpp_turing_rpc_example.cpp.o
[ 77%] Linking CXX executable cpp_turing_rpc_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 77%] Built target cpp_turing_rpc_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_set_item_example.dir/flags.make' has modification time 835 s in the future
Scanning dependencies of target cpp_set_item_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_set_item_example.dir/flags.make' has modification time 835 s in the future
[ 78%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_set_item_example.dir/cpp_set_item_example.cpp.o
[ 80%] Linking CXX executable cpp_set_item_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 80%] Built target cpp_set_item_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_items_example.dir/flags.make' has modification time 834 s in the future
Scanning dependencies of target cpp_get_items_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_items_example.dir/flags.make' has modification time 834 s in the future
[ 81%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_get_items_example.dir/cpp_get_items_example.cpp.o
[ 83%] Linking CXX executable cpp_get_items_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 83%] Built target cpp_get_items_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_application_example.dir/flags.make' has modification time 833 s in the future
Scanning dependencies of target cpp_application_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_application_example.dir/flags.make' has modification time 833 s in the future
[ 84%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_application_example.dir/cpp_application_example.cpp.o
[ 85%] Linking CXX executable cpp_application_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 85%] Built target cpp_application_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_rpc_example.dir/flags.make' has modification time 832 s in the future
Scanning dependencies of target cpp_rpc_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_rpc_example.dir/flags.make' has modification time 832 s in the future
[ 87%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_rpc_example.dir/cpp_rpc_example.cpp.o
[ 88%] Linking CXX executable cpp_rpc_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 88%] Built target cpp_rpc_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_oper_data_example.dir/flags.make' has modification time 831 s in the future
Scanning dependencies of target cpp_oper_data_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_oper_data_example.dir/flags.make' has modification time 830 s in the future
[ 90%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_oper_data_example.dir/cpp_oper_data_example.cpp.o
[ 91%] Linking CXX executable cpp_oper_data_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 91%] Built target cpp_oper_data_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_data_example.dir/flags.make' has modification time 829 s in the future
Scanning dependencies of target cpp_get_data_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_data_example.dir/flags.make' has modification time 829 s in the future
[ 92%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_get_data_example.dir/cpp_get_data_example.cpp.o
[ 94%] Linking CXX executable cpp_get_data_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 94%] Built target cpp_get_data_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_delete_item_example.dir/flags.make' has modification time 828 s in the future
Scanning dependencies of target cpp_delete_item_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_delete_item_example.dir/flags.make' has modification time 828 s in the future
[ 95%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_delete_item_example.dir/cpp_delete_item_example.cpp.o
[ 97%] Linking CXX executable cpp_delete_item_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 97%] Built target cpp_delete_item_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_application_changes_example.dir/flags.make' has modification time 827 s in the future
Scanning dependencies of target cpp_application_changes_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_application_changes_example.dir/flags.make' has modification time 827 s in the future
[ 98%] Building CXX object bindings/cpp/examples/CMakeFiles/cpp_application_changes_example.dir/cpp_application_changes_example.cpp.o
[100%] Linking CXX executable cpp_application_changes_example
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[100%] Built target cpp_application_changes_example
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make: warning:  Clock skew detected.  Your build may be incomplete.
make: Warning: File `Makefile' has modification time 822 s in the future
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 827 s in the future
make[2]: Warning: File `CMakeFiles/srobj.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/srobj.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 16%] Built target srobj
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 18%] Built target compat
make[2]: Warning: File `CMakeFiles/sysrepo.dir/flags.make' has modification time 820 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/sysrepo.dir/flags.make' has modification time 820 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 19%] Built target sysrepo
make[2]: Warning: File `CMakeFiles/sysrepoctl.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/sysrepoctl.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 22%] Built target sysrepoctl
make[2]: Warning: File `CMakeFiles/sysrepocfg.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/sysrepocfg.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 25%] Built target sysrepocfg
make[2]: Warning: File `CMakeFiles/sysrepo-plugind.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/sysrepo-plugind.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 28%] Built target sysrepo-plugind
make[2]: Warning: File `examples/CMakeFiles/application_changes_example.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/application_changes_example.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 30%] Built target application_changes_example
make[2]: Warning: File `examples/CMakeFiles/sr_set_item_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/sr_set_item_example.dir/flags.make' has modification time 821 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 33%] Built target sr_set_item_example
make[2]: Warning: File `examples/CMakeFiles/oper_pull_push_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/oper_pull_push_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 36%] Built target oper_pull_push_example
make[2]: Warning: File `examples/CMakeFiles/sr_get_items_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/sr_get_items_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 39%] Built target sr_get_items_example
make[2]: Warning: File `examples/CMakeFiles/oper_data_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/oper_data_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 42%] Built target oper_data_example
make[2]: Warning: File `examples/CMakeFiles/notif_send_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/notif_send_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 45%] Built target notif_send_example
make[2]: Warning: File `examples/CMakeFiles/notif_subscribe_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/notif_subscribe_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 47%] Built target notif_subscribe_example
make[2]: Warning: File `examples/CMakeFiles/oven.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/oven.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 50%] Built target oven
make[2]: Warning: File `examples/CMakeFiles/rpc_send_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/rpc_send_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 53%] Built target rpc_send_example
make[2]: Warning: File `examples/CMakeFiles/rpc_subscribe_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `examples/CMakeFiles/rpc_subscribe_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 56%] Built target rpc_subscribe_example
make[2]: Warning: File `bindings/cpp/CMakeFiles/sysrepo-cpp.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/CMakeFiles/sysrepo-cpp.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 66%] Built target sysrepo-cpp
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_module_info.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_module_info.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 69%] Built target cpp_module_info
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_notif_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_notif_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 71%] Built target cpp_notif_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_item_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_item_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 74%] Built target cpp_get_item_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_turing_rpc_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_turing_rpc_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 77%] Built target cpp_turing_rpc_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_set_item_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_set_item_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 80%] Built target cpp_set_item_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_items_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_items_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 83%] Built target cpp_get_items_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_application_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_application_example.dir/flags.make' has modification time 822 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 85%] Built target cpp_application_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_rpc_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_rpc_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 88%] Built target cpp_rpc_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_oper_data_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_oper_data_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 91%] Built target cpp_oper_data_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_data_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_get_data_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 94%] Built target cpp_get_data_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_delete_item_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_delete_item_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 97%] Built target cpp_delete_item_example
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_application_changes_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `bindings/cpp/examples/CMakeFiles/cpp_application_changes_example.dir/flags.make' has modification time 823 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[100%] Built target cpp_application_changes_example
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 824 s in the future
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
Install the project...
-- Install configuration: "Release"
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libsysrepo.so.5.5.20
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libsysrepo.so.5
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libsysrepo.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libsysrepo.so.5.5.20" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo/values.h
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo/xpath.h
-- Installing: /net/open_source/netconf/bin/usr/local/bin/sysrepoctl
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/bin/sysrepoctl" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/bin/sysrepocfg
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/bin/sysrepocfg" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/bin/sysrepo-plugind
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/bin/sysrepo-plugind" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/pkgconfig/sysrepo.pc
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libsysrepo-cpp.so.5.5.20
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libsysrepo-cpp.so.5
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/libsysrepo-cpp.so
-- Set runtime path of "/net/open_source/netconf/bin/usr/local/lib64/libsysrepo-cpp.so.5.5.20" to ""
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo-cpp/Sysrepo.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo-cpp/Connection.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo-cpp/Session.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo-cpp/Struct.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo-cpp/Xpath.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/include/sysrepo-cpp/Internal.hpp
-- Installing: /net/open_source/netconf/bin/usr/local/lib64/pkgconfig/sysrepo-cpp.pc
make: warning:  Clock skew detected.  Your build may be incomplete.
siq5g:/net/open_source/netconf/sysrepo/build>

netopeer2

siq5g:/net/open_source/netconf/sysrepo/build>
siq5g:/net/open_source/netconf/sysrepo/build>cd ${NETCONF_BASE_DIR}/netopeer2
siq5g:/net/open_source/netconf/netopeer2>mkdir -p build && cd build
siq5g:/net/open_source/netconf/netopeer2/build>cmake -DCMAKE_BUILD_TYPE=Release \
> -DCMAKE_INCLUDE_PATH="${SSH_BASE_BIN_DIR}/usr/local/include/;${NETCONF_BASE_BIN_DIR}/usr/local/include/" \
> -DCMAKE_LIBRARY_PATH="${SSH_BASE_BIN_DIR}/usr/local/lib64/;${NETCONF_BASE_BIN_DIR}/usr/local/lib64/" ..
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- Unable to learn libnetconf2 thread support, check skipped
-- Found LibNETCONF2: /net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so
-- Looking for NC_ENABLED_SSH
-- Looking for NC_ENABLED_SSH - not found
-- Looking for NC_ENABLED_TLS
-- Looking for NC_ENABLED_TLS - not found
-- Looking for vdprintf
-- Looking for vdprintf - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for get_current_dir_name
-- Looking for get_current_dir_name - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for getline
-- Looking for getline - found
-- Looking for strdupa
-- Looking for strdupa - found
-- Looking for strchrnul
-- Looking for strchrnul - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found CURL: /usr/lib64/libcurl.so (found version "7.29.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for stdatomic.h
-- Looking for stdatomic.h - found
-- Found LibSSH: /home/gy1005/5g-code/netconf/bin/usr/local/include (found suitable version "0.8.90", minimum required is "0.7.1")
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2k")
-- Found LibYANG: /net/open_source/netconf/bin/usr/local/lib64/libyang.so (found version "1.9.9")
-- Found Sysrepo: /net/open_source/netconf/bin/usr/local/lib64/libsysrepo.so
-- Missing tools (devscripts, debhelper package) for building DEB package.
-- To build local RPM package, use "build-rpm" target.
-- Looking for eaccess
-- Looking for eaccess - found
-- Looking for mkstemps
-- Looking for mkstemps - found
-- roff2html not found, html version of man pages cannot be generated!
-- Configuring done
-- Generating done
-- Build files have been written to: /net/open_source/netconf/netopeer2/build
siq5g:/net/open_source/netconf/netopeer2/build>make
make: Warning: File `Makefile' has modification time 863 s in the future
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 864 s in the future
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 863 s in the future
Scanning dependencies of target compat
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/compat.dir/flags.make' has modification time 863 s in the future
[  6%] Building C object CMakeFiles/compat.dir/compat/compat.c.o
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[  6%] Built target compat
make[2]: Warning: File `CMakeFiles/serverobj.dir/flags.make' has modification time 862 s in the future
Scanning dependencies of target serverobj
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/serverobj.dir/flags.make' has modification time 862 s in the future
[ 13%] Building C object CMakeFiles/serverobj.dir/src/common.c.o
[ 20%] Building C object CMakeFiles/serverobj.dir/src/netconf.c.o
/net/open_source/netconf/netopeer2/src/netconf.c: In function \u2018np2srv_rpc_validate_cb\u2019:
/net/open_source/netconf/netopeer2/src/netconf.c:635:9: warning: \u2018ds\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized]
         sr_session_switch_ds(session, ds);
         ^
[ 26%] Building C object CMakeFiles/serverobj.dir/src/netconf_monitoring.c.o
[ 33%] Building C object CMakeFiles/serverobj.dir/src/netconf_acm.c.o
[ 40%] Building C object CMakeFiles/serverobj.dir/src/netconf_nmda.c.o
[ 46%] Building C object CMakeFiles/serverobj.dir/src/log.c.o
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 46%] Built target serverobj
make[2]: Warning: File `CMakeFiles/netopeer2-server.dir/flags.make' has modification time 860 s in the future
Scanning dependencies of target netopeer2-server
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/netopeer2-server.dir/flags.make' has modification time 860 s in the future
[ 53%] Building C object CMakeFiles/netopeer2-server.dir/src/main.c.o
[ 60%] Linking C executable netopeer2-server
CMakeFiles/netopeer2-server.dir/src/main.c.o: In function `main':
main.c:(.text.startup+0x6dd): undefined reference to `np2srv_hostkey_cb'
main.c:(.text.startup+0x6eb): undefined reference to `np2srv_pubkey_auth_cb'
main.c:(.text.startup+0x6f9): undefined reference to `np2srv_cert_cb'
main.c:(.text.startup+0x707): undefined reference to `np2srv_cert_list_cb'
main.c:(.text.startup+0xacd): undefined reference to `np2srv_idle_timeout_cb'
main.c:(.text.startup+0xb01): undefined reference to `np2srv_endpt_ssh_cb'
main.c:(.text.startup+0xb34): undefined reference to `np2srv_endpt_tcp_params_cb'
main.c:(.text.startup+0xb6b): undefined reference to `np2srv_endpt_ssh_hostkey_cb'
main.c:(.text.startup+0xb99): undefined reference to `np2srv_endpt_ssh_auth_methods_cb'
main.c:(.text.startup+0xbcf): undefined reference to `np2srv_endpt_ssh_auth_users_oper_cb'
main.c:(.text.startup+0xc02): undefined reference to `np2srv_endpt_tls_cb'
main.c:(.text.startup+0xc3b): undefined reference to `np2srv_endpt_tcp_params_cb'
main.c:(.text.startup+0xc68): undefined reference to `np2srv_endpt_tls_servercert_cb'
main.c:(.text.startup+0xc9a): undefined reference to `np2srv_endpt_tls_client_auth_cb'
main.c:(.text.startup+0xcce): undefined reference to `np2srv_endpt_tls_client_ctn_cb'
main.c:(.text.startup+0xd00): undefined reference to `np2srv_ch_client_cb'
main.c:(.text.startup+0xd34): undefined reference to `np2srv_ch_connection_type_cb'
main.c:(.text.startup+0xd6d): undefined reference to `np2srv_ch_reconnect_strategy_cb'
main.c:(.text.startup+0xd9a): undefined reference to `np2srv_ch_client_endpt_ssh_cb'
main.c:(.text.startup+0xdcc): undefined reference to `np2srv_ch_client_endpt_tcp_params_cb'
main.c:(.text.startup+0xe00): undefined reference to `np2srv_ch_endpt_ssh_hostkey_cb'
main.c:(.text.startup+0xe32): undefined reference to `np2srv_ch_endpt_ssh_auth_methods_cb'
main.c:(.text.startup+0xe66): undefined reference to `np2srv_ch_client_endpt_tls_cb'
main.c:(.text.startup+0xe9f): undefined reference to `np2srv_ch_client_endpt_tcp_params_cb'
main.c:(.text.startup+0xecc): undefined reference to `np2srv_ch_client_endpt_tls_servercert_cb'
main.c:(.text.startup+0xefe): undefined reference to `np2srv_ch_client_endpt_tls_client_auth_cb'
main.c:(.text.startup+0xf32): undefined reference to `np2srv_ch_client_endpt_tls_client_ctn_cb'
collect2: error: ld returned 1 exit status
make[2]: *** [netopeer2-server] Error 1
make[1]: *** [CMakeFiles/netopeer2-server.dir/all] Error 2
make: *** [all] Error 2
siq5g:/net/open_source/netconf/netopeer2/build>

Could you please try again? I may have fixed it but if not, it is up to you to find out why the macros are not found, the cause is your non-standard environment and some place where it is not expected. I am not able to find the problem myself.

Hi Michal,
Thanks for the support that you are providing.
I think the issue is still there.
-- Looking for NC_ENABLED_SSH
-- Looking for NC_ENABLED_SSH - not found
-- Looking for NC_ENABLED_TLS
-- Looking for NC_ENABLED_TLS - not found

please find attached CMakeError file
, for debugging.
cmake prints
cmake -DCMAKE_BUILD_TYPE=Release \
> -DCMAKE_INCLUDE_PATH="${SSH_BASE_BIN_DIR}/usr/local/include/;${NETCONF_BASE_BIN_DIR}/usr/local/include/" \
> -DCMAKE_LIBRARY_PATH="${SSH_BASE_BIN_DIR}/usr/local/lib64/;${NETCONF_BASE_BIN_DIR}/usr/local/lib64/" ..
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-3/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- Unable to learn libnetconf2 thread support, check skipped
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2k")
-- Found LibNETCONF2: /net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so
-- Looking for NC_ENABLED_SSH
-- Looking for NC_ENABLED_SSH - not found
-- Looking for NC_ENABLED_TLS
-- Looking for NC_ENABLED_TLS - not found
-- Looking for vdprintf
-- Looking for vdprintf - not found
-- Looking for asprintf
-- Looking for asprintf - not found
-- Looking for vasprintf
-- Looking for vasprintf - not found
-- Looking for get_current_dir_name
-- Looking for get_current_dir_name - not found
-- Looking for strndup
-- Looking for strndup - not found
-- Looking for getline
-- Looking for getline - not found
-- Looking for strdupa
-- Looking for strdupa - not found
-- Looking for strchrnul
-- Looking for strchrnul - not found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at /usr/local/share/cmake-3.6/Modules/TestBigEndian.cmake:51 (message):
  no suitable type found
Call Stack (most recent call first):
  CMakeModules/UseCompat.cmake:20 (TEST_BIG_ENDIAN)
  CMakeLists.txt:155 (use_compat)

-- Configuring incomplete, errors occurred!
See also "/net/open_source/netconf/netopeer2/build/CMakeFiles/CMakeOutput.log".
See also "/net/open_source/netconf/netopeer2/build/CMakeFiles/CMakeError.log".
siq5g:/net/open_source/netconf/netopeer2/build>

Alright, please try again with this cmake.patch.txt and again post the CMake error log if it still does not work, thanks.

Hi Michal,
using above patch cmake is able to find NC_ENABLED_SSH, but still linker error is coming.
-- Looking for NC_ENABLED_SSH
-- Looking for NC_ENABLED_SSH - found
-- Looking for NC_ENABLED_TLS
-- Looking for NC_ENABLED_TLS - found
-- Looking for vdprintf

/net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so: undefined reference to `ssh_userauth_kbdint@LIBSSH_4_5_0'
/net/open_source/netconf/bin/usr/local/lib64/libnetconf2.so: undefined reference to `ssh_message_channel_request_channel@LIBSSH_4_5_0'

key difference between our build process from before is we are installing libssh header and lib under seperate dir
libssh/build>make DESTDIR=/home/gy1005/5g-code/netconf/bin install

Using above method netpeer2 make fails.
cmake prints netopeer2_cmake_when_ssh_in_other_dir.txt

So I tried changing DESDIR for libssh, same as other header and lib like libnetconf.so,
i.e
libnetconf2/build>make DESTDIR=/net/open_source/netconf/bin install

With approach netopeer compiled fine
hope that helps in some way, to figure out issue.
cmake prints netopeer2_cmake_when_ssh_in_same_dir.txt

you may want to look at the diff of above two log files

Hi,
okay, it seems the server was compiled successfully but now the CLI is giving trouble. I tried to fix it with this patch, please test it.
diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt
index 0509d1e..d979dbb 100644
--- a/cli/CMakeLists.txt
+++ b/cli/CMakeLists.txt
@@ -23,9 +23,20 @@ target_link_libraries(netopeer2-cli ${CMAKE_THREAD_LIBS_INIT})
 target_link_libraries(netopeer2-cli ${LIBYANG_LIBRARIES})
 target_link_libraries(netopeer2-cli ${LIBNETCONF2_LIBRARIES})

+# dependencies - libssh
+if(LIBNETCONF2_ENABLED_SSH)
+    if(NOT LibSSH_FOUND)
+        message(FATAL_ERROR "libnetconf2 supports SSH but libssh was not found, CLI compilation failed!")
+    endif()
+    target_link_libraries(netopeer2-cli ${LIBSSH_LIBRARIES})
+    include_directories(${LIBSSH_INCLUDE_DIRS})
+endif()
+
 # dependencies - libssl
 if(LIBNETCONF2_ENABLED_TLS)
-    find_package(OpenSSL REQUIRED)
+    if(NOT OpenSSL_FOUND)
+        message(FATAL_ERROR "libnetconf2 supports TLS but OpenSSL was not found, CLI compilation failed!")
+    endif()
     target_link_libraries(netopeer2-cli ${OPENSSL_LIBRARIES})
     include_directories(${OPENSSL_INCLUDE_DIR})
 endif()

Hi Michal,
With this patch, netopeer2 compiles.
Thank you for all the help. 🙌
You can push these changes to devel.
I will pull latest devel.
Govind.

Okay, great.

libyang required version
set(LIBYANG_DEP_VERSION 2.0.128)
set(LIBYANG_DEP_SOVERSION 2.14.0)
set(LIBYANG_DEP_SOVERSION_MAJOR 2）
I can't find the 2.14 library ？