This is our old Q&A Site. Please post any new questions and answers at

I'm working in linux and I would need to use libxml2 functions for the development of a plugin for wireshark but when I start wireshark I get an error message: undefined symbol: xmlParseFile. I thought that the error would be resolved by including the header "xmlexports.h" but it was not so. I am writing a piece of code to facilitate the understanding:

#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
xmlDocPtr docS=NULL;
char *fileNameXML="test.xml"
docS = xmlParseFile(fileNameXML);

Thank you in advance!

asked 12 May '14, 03:01

Junzo's gravatar image

accept rate: 100%

edited 12 May '14, 09:00

grahamb's gravatar image

grahamb ♦

I guess you need to change the makefile(s) to link against libxml2.

(12 May '14, 05:42) Anders ♦

I think the issue might be a runtime load problem, the OP says the problem occurs when starting Wireshark, not building.

(12 May '14, 05:53) grahamb ♦

Or maybe not.

(12 May '14, 07:27) grahamb ♦

I had forgotten to include the library lxml2 in phase of linking. I'm sorry

permanent link

answered 12 May '14, 07:21

Junzo's gravatar image

accept rate: 100%


No need to modify the question title to mark it as answered/solved, instead click the checkmark icon next to your answer. Please read the FAQ for more info.

(12 May '14, 09:01) grahamb ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 12 May '14, 03:01

question was seen: 2,558 times

last updated: 12 May '14, 09:01

p​o​w​e​r​e​d by O​S​Q​A