[ expat-Patches-502187 ] How to build Expat-1.95.2 on OS X 10.1.2
noreply@sourceforge.net
noreply@sourceforge.net
Sat Jun 1 16:49:01 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: Closed
>Resolution: Fixed
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: Greg Stein (gstein)
Date: 2002-06-01 16:48
Message:
Logged In: YES
user_id=6501
We've revamped the config/build system in the CVS version of
Expat (and the upcoming 1.95.3 release). Please see how well
those work for you.
I'm going to close this bug/patch as "fixed". Please feel
free to reopen with further fixes, based on the upcoming
release.
----------------------------------------------------------------------
Comment By: Greg Stein (gstein)
Date: 2002-05-17 18:51
Message:
Logged In: YES
user_id=6501
libtool is simply whacked on Mac OS X. We've got some work
to get things working properly. Some of the above problems
have been resolve (e.g. we don't use -static any more).
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2002-03-06 17:37
Message:
Logged In: NO
Me too.
----------------------------------------------------------------------
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