RE: [xml] CYGWIN compile problems



Robert,
Thanks for the info, but I have gotten it to work by removing the test for
__CYGWIN__ from xmlversion.h. If I understand correctly, gcc supports
dynamic linking in cygwin but libtool does not. I have also found that the
configure scripts are unaffected by --disable-shared in cygwin. Whether or
not the libraries are built static, dynamic, or both should be a
configuration issue and currently cygwin is forced dynamic (and consequently
does not work for me). There may not be a perfect solution to this problem
but I would prefer that the default configuration would always successfully
build when you type: ./configure; make; make install. 

Charles Bozeman
(256) 961-2139


-----Original Message-----
From: Robert Collins [mailto:robert collins itdomain com au]
Sent: Tuesday, January 15, 2002 3:38 PM
To: EXT-Bozeman, Charles H; xml gnome org
Subject: Re: [xml] CYGWIN compile problems


Charles,
    Run setup.exe from cygwin.com, and tick the 'src' box for libxml
there.

If you need the latest and greatest, give me a coupla days and I'll have
updated my patch kit.

Cygwin _does_ support .dll's, but the libtool version needed to support
them is not released (yet).

Rob

===
----- Original Message -----
From: "EXT-Bozeman, Charles H" <charles h bozeman Boeing com>
To: <xml gnome org>
Sent: Wednesday, January 16, 2002 3:50 AM
Subject: [xml] CYGWIN compile problems


I cannot compile libxml2-2.4.13 from the sources unless I define
IN_LIBXML
or LIBXML_STATIC. I am using cygwin which does not support dynamic
libraries
(at least mine doesn't); I thought you had to have MINGW for dynamic
libraries. I have tried:
./configure --disable-shared
but that had no effect. I traced the problem to line 200 in
xmlversion.h:
#ifndef LIBXML_DLL_IMPORT
#if (defined(_MSC_VER) || defined(__CYGWIN__)) && !defined(IN_LIBXML)
&&
!defined(LIBXML_STATIC)
#define LIBXML_DLL_IMPORT __declspec(dllimport)
#else
#define LIBXML_DLL_IMPORT
#endif
#endif

Maybe there is some other besides __CYGWIN__ that should force dynamic
compilation. Anyone have any ideas?

Charles Bozeman
(256) 961-2139

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]