libyang icon indicating copy to clipboard operation
libyang copied to clipboard

LibYang error when compiling the libnetconf libary.

Open Ray123456a opened this issue 1 year ago • 3 comments

libyang.lib error occured when I trying tho compiling the libnetconf. The compile is aarch64-linux-gnu-gcc , I have finished compiled libpcre2-10.42 libpcre2-10.42 libpcre2-10.42 libpcre2-10.42 libpcre2-10.42 before that. error_libyang Pls help me to find out where to fix this issue , thanks a lot.

Ray123456a avatar Aug 16 '24 05:08 Ray123456a

My cmake command as below: CC=aarch64-linux-gnu-gcc cmake -DOPENSSL_ROOT_DIR=/drgfly/lib/openssl -DCMAKE_INSTALL_PREFIX:PATH=/drgfly/netopeer2_server/libnetconf -D CMAKE_BUILD_TYPE:String="Release" -DLIBSSH_INCLUDE_DIRS=/drgfly/lib/libssh/include/libssh -DLIBSSH_LIBRARIES="/drgfly/lib/libssh/lib/libssh.so" -DLIBYANG_INCLUDE_DIRS=/drgfly/netopeer2_server/libyang/include -DLIBYANG_LIBRARY="/drgfly/netopeer2_server/libyang/lib/libyang.so" -DENABLE_TLS=ON -DENABLE_SSH=ON ..

Ray123456a avatar Aug 16 '24 06:08 Ray123456a

Seems you are missing some library but I really do not know which. In any case, looks like a libssh problem so ask them, I cannot help.

michalvasko avatar Aug 16 '24 09:08 michalvasko

It seems to me that CMake is trying to link libnetconf2 against libssh (which is the right thing to do), and libssh requires some symbols from zlib (which makes sense), but the build scripts do not capture this transitive dependency (which might be a bug in your build/packaging/installation of libssh). Either way, there's nothing to fix in libyang or libnetconf2.

jktjkt avatar Aug 19 '24 12:08 jktjkt