[ expat-Bugs-524247 ] linking problems

noreply@sourceforge.net noreply@sourceforge.net
Fri Mar 1 01:47:02 2002


Bugs item #524247, was opened at 2002-03-01 01:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=524247&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: linking problems

Initial Comment:
i've downloaded and installed (succesfully) the last 
version of expat (expat-1.95.2) on a linux red hat 7.1 
machine - g++ version is (gcc version 2.96 20000731)
i create a lib (.a) that uses expat
whenever i want to use this lib i get the following 
error message
../expat/lib/libexpat.a(xmlparse.o): In function 
`XML_ParserCreate_MM':
/users/xxx/tmp/expat-1.95.2/lib/xmlparse.c:589: 
undefined reference to `XmlPrologStateInit'
../expat/lib/libexpat.a(xmlparse.o): In function 
`XML_ExternalEntityParserCreate':
/users/xxx/tmp/expat-1.95.2/lib/xmlparse.c:794: 
undefined reference to 
`XmlPrologStateInitExternalEntity'
collect2: ld returned 1 exit status

(right before this one i had 
/usr/bin/ld: xmlrole.o: invalid string offset 
2090860544 >= 0 for section `.shstrtab'
/usr/bin/ld: xmlrole.o: invalid string offset 3407872 
>= 0 for section `'
/usr/bin/ld: xmlrole.o: invalid string offset 
2090860544 >= 0 for section `.shstrtab'
/usr/bin/ld: xmlrole.o: invalid string offset 
2297954304 >= 0 for section `'
/usr/bin/ld: xmlrole.o: invalid string offset 
2090860544 >= 0 for section `.shstrtab'
....

then i tried to use the -O option and it seems to have 
solved the 1st problem)
 


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=524247&group_id=10127