can not link against libxml2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libxml2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I try tolink against libxml2 I get undefined symbol errors from libxml2. Installed packages are: libxml2 libxml2-dev
I try to build the tutorial file from libxml2: http://
I try to build the programm like this:
gcc -o main $(xml2-config --cflags --libs) main.o
on other platforms (debian testing or ubuntu 10.04) this works flawlessly.
the complete output:
$ gcc -o main $(xml2-config --cflags --libs) main.o
main.o: In function `parseStory':
main.c:
main.c:
main.c:
main.o: In function `parseDoc':
main.c:
main.c:
main.c:
main.c:
main.c:
main.c:
main.c:
collect2: ld returned 1 exit status
$ xml2-config --cflags
-I/usr/
xml2-config --libs
-L/usr/
$ ls -l /usr/lib/
-rw-r--r-- 1 root root 2187982 May 18 21:52 /usr/lib/
-rw-r--r-- 1 root root 947 May 18 21:52 /usr/lib/
lrwxrwxrwx 1 root root 16 May 18 21:52 /usr/lib/
lrwxrwxrwx 1 root root 16 May 18 21:52 /usr/lib/
-rw-r--r-- 1 root root 1417368 May 18 21:52 /usr/lib/
$ nm -D /usr/lib/
0000000000054bd0 T xmlDocGetRootEl
0000000000358a08 D xmlFree
00000000000537e0 T xmlFreeDoc
0000000000051d50 T xmlNodeListGetS
000000000004e370 T xmlParseFile
00000000000aa9b0 T xmlStrcmp
Ubuntu version is 12.04 as amd64 and as x86.