I am porting my working code from ubuntu 14.x to 17.x. I am getting error in function XMLMakeRootNode in Ubuntu 17.x This code works fine in ubuntu 14.x version.
[SIGSEGV]
Segmentation fault. 0x00007ffff785937b in xmlDocSetRootElement () from /usr/lib/x86_64-linux-gnu/libxml2.so.2
[Crash Dump]:
/lib/x86_64-linux-gnu/libc.so.6(+0x37140)[0x7f72215ac140] /usr/lib/x86_64-linux-gnu/libxml2.so.2(xmlDocSetRootElement+0x3b)[0x7f7222daa37b]
PS
While compiling program I am getting some warning as below: warning: implicit declaration of function 'XmlGetRootNode'; did you mean 'xmlRootNode'? [-Wimplicit-function-declare]
Have you tried the following on Ubuntu 17.x to make sure that you have all the latest libraries for libxml2?
sudo apt-get install libxml2
sudo apt-get install libxml2-dev
sudo apt-get install libxslt-dev
sudo apt-get install xml-core
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.