Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

LibYang error when compiling the libnetconf libary. #2287

Open
Ray123456a opened this issue Aug 16, 2024 · 3 comments
Open

LibYang error when compiling the libnetconf libary. #2287

Ray123456a opened this issue Aug 16, 2024 · 3 comments
Labels
is:question Issue is actually a question.

Comments

@Ray123456a
Copy link

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
Copy link
Author

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

@michalvasko
Copy link
Member

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 michalvasko added the is:question Issue is actually a question. label Aug 16, 2024
@jktjkt
Copy link
Contributor

jktjkt commented Aug 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

3 participants