[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

expat shared library

  • From: James Thompson <jamest@m...>
  • To: xml-dev@i...
  • Date: Wed, 14 Jul 1999 23:19:06 -0500 (CDT)

libexpat.la

I'd check the archives but I can't until I get a message on the list with
the instructions on the bottom.  Kind of a catch 22 :-)

Trying to build a shared library out of expat so I can add it my my own
shared lib

Modified Makefile

  CC=libtool gcc

  modified the OBJS to reference .lo in place of .o

  added

libexpat.la: $(OBJS)
        libtool gcc -g -O -o libexpat.la $(OBS) -rpath /usr/local/lib -lm

did a 
make 
make libexpat.la

next (as root)
          libtool install -c libexpat.la /usr/local/lib/liblibexpat.la  
          libtool --finish /usr/local/lib
          cp xmlparse/xmlparse.h /usr/local/include/
          cp xmlparse/xmlparse.h /usr/local/include/
	  /sbin/ldconfig 

Then I added -lexpat to my Makefile.am on my program

doing a make / make check results in

[jamest@calvin obelisk]$ make check
Making check in obelib
make[1]: Entering directory `/home/jamest/obelisk/obelib'
make  test test2
make[2]: Entering directory `/home/jamest/obelisk/obelib'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/glib/include    -g -O2 -c
test.c
/bin/sh ../libtool --mode=link gcc  -g -O2  -o test  test.o libobe.la  
gcc -g -O2 -o .libs/test test.o .libs/libobe.so -lglib -lgmodule -lexpat
-Wl,--rpath -Wl,/usr/local/lib
.libs/libobe.so: undefined reference to `XML_SetElementHandler'
.libs/libobe.so: undefined reference to `XML_Parse'
.libs/libobe.so: undefined reference to `XML_ParserFree'
.libs/libobe.so: undefined reference to `XML_ErrorString'
.libs/libobe.so: undefined reference to `XML_ParserCreate'
.libs/libobe.so: undefined reference to `XML_SetUserData'
.libs/libobe.so: undefined reference to `XML_GetErrorCode'
.libs/libobe.so: undefined reference to `XML_GetCurrentLineNumber'
collect2: ld returned 1 exit status
make[2]: *** [test] Error 1
make[2]: Leaving directory `/home/jamest/obelisk/obelib'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/jamest/obelisk/obelib'
make: *** [check-recursive] Error 1


Any ideas on what I'm missing/doing wrong? 

TIA

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson    138 Cardwell Hall  Manhattan, Ks   66506    785-532-0561 
Kansas State University                          Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<




xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.