[G2c-devel] problems linking xml?
Status: Beta
Brought to you by:
jmargaglione
From: Dr. S. O. <set...@gm...> - 2005-11-15 06:10:50
|
Hi G2Cers, I am trying to build g2c on a pentium m machine running FC4 with gcc4 and I am running into a compilation error. The error seems to be a problem linkin= g to xml/xml2 libraries, but I can't figure out where to add -lxml etc. in th= e makefile. Can someone on the list point me in the right direction? The last lines of the output to 'make' are: cc -g -O2 -Wall -Wunused -o g2c g2c.o g2c_file_parser.o g2c_helpers.o g2c_widget.o g2c_project.o g2c_signal.o g2c_doc.o g2c_accel.o am_handler.o -rdynamic -L/usr/lib -L/usr/X11R6/lib -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -lasound -laudiofile -lm -lglib -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm g2c_doc.o(.text+0x22): In function `g2c_doc_new': /root/g2c-0.4/src/g2c_doc.c:88: undefined reference to `xmlParseFile' g2c_doc.o(.text+0x4b): In function `g2c_doc_destroy': /root/g2c-0.4/src/g2c_doc.c:99: undefined reference to `xmlFreeDoc' g2c_doc.o(.text+0x26b): In function `get_node_name': /root/g2c-0.4/src/g2c_doc.c:229: undefined reference to `xmlIsBlankNode' g2c_doc.o(.text+0x293): In function `get_node_text': /root/g2c-0.4/src/g2c_doc.c:236: undefined reference to `xmlIsBlankNode' g2c_doc.o(.text+0x2ac):/root/g2c-0.4/src/g2c_doc.c:237: undefined reference to `xmlNodeIsText' g2c_doc.o(.text+0x1e79): In function `parse_widget': /root/g2c-0.4/src/g2c_doc.c:363: undefined reference to `xmlIsBlankNode' g2c_doc.o(.text+0x2ee2): In function `g2c_doc_parse': /root/g2c-0.4/src/g2c_doc.c:114: undefined reference to `xmlDocGetRootElement' g2c_doc.o(.text+0x2f5b):/root/g2c-0.4/src/g2c_doc.c:271: undefined referenc= e to `xmlIsBlankNode' g2c_doc.o(.text+0x310a):/root/g2c-0.4/src/g2c_doc.c:299: undefined referenc= e to `xmlIsBlankNode' collect2: ld returned 1 exit status make[2]: *** [g2c] Error 1 make[2]: Leaving directory `/root/g2c-0.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/g2c-0.4' make: *** [all-recursive-am] Error 2 As you can see, the -lxml and/or -lxml2 handles don't appear in the guilty line, but I've had no luck adding them (I've added them to just about every library flags variable in the Makefile, which has changed almost nothing). Can anyone give me some advice on this? Cheers, Seth -- ccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccms Dr Seth Olsen, PhD Postdoctoral Fellow, Biomolecular Modeling Group Centre for Computational Molecular Science Chemistry Building, The University of Queensland Qld 4072, Brisbane, Australia tel (617) 33653732 fax (617) 33654623 email: s.o...@uq... Web: www.ccms.uq.edu.au <http://www.ccms.uq.edu.au> ccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccmsccms |