[Expat-bugs] [ expat-Bugs-615815 ] Can not build expat-1.95.5.tar.gz
noreply at sourceforge.net
noreply at sourceforge.net
Sat Dec 7 17:13:01 EST 2002
Bugs item #615815, was opened at 2002-09-28 10:43
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=615815&group_id=10127
Category: Build control
Group: Platform Specific
>Status: Closed
Resolution: Postponed
Priority: 5
Submitted By: Guy Adani (guyad11)
Assigned to: Gerrit Haase (siebenschlaefer)
Summary: Can not build expat-1.95.5.tar.gz
Initial Comment:
I have downloaded expat-1.95.5.tar.gz to my PC, which has
cygwin installed. According to the docs, I can install like I am
running on a UNIX machine :
"Building under Win32
If you're using the GNU compiler under cygwin, follow the Unix
directions in the next section. Otherwise if you have Microsoft's
Developer Studio installed, then from Windows Explorer double-
click on "expat.dsp" in the lib directory and build and install in the
usual manner."
After running configure, I run make and got the following error:
"$ make
/bin/bash ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-
prototypes -
Wstrict-prototypes -fexceptions -I./lib -I. -no-undefined -version-
info 4:0:4
-rpath /usr/local/lib -o libexpat.la lib/xmlparse.lo lib/xmltok.lo
lib/xmlrole.
lo
/usr/lib/libcygwin.a(libcmain.o)(.text+0x6a): undefined reference
to `WinMain@16
'
collect2: ld returned 1 exit status
make: *** [libexpat.la] Error 1
"
What do I need to do to install ?
Attached is the configure log file.
Thanks,
Guy Adani
----------------------------------------------------------------------
Comment By: Gerrit Haase (siebenschlaefer)
Date: 2002-12-07 18:10
Message:
Logged In: YES
user_id=76037
Hello,
The problem with Cygwin is, that we use the devel version of
libtool because libtool 1.4 is really broken (for Cygwin needs).
In the future, after libtool 1.5 or later is released and used all
over the place there will be no more major problems like this.
Since the libtool and other autotool scripts in the original
expat source are built using libtool 1.4.x they don't do the
right thing for the Cygwin development chain and therefore
all the scripts need to be rebuild with the current Cygwin
'devel'-autotoolchain. That is (as you can see in the patch):
autoupdate
(cd conftools/; rm -f ltmain.sh ltconfig)
aclocal -I conftools
libtoolize --force --copy --automake
aclocal -I conftools
ltfiles=/usr/autotool/devel/share
cp $ltfiles/aclocal/libtool.m4 conftools/libtool.m4
cp $ltfiles/libtool/missing \
$ltfiles/libtool/install-sh \
$ltfiles/libtool/mkinstalldirs \
conftools/
# Generate the autoconf header template (expat_config.h.in)
and ./configure
#
${AUTOHEADER:-autoheader}
echo "Creating configure ..."
### do some work to toss config.cache?
${AUTOCONF:-autoconf}
# toss this; it gets created by autoconf on some systems
rm -rf autom4te*.cache
# exit with the right value, so any calling script can continue
exit 0
SOLUTION:
=========
Get the soucre from any Cygwin mirror or my site:
http://koeln.convey.de/cywgin/expat/expat-1.95.5-1-src.tar.bz2
There is a buildscript and a patch included which will prepare
the source for building on Cygwin.
Also available separately:
http://koeln.convey.de/cywgin/expat/expat-1.95.5-1.sh
http://koeln.convey.de/cywgin/expat/expat-1.95.5-1.patch
HTH,
Gerrit
----------------------------------------------------------------------
Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-12-04 15:52
Message:
Logged In: YES
user_id=3066
Assigned to the Cygwin expert.
----------------------------------------------------------------------
Comment By: Frerk Boltjes (boltjes)
Date: 2002-12-04 14:57
Message:
Logged In: YES
user_id=662066
It seems, there is a bug in the configure script. To build
a Cygwin DLL the '-shared' option has to be used.
Change line 4765, 4767 and 4769 from
$CC .....
to
$CC -shared .....
and start './configure' and 'make' again. Now, everything
should work fine.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=615815&group_id=10127
More information about the Expat-bugs
mailing list