[Expat-discuss] help : how to use the expat-1.95.3

govindarajan varadharajulu we_gowind@yahoo.co.in
Sun Jun 30 00:11:01 2002


i am installed expat-1.95.3 in my sunOS5.8 but the
path for expat-1.95.3/lib and expat-1.95.3/bin is not
set.whenever i try to run my parser perl program is
not at all Identifying the parser methods.

these are the septs i have followed.
1) down loaded expat-1.95.3 from sourceforge.net 
2) put into my home directory(/misc/home/john/)
3) gunzip and tar the .gz file(it's created a file
expat-1.95.3)
4) ./configure -PREFIX=/misc/home/john/expat-1.95.3
5) ./configure CPPFLAGS=-DXML_UNICODE
6) ./configure CFLAGS="-g -O2 -fshort-wchar" PPFLAGS=-
   DXML_UNICODE_WCHAR_T
It's trowing error(<govind@tucson:>./configure
CFLAGS="-g -O2 -fshort-wchar" PPFLAGS=-DXML_UNICO>
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for gcc... gcc
checking for C compiler default output... configure:
error: C compiler cannot create executables)

7) make buildlib
8) make installlib
9) PATH=/usr/ccs/bin:$PATH make
throwing error(
cc -g -O2 -Wall -Wmissing-prototypes
-Wstrict-prototypes -fexceptions  -DXML_UNICODE -Ilib
-I. -o xmlwf/xmlwf.o -c xmlwf/xmlwf.c
/usr/ucb/cc:  language optional software package not
installed
*** Error code 1
make: Fatal error: Command failed for target
`xmlwf/xmlwf.o'
)
10)  LD_LIBRARY_PATH = {$LD_LIBRARY_PATH
}:/misc/home/john/expat-1.95.3

After this if i run any perl file having lib function
like

XML_Parser
XML_LChar *
XML_ExpatVersion();

throwing error 
(
syntax error at test.pl line 3, near "*
XML_ExpatVersion("
Execution of test.pl aborted due to compilation
errors.
)

Please advice what i want to do get this work well


govind


 





________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
       visit http://in.autos.yahoo.com