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

Date view Thread view Subject view Author view

From: Alfred Reibenschuh (alfred.reibenschu@chello.at)
Date: Thu Jan 04 2001 - 13:43:35 EST


hi !

you seem to lack the

-lxml -L/usr/local/libxml2-2.10/

options since you must link against the library too :)

-- Alfred Reibenschuh

linux  geek, | Sometimes I hear voices in my head ,  telling me to do
perl monger, | strange things,  but I always wonder  if that's just me
 roleplayer  | thinking about things I really want to do anyway. Why
& sf-fanatic | do the voices never say, "Your dosage needs adjustment"?
        look @ http://penguin.at0.net/~fredo/
<http://penguin.at0.net/~fredo/>

> -----Original Message-----
> From: xml-request@rufus.w3.org [mailto:xml-request@rufus.w3.org]On
> Behalf Of Dan Turchin
> Sent: Thursday, January 04, 2001 6:34 PM
> To: 'xml@rpmfind.net'
> Subject: [xml] Undefined references: gjobread.c won't compile
>
>
>
> 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
>

----
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