Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8360409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:27:35+00:00 2026-06-09T11:27:35+00:00

I installed libxml2 and am using to compile a sample file that reads an

  • 0

I installed libxml2 and am using to compile a sample file that reads an xml document. I use the following to flags so I am using the libxml2:

gcc `xml2-config --cflags xml2-config --libs` libxml.c 

However it crashes right on the first line of parsing the file:

Error: <unknown>:1: syntax error near line 1
context: <?xml version="1.0" >>>  encoding="UTF-8"?> <<< 
Segmentation fault

I know that it is a valid xml file, the first couple of lines of the xml file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" level="3" version="1">
  <model metaid="_case00010" id="case00010" name="case00010" timeUnits="time">

Does any one had this error before? Thanks.

This is what I get when running gdb but am not sure what it means:

Cannot find new threads: generic error

The code is verbatim from here: http://www.xmlsoft.org/examples/parse1.c

And the xml file passes a validation check.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:27:36+00:00Added an answer on June 9, 2026 at 11:27 am

    For some reason it is not linking right the libraries when the file name is at the end. I put the linkage info at the end and it wokred:

    gcc 'xml2-config --cflags' libxml.c 'xml2-config --libs'

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed lxml which was built using a standalone version of libxml2. Reason
I have a Perl script that reads a simple .csv file like below- header1,header2,header3,header4
I have installed the latest libxml2-2.8.0 , as usual: $ ./configure , $ make
I installed clojure-mode and slime using the emacs starter kit and I get this
I've got an application which is using both iconv functionality and libxml2. libxml2 is
I am using WAMP on my local machine and I'm trying to use docblox
For XSLT processing, I am trying to use XML::LibXSLT. I am having ActiveState Perl
can anybody tell me how to install libxml2 in Unix? I am using windows
I am attempting to install libxml2 so that I can setup the python bindings
I'm on OSX Lion and I have libxml2 installed (by default) and I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.