[xml] Undefined references: gjobread.c won't compile

Date view Thread view Subject view Author view

From: Dan Turchin (dan@aeroprise.com)
Date: Thu Jan 04 2001 - 12:34:00 EST


I untarred the package, ran configure and did a make - all without
problems. When I try to compile the sample file, though, I'm told that the
functions in the header files can't be found. I think I'm missing
something simple...

Here's my gcc command (using a -l flag to find the correct header files):

# gcc -I/usr/local/libxml2-2.10/libxml -g -Wall gjobread.c -o gjobread

and here's the output:

/tmp/ccubsU6P.o: In function `parsePerson':
/usr/local/libxml2-2.10/example/gjobread.c:63: undefined reference to
`xmlNodeListGetString'
/usr/local/libxml2-2.10/example/gjobread.c:65: undefined reference to
`xmlNodeListGetString'
/tmp/ccubsU6P.o: In function `parseJob':
/usr/local/libxml2-2.10/example/gjobread.c:122: undefined reference to
`xmlGetProp'
/usr/local/libxml2-2.10/example/gjobread.c:128: undefined reference to
`xmlNodeListGetString'
/usr/local/libxml2-2.10/example/gjobread.c:130: undefined reference to
`xmlNodeListGetString'
/tmp/ccubsU6P.o: In function `parseGjobFile':
/usr/local/libxml2-2.10/example/gjobread.c:176: undefined reference to
`xmlParseFile'
/usr/local/libxml2-2.10/example/gjobread.c:183: undefined reference to
`xmlDocGetRootElement'
/usr/local/libxml2-2.10/example/gjobread.c:186: undefined reference to
`xmlFreeDoc'
/usr/local/libxml2-2.10/example/gjobread.c:189: undefined reference to
`xmlSearchNsByHref'
/usr/local/libxml2-2.10/example/gjobread.c:193: undefined reference to
`xmlFreeDoc'
/usr/local/libxml2-2.10/example/gjobread.c:198: undefined reference to
`xmlFreeDoc'
/usr/local/libxml2-2.10/example/gjobread.c:208: undefined reference to
`xmlFreeDoc'
/usr/local/libxml2-2.10/example/gjobread.c:218: undefined reference to
`xmlIsBlankNode'
/usr/local/libxml2-2.10/example/gjobread.c:228: undefined reference to
`xmlDocDump'
/usr/local/libxml2-2.10/example/gjobread.c:230: undefined reference to
`xmlFreeDoc'
/tmp/ccubsU6P.o: In function `main':
/usr/local/libxml2-2.10/example/gjobread.c:265: undefined reference to
`xmlCheckVersion'
/usr/local/libxml2-2.10/example/gjobread.c:266: undefined reference to
`xmlKeepBlanksDefault'
collect2: ld returned 1 exit status

The package is in /usr/local/libxml2-2.10 and the header files are in
/usr/local/libxml2-2.10/libxml.

Any ideas?
Thanks,

-dan

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jan 04 2001 - 13:43:36 EST