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

test doesn't build #139

Open
smashra opened this issue Oct 4, 2023 · 2 comments
Open

test doesn't build #139

smashra opened this issue Oct 4, 2023 · 2 comments

Comments

@smashra
Copy link

smashra commented Oct 4, 2023

I'm getting this error:

make test
....
...
libtool: compile: g++ -DPACKAGE_NAME="yuma123" -DPACKAGE_TARNAME="yuma123" -DPACKAGE_VERSION="2.14" "-DPACKAGE_STRING="yuma123 2.14"" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="yuma123" -DVERSION="2.14" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -DBOOST_TEST_DYN_LINK -std=c++0x -I /usr/include/libxml2 -I ../../netconf -I ../../netconf/src/yangcli/ -I../../netconf/src/agt -I../../netconf/src/mgr -I../../netconf/src/ncx -I../../netconf/src/platform -I../../netconf/src/ydump -g -O0 -MT ../../netconf/test/support/msg-util/libyumatest_la-NCMessageBuilder.lo -MD -MP -MF ../../netconf/test/support/msg-util/.deps/libyumatest_la-NCMessageBuilder.Tpo -c ../../netconf/test/support/msg-util/NCMessageBuilder.cpp -fPIC -DPIC -o ../../netconf/test/support/msg-util/.libs/libyumatest_la-NCMessageBuilder.o
In file included from ../../netconf/src/ncx/xml_util.h:85,
from ../../netconf/test/support/msg-util/NCMessageBuilder.cpp:7:
../../netconf/src/ncx/xmlns.h:80:11: error: ‘xmlChar’ does not name a type
80 | const xmlChar *name;
| ^~~~~~~
../../netconf/src/ncx/xmlns.h:86:5: error: ‘xmlChar’ does not name a type
86 | xmlChar *ns_pfix;
| ^~~~~~~
../../netconf/src/ncx/xmlns.h:87:5: error: ‘xmlChar’ does not name a type
87 | xmlChar *ns_name;
| ^~~~~~~
../../netconf/src/ncx/xmlns.h:88:5: error: ‘xmlChar’ does not name a type
88 | xmlChar *ns_module;
| ^~~~~~~
../../netconf/src/ncx/xmlns.h:97:5: error: ‘xmlChar’ does not name a type
97 | xmlChar *nm_pfix;
| ^~~~~~~
../../netconf/src/ncx/xmlns.h:157:30: error: ‘xmlChar’ does not name a type
157 | xmlns_register_ns (const xmlChar *ns,
| ^~~~~~~
../../netconf/src/ncx/xmlns.h:158:16: error: ‘xmlChar’ does not name a type

libxml-2.0 is found by pkg-config. I even hardcoded the path but still it gives error.
#/usr/bin/pkg-config --cflags-only-I libxml-2.0

-I/usr/include/libxml2

@vlvassilev
Copy link
Owner

The libboost-test based framework is the legacy test system which manages the testcases in test/integ-tests and test/sys-tests. The majority of testcases that are actively used are under test/netconfd and test/yangcli and do not use libboost-test.

That said I looked into the compilation issues and fixed some caused by changes in the libxml2 compilation flags and paths: 02203ea

However the current state still fails with some libboost specific issues. e.g.
libyumatest.so: undefined reference to typeinfo for boost::unit_test::output::plain_report_formatter'`

For now I leave this issue open.

@smashra
Copy link
Author

smashra commented Oct 6, 2023

Thanks a lot for replying back.
I was able to get test/ compiling after a bit of struggle.
You have confirmed my understanding of where test/ stands right now.

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

No branches or pull requests

2 participants