[ expat-Patches-502187 ] How to build Expat-1.95.2 on OS X 10.1.2
noreply@sourceforge.net
noreply@sourceforge.net
Sat Feb 16 13:03:03 2002
Patches item #502187, was opened at 2002-01-10 20:56
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=502187&group_id=10127
Category: Build Control
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Greg Stein (gstein)
Summary: How to build Expat-1.95.2 on OS X 10.1.2
Initial Comment:
How to build expat-1.95.2 on OS X 10.1.2
- Joel Rodrigues
1. username% tar -zxvf expat-1.95.2.tar.gz
2. cd expat-1.95.2
3. cp /usr/share/libtool/config.guess conftools/config.guess
cp /usr/share/libtool/config.sub conftools/config.sub
cp /usr/share/libtool/ltconfig conftools/ltconfig
cp /usr/share/libtool/ltmain.sh conftools/ltmain.sh
4. Change line 1375 of conftools/Itconfig to read like so :
darwin* | rhapsody*)
allow_undefined_flag='-undefined warning -flat_namespace'
5. In xmlwf/Makefile.in change
"LDFLAGS = @LDFLAGS@ -static" to "LDFLAGS = @LDFLAGS@ -dynamic"
6. Make the same change in examples/makefile.in :
"LDFLAGS = @LDFLAGS@ -static" to "LDFLAGS = @LDFLAGS@ -dynamic"
7. Run the following commands :
./configure
make
make check
sudo make install
8. You should see the foll. in the subsequent output :
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
usage: basename string [suffix]
- use the `-install_name LIBDIR/' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Cheers !
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2002-02-16 13:02
Message:
Logged In: NO
This does not work.. I get the following errors:
/usr/bin/libtool: file: xmltok.lo is not an object file (not
allowed in a library)
/usr/bin/libtool: file: xmlrole.lo is not an object file (not
allowed in a library)
make[1]: *** [libexpat.la] Error 1
make: *** [lib] Error 2
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=502187&group_id=10127