GNOME Bugzilla – Bug 60534
libxslt 1.0.4 and cygwin
Last modified: 2009-08-15 18:40:50 UTC
libxslt 1.0.4 (as well as the 9/14/2001 snapshot build) would not make properly under cygwin; it failed with the following error in extra.c: extra.c: In function `xsltFunctionLocalTime': extra.c:244: invalid operands to binary - make[2]: *** [extra.lo] Error 1 I was able to get it to build by changing the #if directive on line 152 of the file to also check for cygwin in addition to FreeBSD. Someone might want to confirm this is a legitimate fix though... my goal is just to get Perl's XML bundle installed under cygwin :) Here is the code as I have changed it, along with the related comment so that it can be merged more easily: -- BEGIN CODE BLOCK -------------------------------------------- /* * Seems FreeBSD decided not to provide the timezone libc varaible * C.f bug report #59570 http://bugzilla.gnome.org/show_bug.cgi?id=59570 */ #if !defined( __FreeBSD__) && !defined(__CYGWIN__) -- END CODE BLOCK ---------------------------------------------- OS/library versions: libxslt 1.0.4 (also 20010914 snapshot) cygwin 1.3.2(0.39/3/2) running on Windows 2000 5.00.2195 Service Pack 2 Please let me know if you need any further information. # Chris
Actually someone suggested a different change: http://mail.gnome.org/archives/xslt/2001-September/msg00033.html and there was a bit of debate on the best way to handle this Daniel
Okay I fixed it in a radical way see the closure of bug #59570 http://bugzilla.gnome.org/show_bug.cgi?id=59570 thanks this should be fixed in the next version, Daniel
Should be fixed in the last 2 releases, Daniel