[Expat-discuss] Problem while running the examples outline.c

Greg Martin Greg.Martin at TELUS.COM
Fri Jan 9 14:49:00 EST 2004


The XMLPARSEAPI macro needs to be undefined when you build expat with gcc for Solaris (AIX) too. It's not a problem if you use Sun's compiler. One way to cheat on this is to go into lib/expat.h in the source distro before you build expat and put 
#define XMLCALL 
near the top. I guess someone should figure out the correct autoconf macro thingy for this but this will work.

-----Original Message-----
From: expat-discuss-bounces+greg.martin=telus.com at libexpat.org
[mailto:expat-discuss-bounces+greg.martin=telus.com at libexpat.org]On
Behalf Of suresh.soolannagan at bt.com
Sent: Friday, January 09, 2004 11:51 AM
To: expat-discuss at libexpat.org
Subject: [Expat-discuss] Problem while running the examples outline.c


Dear all,

I get an error while running outline.c & elements.c on Sun Solaris
(SPARC Machine)

Getting the following error 

expat.h:898: warning: `cdecl' attribute directive ignored
expat.h:899: warning: `cdecl' attribute directive ignored
expat.h:905: warning: `cdecl' attribute directive ignored
expat.h:920: warning: `cdecl' attribute directive ignored
expat.h:929: warning: `cdecl' attribute directive ignored
expat.h:933: warning: `cdecl' attribute directive ignored
expat.h:936: warning: `cdecl' attribute directive ignored
expat.h:939: warning: `cdecl' attribute directive ignored
expat.h:943: warning: `cdecl' attribute directive ignored
expat.h:947: warning: `cdecl' attribute directive ignored
expat.h:951: warning: `cdecl' attribute directive ignored
expat.h:963: warning: `cdecl' attribute directive ignored
expat.h:985: warning: `cdecl' attribute directive ignored
outline.c:35: warning: `cdecl' attribute directive ignored
outline.c:53: warning: `cdecl' attribute directive ignored
Undefined                       first referenced
 symbol                             in file
XML_GetErrorCode                    /var/tmp/ccuwaGHs1.o
XML_ErrorString                     /var/tmp/ccuwaGHs1.o
XML_ParserCreate                    /var/tmp/ccuwaGHs1.o
XML_GetCurrentLineNumber            /var/tmp/ccuwaGHs1.o
XML_Parse                           /var/tmp/ccuwaGHs1.o
XML_SetElementHandler               /var/tmp/ccuwaGHs1.o
ld: fatal: Symbol referencing errors. No output written to a.out

First I need to compile the outline.c and elements.c

Then I am trying to implement XML using C on HTTP (I am using Apache Web
server)

Can any one please help me out? 

Cheers,
Suresh
_______________________________________________
Expat-discuss mailing list
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss





More information about the Expat-discuss mailing list