Re: [xml] undefined symbol error with xmlNodeBufGetContent




When I do a ldd ./example, it gives me this response:

 libxml2.so.2 => /usr/lib/libxml2.so.2 (0x40034000)
 libz.so.1 => /usr/lib/libz.so.1 (0x4011f000)
 libpthread.so.0 => /usr/lib/libpthread.so.0 (0x4012d000)
 libm.so.6 => /usr/lib/libm.so.6 (0x4013a000)
 libc.so.6 => /usr/lib/libc.so.6 (0x42000000)
 lib/ld-linux.so.2 =? /lib/ld-linux.so.2 (0x40000000)

 Is this an incorrect library? Which shared library do I want?  I apologize
 for my ignorance -  I am new to Linux, haven't used C in years, and have
 only dabbled in XML.

 I downloaded and installed libxml2-2.6.10 from the website, so that's what
 I'm trying to use on redhat linux.

 Thanks so much for your help!


|---------+--------------------------->
|         |           Daniel Veillard |
|         |           <veillard redhat|
|         |           .com>           |
|         |                           |
|         |           11/01/2004 04:36|
|         |           PM              |
|         |           Please respond  |
|         |           to veillard     |
|         |                           |
|---------+--------------------------->
  
-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                           
                    |
  |        To:      katy bradley kodak com                                                                    
                    |
  |        cc:      xml gnome org                                                                             
                    |
  |        Subject: Re: [xml] undefined symbol error with xmlNodeBufGetContent                                
                    |
  
-------------------------------------------------------------------------------------------------------------------------------|




On Mon, Nov 01, 2004 at 01:54:25PM -0500, katy bradley kodak com wrote:
I am compiling the code using:  gcc -o example `xml2-config --cflags`
example.c `xml2-config --libs` and it compiles without any errors or
warnings. When I run the program, after the line
xmlNodeBufGetContent(buf,
cur->xmlChildrenNode); I get the following error: ./example relocation
error: ./example undefined symbol: xmlNodeBufGetContent.

Am I missing a library I have to include? I thought that function was in
tree.h...

  I would bet ./example loads the wrong shared library. check with
ldd ./example which one is loaded (assuming being on Linux).

Daniel

--
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]