nokogiri.c: In function `Init_nokogiri':
nokogiri.c:100:3: error: stray `\' in program
rb_const_set(mNokogiri, rb_intern("NOKOGIRI_LIBXML2_PATH"), NOKOGIRI_STR_NEW2
(NOKOGIRI_LIBXML2_PATH));
-DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_
EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLREL
AXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_
XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHA
VE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/robertm/.gem/ruby/gems/nokogiri-1.
6.6.2/ports/x86_64-unknown-cygwin/libxslt/1.1.28/include -I/home/robertm/.gem/ru
by/gems/nokogiri-1.6.6.2/ports/x86_64-unknown-cygwin/libxml2/2.9.2/include/libxm
l2 -DLIBXML_STATIC -I/home/robertm/.gem/ruby/gems/nokogiri-1.6.6.2/ports/x86_64-
unknown-cygwin/libxml2/2.9.2/include/libxml2 -DLIBXML_STATIC -DNOKOGIRI_LIBXM
L2_PATH\=\"/home/robertm/.gem/ruby/gems/nokogiri-1.6.6.2/ports/x86_64-unknown-cy
gwin/libxml2/2.9.2\" -DNOKOGIRI_LIBXML2_PATCHES\=\"0001-Revert-Missing-initializ
ation-for-the-catalog-module.patch\ 0002-Fix-missing-entities-after-CVE-2014-366
0-fix.patch\" -DNOKOGIRI_LIBXSLT_PATH\=\"/home/robertm/.gem/ruby/gems/nokogiri-1
.6.6.2/ports/x86_64-unknown-cygwin/libxslt/1.1.28\" -DNOKOGIRI_LIBXSLT_PATCHES\=
\"0001-Adding-doc-update-related-to-1.1.28.patch\ 0002-Fix-a-couple-of-places-wh
ere-f-printf-parameters-wer.patch\ 0003-Initialize-pseudo-random-number-generato
r-with-curre.patch\ 0004-EXSLT-function-str-replace-is-broken-as-is.patch\ 0006-
Fix-str-padding-to-work-with-UTF-8-strings.patch\ 0007-Separate-function-for-pre
dicate-matching-in-patterns.patch\ 0008-Fix-direct-pattern-matching.patch\ 0009-
Fix-certain-patterns-with-predicates.patch\ 0010-Fix-handling-of-UTF-8-strings-i
n-EXSLT-crypto-module.patch\ 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-p
ath.patch\ 0014-Fix-for-bug-436589.patch\ 0015-Fix-mkdir-for-mingw.patch\" -ggd
b -O2 -pipe -Wimplicit-function-declaration -g -DXP_UNIX -Wall -Wcast-qual -W
write-strings -Wconversion -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_L
IBRARIES -o nokogiri.o -c nokogiri.c
--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at http://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.
nokogiri -v
# Nokogiri (1.5.0)
---
warnings: []
nokogiri: 1.5.0
ruby:
version: 2.0.0
platform: x86_64-cygwin
description: ruby 2.0.0p598 (2014-11-13) [x86_64-cygwin]
engine: ruby
libxml:
binding: extension
compiled: 2.9.2
loaded: 2.9.2
We don't currently support native building of Nokogiri. Ongoing discussion here: https://github.com/sparklemotion/nokogiri/issues/1190Instead, please prefer one of the windows-platform gems that contain pre-built DLLs.That said, I have no idea whether our Windows gems work for Cygwin; we've only tested against the Ruby one-click installer. Would love to hear how you get on.
We don't currently support native building of Nokogiri. Ongoing discussion here: https://github.com/sparklemotion/nokogiri/issues/1190
Instead, please prefer one of the windows-platform gems that contain pre-built DLLs.That said, I have no idea whether our Windows gems work for Cygwin; we've only tested against the Ruby one-click installer. Would love to hear how you get on.
Robert,
Thanks for asking this question.
Please send all your logs so we can see what's going on that's causing the failure.
As I said, we don't officially support cygwin, so this is not a bug; but I'm happy to help you out if it's easy to fix in your case.
--
Robert,
Thanks for asking this question.
Please send all your logs so we can see what's going on that's causing the failure.
As I said, we don't officially support cygwin, so this is not a bug; but I'm happy to help you out if it's easy to fix in your case.
Hi Mike!
On Wed, Mar 11, 2015 at 11:37 AM, Mike Dalessio wrote:Robert,
Thanks for asking this question.
Please send all your logs so we can see what's going on that's causing the failure.
OK. I have attached gem_make.out from the 1.6.6.1 and 1.6.6.2 builds. As the original message (below) indicates this seems to be some issue with CPP macros. Versions of Cygwin and compiler can be found at the bottom of my last email (see below).As I said, we don't officially support cygwin, so this is not a bug; but I'm happy to help you out if it's easy to fix in your case.
Thank you!
--
Hi,The error in the log, as you presumably have seen is:```nokogiri.c: In function 'Init_nokogiri':nokogiri.c:100:3: error: stray '\' in programrb_const_set(mNokogiri, rb_intern("NOKOGIRI_LIBXML2_PATH"), NOKOGIRI_STR_NEW2(NOKOGIRI_LIBXML2_PATH));^```
This string comes from the mini_portile recipe and is passed in via a compiler command-line option (see https://github.com/sparklemotion/nokogiri/blob/master/ext/nokogiri/extconf.rb#L529).Are you using two different gemsets for your 1.6.6.1 and your 1.6.6.2 installations?
If so, can you tell me what versions of mini_portile you're using in each?
Hi again!
On Tue, Mar 24, 2015 at 1:01 PM, Mike Dalessio wrote:Hi,The error in the log, as you presumably have seen is:```nokogiri.c: In function 'Init_nokogiri':nokogiri.c:100:3: error: stray '\' in programrb_const_set(mNokogiri, rb_intern("NOKOGIRI_LIBXML2_PATH"), NOKOGIRI_STR_NEW2(NOKOGIRI_LIBXML2_PATH));^```Right.
Hi,
The 1.6.7 release candidate supports native builds on Windows, but I have no idea whether Cygwin will work.
Try it and let us know?
--
Yes, we build and test against the Ruby one-click installer devkit.
1.6.7 final should be cut in the next few days.
--