Expat install


 
Thread Tools Search this Thread
Top Forums Programming Expat install
# 1  
Old 09-30-2004
Expat install

I downloaded the expat zip from ftp://ftp.jclark.com/pub/xml/expat.zip. I put all the files in the zip on my solaris server, under an 'expat' directory and ran make -f Makefile. Everything seemed to compile fine. Now i have a .o in the xmlparse directory for instance.

When i try to compile the elements.c in the samples directory i get some errors.

[rss10@jsh1035c:JSDISC01] make -f Makefile elements
gcc -Wall -O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD -o elements elements.c
Undefined first referenced
symbol in file
XML_GetErrorCode /tmp/ccqZ4SQ5.o
XML_ErrorString /tmp/ccqZ4SQ5.o
XML_ParserCreate /tmp/ccqZ4SQ5.o
XML_ParserFree /tmp/ccqZ4SQ5.o
XML_GetCurrentLineNumber /tmp/ccqZ4SQ5.o
XML_SetUserData /tmp/ccqZ4SQ5.o
XML_Parse /tmp/ccqZ4SQ5.o
XML_SetElementHandler /tmp/ccqZ4SQ5.o
ld: fatal: Symbol referencing errors. No output written to elements
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `elements'


Any ideas how I do this? I cpoied the elements.c to the expat directory and changed the include at the top to say "xmlparse/xmlparse.h" but it didn't make any difference.

Any ideas?
# 2  
Old 09-30-2004
[rss10@jsh1035c:JSDISC01] make -f Makefile elements
gcc -Wall -O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD -o elements elements.c

The above Makefile seems not support to build an application because there is not any .o or library dependency in gcc command.

I believe expat's Makefile could generate library, thus you just need to write your own makefile instead of the above one.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 install dvd drive boots, but not recoginized by install process

I am trying to build a Sun Ultra 10 with solaris 10. This computer is one of a collection that was donated to the non-profic company I work for. All media was wiped before I recieved them, so I am starting from stratch. I downloaded the Solaris 10 ISO and burned a DVD. The computer came with a... (4 Replies)
Discussion started by: gwillhight
4 Replies

2. Shell Programming and Scripting

Where to find 64-bit based perl module like XML::Parser::Expat?

Q: Where to get a 64 bit Expat.so? I run a perl script and got this error: Can't load '/usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/XML/Parser/Expat/Expat.so' for module XML:parser::Expat: ld.so.1:myPerl: fatal:... (0 Replies)
Discussion started by: lilili07
0 Replies

3. Linux

install macbook pro fedora10 ???((<<if can install, how to install? >> ))

If may install can Tells everybody ??? (0 Replies)
Discussion started by: kzBSD
0 Replies

4. HP-UX

Oracle 9i install: Error in invoking target install of makefile

I receive an error while installing Oracle 9i: Error in invoking target install of makefile /opt/oracle/product/9.2.0/sqlplus/lib/ins_sqlplus.mk Furthermore: $ whoami oracle $ echo $ORACLE_HOME /opt/oracle/product/9.2.0 $ pwd /opt/oracle/product/9.2.0/sqlplus/lib $ ll total... (5 Replies)
Discussion started by: chris2005
5 Replies
Login or Register to Ask a Question