libxml-ruby-r19mingw 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. data/CHANGES +481 -0
  2. data/LICENSE +22 -0
  3. data/README +161 -0
  4. data/Rakefile +182 -0
  5. data/doc/css/normal.css +182 -0
  6. data/doc/img/raze-tiny.png +0 -0
  7. data/doc/img/red-cube.jpg +0 -0
  8. data/doc/img/xml-ruby.png +0 -0
  9. data/doc/index.xml +43 -0
  10. data/doc/install.xml +77 -0
  11. data/doc/layout.rhtml +38 -0
  12. data/doc/layout.xsl +67 -0
  13. data/doc/license.xml +32 -0
  14. data/doc/log/changelog.xml +1324 -0
  15. data/doc/log/changelog.xsl +42 -0
  16. data/ext/libxml/Makefile +187 -0
  17. data/ext/libxml/extconf.h +4 -0
  18. data/ext/libxml/extconf.rb +122 -0
  19. data/ext/libxml/libxml.c +77 -0
  20. data/ext/libxml/mkmf.log +880 -0
  21. data/ext/libxml/ruby_libxml.h +93 -0
  22. data/ext/libxml/ruby_xml.c +893 -0
  23. data/ext/libxml/ruby_xml.h +10 -0
  24. data/ext/libxml/ruby_xml_attr.c +352 -0
  25. data/ext/libxml/ruby_xml_attr.h +14 -0
  26. data/ext/libxml/ruby_xml_attr_decl.c +171 -0
  27. data/ext/libxml/ruby_xml_attr_decl.h +13 -0
  28. data/ext/libxml/ruby_xml_attributes.c +277 -0
  29. data/ext/libxml/ruby_xml_attributes.h +17 -0
  30. data/ext/libxml/ruby_xml_cbg.c +86 -0
  31. data/ext/libxml/ruby_xml_document.c +936 -0
  32. data/ext/libxml/ruby_xml_document.h +17 -0
  33. data/ext/libxml/ruby_xml_dtd.c +257 -0
  34. data/ext/libxml/ruby_xml_dtd.h +9 -0
  35. data/ext/libxml/ruby_xml_encoding.c +134 -0
  36. data/ext/libxml/ruby_xml_encoding.h +12 -0
  37. data/ext/libxml/ruby_xml_error.c +1004 -0
  38. data/ext/libxml/ruby_xml_error.h +14 -0
  39. data/ext/libxml/ruby_xml_html_parser.c +92 -0
  40. data/ext/libxml/ruby_xml_html_parser.h +12 -0
  41. data/ext/libxml/ruby_xml_html_parser_context.c +308 -0
  42. data/ext/libxml/ruby_xml_html_parser_context.h +12 -0
  43. data/ext/libxml/ruby_xml_html_parser_options.c +40 -0
  44. data/ext/libxml/ruby_xml_html_parser_options.h +12 -0
  45. data/ext/libxml/ruby_xml_input_cbg.c +191 -0
  46. data/ext/libxml/ruby_xml_input_cbg.h +20 -0
  47. data/ext/libxml/ruby_xml_io.c +30 -0
  48. data/ext/libxml/ruby_xml_io.h +9 -0
  49. data/ext/libxml/ruby_xml_namespace.c +170 -0
  50. data/ext/libxml/ruby_xml_namespace.h +12 -0
  51. data/ext/libxml/ruby_xml_namespaces.c +295 -0
  52. data/ext/libxml/ruby_xml_namespaces.h +11 -0
  53. data/ext/libxml/ruby_xml_node.c +1386 -0
  54. data/ext/libxml/ruby_xml_node.h +13 -0
  55. data/ext/libxml/ruby_xml_parser.c +94 -0
  56. data/ext/libxml/ruby_xml_parser.h +14 -0
  57. data/ext/libxml/ruby_xml_parser_context.c +982 -0
  58. data/ext/libxml/ruby_xml_parser_context.h +12 -0
  59. data/ext/libxml/ruby_xml_parser_options.c +68 -0
  60. data/ext/libxml/ruby_xml_parser_options.h +14 -0
  61. data/ext/libxml/ruby_xml_reader.c +1002 -0
  62. data/ext/libxml/ruby_xml_reader.h +14 -0
  63. data/ext/libxml/ruby_xml_relaxng.c +111 -0
  64. data/ext/libxml/ruby_xml_relaxng.h +10 -0
  65. data/ext/libxml/ruby_xml_sax2_handler.c +322 -0
  66. data/ext/libxml/ruby_xml_sax2_handler.h +12 -0
  67. data/ext/libxml/ruby_xml_sax_parser.c +137 -0
  68. data/ext/libxml/ruby_xml_sax_parser.h +12 -0
  69. data/ext/libxml/ruby_xml_schema.c +159 -0
  70. data/ext/libxml/ruby_xml_schema.h +11 -0
  71. data/ext/libxml/ruby_xml_version.h +9 -0
  72. data/ext/libxml/ruby_xml_xinclude.c +18 -0
  73. data/ext/libxml/ruby_xml_xinclude.h +13 -0
  74. data/ext/libxml/ruby_xml_xpath.c +107 -0
  75. data/ext/libxml/ruby_xml_xpath.h +12 -0
  76. data/ext/libxml/ruby_xml_xpath_context.c +387 -0
  77. data/ext/libxml/ruby_xml_xpath_context.h +11 -0
  78. data/ext/libxml/ruby_xml_xpath_expression.c +83 -0
  79. data/ext/libxml/ruby_xml_xpath_expression.h +12 -0
  80. data/ext/libxml/ruby_xml_xpath_object.c +336 -0
  81. data/ext/libxml/ruby_xml_xpath_object.h +19 -0
  82. data/ext/libxml/ruby_xml_xpointer.c +101 -0
  83. data/ext/libxml/ruby_xml_xpointer.h +13 -0
  84. data/ext/mingw/Rakefile +34 -0
  85. data/ext/mingw/build.rake +41 -0
  86. data/ext/vc/libxml_ruby.sln +26 -0
  87. data/lib/libxml.rb +30 -0
  88. data/lib/libxml/attr.rb +111 -0
  89. data/lib/libxml/attr_decl.rb +78 -0
  90. data/lib/libxml/attributes.rb +12 -0
  91. data/lib/libxml/document.rb +190 -0
  92. data/lib/libxml/error.rb +88 -0
  93. data/lib/libxml/hpricot.rb +76 -0
  94. data/lib/libxml/html_parser.rb +94 -0
  95. data/lib/libxml/namespace.rb +60 -0
  96. data/lib/libxml/namespaces.rb +36 -0
  97. data/lib/libxml/node.rb +385 -0
  98. data/lib/libxml/ns.rb +20 -0
  99. data/lib/libxml/parser.rb +365 -0
  100. data/lib/libxml/properties.rb +21 -0
  101. data/lib/libxml/reader.rb +27 -0
  102. data/lib/libxml/sax_callbacks.rb +178 -0
  103. data/lib/libxml/sax_parser.rb +56 -0
  104. data/lib/libxml/tree.rb +27 -0
  105. data/lib/libxml/xpath_object.rb +14 -0
  106. data/lib/xml.rb +14 -0
  107. data/lib/xml/libxml.rb +8 -0
  108. data/setup.rb +1585 -0
  109. data/test/etc_doc_to_s.rb +19 -0
  110. data/test/ets_doc_file.rb +15 -0
  111. data/test/ets_doc_to_s.rb +21 -0
  112. data/test/ets_gpx.rb +26 -0
  113. data/test/ets_node_gc.rb +21 -0
  114. data/test/ets_test.xml +2 -0
  115. data/test/ets_tsr.rb +9 -0
  116. data/test/model/atom.xml +13 -0
  117. data/test/model/bands.xml +5 -0
  118. data/test/model/books.xml +146 -0
  119. data/test/model/merge_bug_data.xml +58 -0
  120. data/test/model/ruby-lang.html +238 -0
  121. data/test/model/rubynet.xml +79 -0
  122. data/test/model/rubynet_project +1 -0
  123. data/test/model/shiporder.rnc +28 -0
  124. data/test/model/shiporder.rng +86 -0
  125. data/test/model/shiporder.xml +23 -0
  126. data/test/model/shiporder.xsd +31 -0
  127. data/test/model/soap.xml +27 -0
  128. data/test/model/xinclude.xml +5 -0
  129. data/test/tc_attr.rb +170 -0
  130. data/test/tc_attr_decl.rb +131 -0
  131. data/test/tc_attributes.rb +133 -0
  132. data/test/tc_deprecated_require.rb +11 -0
  133. data/test/tc_document.rb +113 -0
  134. data/test/tc_document_write.rb +118 -0
  135. data/test/tc_dtd.rb +123 -0
  136. data/test/tc_error.rb +136 -0
  137. data/test/tc_html_parser.rb +138 -0
  138. data/test/tc_namespace.rb +59 -0
  139. data/test/tc_namespaces.rb +174 -0
  140. data/test/tc_node.rb +181 -0
  141. data/test/tc_node_cdata.rb +49 -0
  142. data/test/tc_node_comment.rb +30 -0
  143. data/test/tc_node_copy.rb +40 -0
  144. data/test/tc_node_edit.rb +158 -0
  145. data/test/tc_node_text.rb +69 -0
  146. data/test/tc_node_write.rb +83 -0
  147. data/test/tc_node_xlink.rb +26 -0
  148. data/test/tc_parser.rb +330 -0
  149. data/test/tc_parser_context.rb +186 -0
  150. data/test/tc_properties.rb +36 -0
  151. data/test/tc_reader.rb +284 -0
  152. data/test/tc_relaxng.rb +51 -0
  153. data/test/tc_sax_parser.rb +274 -0
  154. data/test/tc_schema.rb +51 -0
  155. data/test/tc_traversal.rb +220 -0
  156. data/test/tc_xinclude.rb +19 -0
  157. data/test/tc_xml.rb +224 -0
  158. data/test/tc_xpath.rb +193 -0
  159. data/test/tc_xpath_context.rb +78 -0
  160. data/test/tc_xpath_expression.rb +35 -0
  161. data/test/tc_xpointer.rb +72 -0
  162. data/test/test_suite.rb +33 -0
  163. metadata +260 -0
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="ISO-8859-1"?>
2
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
+
4
+ <xsl:output cdata-section-elements="script"/>
5
+
6
+ <xsl:template match="/">
7
+
8
+ <html>
9
+ <head>
10
+ <title>Facets Changelog</title>
11
+ <link REL='SHORTCUT ICON' HREF="img/xml-ruby.png" />
12
+ <style>
13
+ td { font-family: monospace; font-size: 8pt; padding: 0px 10px; }
14
+ </style>
15
+ </head>
16
+ <body>
17
+ <div class="container">
18
+ <h1>LibXML ChangeLog</h1>
19
+ <table style="width: 100%;">
20
+ <xsl:apply-templates />
21
+ </table>
22
+ <br/><br/>
23
+ <div class='copyright'>
24
+ Copyright &#x00A9; 2001-2006 LibXML-Ruby Development Team<br/>
25
+ Changelog is pure XML/XSLT.<br/>
26
+ </div>
27
+ </div>
28
+ </body>
29
+ </html>
30
+
31
+ </xsl:template>
32
+
33
+ <xsl:template match="logentry">
34
+ <tr>
35
+ <td><b><pre><xsl:value-of select="msg"/></pre></b></td>
36
+ <td><xsl:value-of select="author"/></td>
37
+ <td><xsl:value-of select="date"/></td>
38
+ </tr>
39
+ </xsl:template>
40
+
41
+ </xsl:stylesheet>
42
+
@@ -0,0 +1,187 @@
1
+
2
+ SHELL = /bin/sh
3
+
4
+ #### Start of system configuration section. ####
5
+
6
+ srcdir = .
7
+ topdir = /usr/local/include/ruby-1.9.1
8
+ hdrdir = /usr/local/include/ruby-1.9.1
9
+ arch_hdrdir = /usr/local/include/ruby-1.9.1/$(arch)
10
+ VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
11
+ prefix = $(DESTDIR)/usr/local
12
+ rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
13
+ exec_prefix = $(prefix)
14
+ vendorhdrdir = $(rubyhdrdir)/vendor_ruby
15
+ sitehdrdir = $(rubyhdrdir)/site_ruby
16
+ rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
17
+ vendordir = $(rubylibprefix)/vendor_ruby
18
+ sitedir = $(rubylibprefix)/site_ruby
19
+ ridir = $(datarootdir)/$(RI_BASE_NAME)
20
+ mandir = $(datarootdir)/man
21
+ localedir = $(datarootdir)/locale
22
+ libdir = $(exec_prefix)/lib
23
+ psdir = $(docdir)
24
+ pdfdir = $(docdir)
25
+ dvidir = $(docdir)
26
+ htmldir = $(docdir)
27
+ infodir = $(datarootdir)/info
28
+ docdir = $(datarootdir)/doc/$(PACKAGE)
29
+ oldincludedir = $(DESTDIR)/usr/include
30
+ includedir = $(prefix)/include
31
+ localstatedir = $(prefix)/var
32
+ sharedstatedir = $(prefix)/com
33
+ sysconfdir = $(prefix)/etc
34
+ datadir = $(datarootdir)
35
+ datarootdir = $(prefix)/share
36
+ libexecdir = $(exec_prefix)/libexec
37
+ sbindir = $(exec_prefix)/sbin
38
+ bindir = $(exec_prefix)/bin
39
+ rubylibdir = $(rubylibprefix)/$(ruby_version)
40
+ archdir = $(rubylibdir)/$(arch)
41
+ sitelibdir = $(sitedir)/$(ruby_version)
42
+ sitearchdir = $(sitelibdir)/$(sitearch)
43
+ vendorlibdir = $(vendordir)/$(ruby_version)
44
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
45
+
46
+ CC = gcc
47
+ CXX = CC
48
+ LIBRUBY = lib$(RUBY_SO_NAME).dll.a
49
+ LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
50
+ LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
51
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
52
+ OUTFLAG = -o
53
+ COUTFLAG = -o
54
+
55
+ RUBY_EXTCONF_H = extconf.h
56
+ cflags = $(optflags) $(debugflags) $(warnflags)
57
+ optflags = -O3
58
+ debugflags = -g
59
+ warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long
60
+ CFLAGS = $(cflags) -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) -I/usr/include/libxml2 -I/usr/local/include
61
+ INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) -I/usr/include/libxml2 -I/usr/local/include
62
+ DEFS =
63
+ CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" $(DEFS) $(cppflags)
64
+ CXXFLAGS = $(CFLAGS) $(cxxflags)
65
+ ldflags = -L.
66
+ dldflags = -Wl,--enable-auto-image-base,--enable-auto-import
67
+ ARCH_FLAG =
68
+ DLDFLAGS = $(ldflags) $(dldflags)
69
+ LDSHARED = $(CC) -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)
70
+ LDSHAREDXX = $(CXX) -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)
71
+ AR = ar
72
+ EXEEXT = .exe
73
+
74
+ RUBY_BASE_NAME = ruby
75
+ RUBY_INSTALL_NAME = ruby
76
+ RUBY_SO_NAME = ruby191
77
+ arch = i386-cygwin
78
+ sitearch = $(arch)
79
+ ruby_version = 1.9.1
80
+ ruby = /usr/local/bin/ruby
81
+ RUBY = $(ruby)
82
+ RM = rm -f
83
+ RM_RF = $(RUBY) -run -e rm -- -rf
84
+ RMDIRS = $(RUBY) -run -e rmdir -- -p
85
+ MAKEDIRS = /usr/bin/mkdir -p
86
+ INSTALL = /usr/bin/install -c
87
+ INSTALL_PROG = $(INSTALL) -m 0755
88
+ INSTALL_DATA = $(INSTALL) -m 644
89
+ COPY = cp
90
+
91
+ #### End of system configuration section. ####
92
+
93
+ preload =
94
+
95
+ libpath = . $(libdir) /usr/local/lib
96
+ LIBPATH = -L. -L$(libdir) -L/usr/local/lib
97
+ DEFFILE =
98
+
99
+ CLEANFILES = mkmf.log
100
+ DISTCLEANFILES =
101
+ DISTCLEANDIRS =
102
+
103
+ extout =
104
+ extout_prefix =
105
+ target_prefix =
106
+ LOCAL_LIBS =
107
+ LIBS = $(LIBRUBYARG_SHARED) -lxml2 -liconv -lz -lm -lpthread -lrt -ldl -lcrypt
108
+ SRCS = libxml.c ruby_xml.c ruby_xml_attr.c ruby_xml_attributes.c ruby_xml_attr_decl.c ruby_xml_cbg.c ruby_xml_document.c ruby_xml_dtd.c ruby_xml_encoding.c ruby_xml_error.c ruby_xml_html_parser.c ruby_xml_html_parser_context.c ruby_xml_html_parser_options.c ruby_xml_input_cbg.c ruby_xml_io.c ruby_xml_namespace.c ruby_xml_namespaces.c ruby_xml_node.c ruby_xml_parser.c ruby_xml_parser_context.c ruby_xml_parser_options.c ruby_xml_reader.c ruby_xml_relaxng.c ruby_xml_sax2_handler.c ruby_xml_sax_parser.c ruby_xml_schema.c ruby_xml_xinclude.c ruby_xml_xpath.c ruby_xml_xpath_context.c ruby_xml_xpath_expression.c ruby_xml_xpath_object.c ruby_xml_xpointer.c
109
+ OBJS = libxml.o ruby_xml.o ruby_xml_attr.o ruby_xml_attributes.o ruby_xml_attr_decl.o ruby_xml_cbg.o ruby_xml_document.o ruby_xml_dtd.o ruby_xml_encoding.o ruby_xml_error.o ruby_xml_html_parser.o ruby_xml_html_parser_context.o ruby_xml_html_parser_options.o ruby_xml_input_cbg.o ruby_xml_io.o ruby_xml_namespace.o ruby_xml_namespaces.o ruby_xml_node.o ruby_xml_parser.o ruby_xml_parser_context.o ruby_xml_parser_options.o ruby_xml_reader.o ruby_xml_relaxng.o ruby_xml_sax2_handler.o ruby_xml_sax_parser.o ruby_xml_schema.o ruby_xml_xinclude.o ruby_xml_xpath.o ruby_xml_xpath_context.o ruby_xml_xpath_expression.o ruby_xml_xpath_object.o ruby_xml_xpointer.o
110
+ TARGET = libxml_ruby
111
+ DLLIB = $(TARGET).so
112
+ EXTSTATIC =
113
+ STATIC_LIB =
114
+
115
+ BINDIR = $(bindir)
116
+ RUBYCOMMONDIR = $(sitedir)$(target_prefix)
117
+ RUBYLIBDIR = $(sitelibdir)$(target_prefix)
118
+ RUBYARCHDIR = $(sitearchdir)$(target_prefix)
119
+ HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
120
+ ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
121
+
122
+ TARGET_SO = $(DLLIB)
123
+ CLEANLIBS = $(TARGET).so
124
+ CLEANOBJS = *.o *.bak
125
+
126
+ all: $(DLLIB)
127
+ static: $(STATIC_LIB)
128
+ .PHONY: all install static install-so install-rb
129
+ .PHONY: clean clean-so clean-rb
130
+
131
+ clean-rb-default::
132
+ clean-rb::
133
+ clean-so::
134
+ clean: clean-so clean-rb-default clean-rb
135
+ @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
136
+
137
+ distclean-rb-default::
138
+ distclean-rb::
139
+ distclean-so::
140
+ distclean: clean distclean-so distclean-rb-default distclean-rb
141
+ @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
142
+ @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
143
+ @-$(RMDIRS) $(DISTCLEANDIRS)
144
+
145
+ realclean: distclean
146
+ install: install-so install-rb
147
+
148
+ install-so: $(RUBYARCHDIR)
149
+ install-so: $(RUBYARCHDIR)/$(DLLIB)
150
+ $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
151
+ @-$(MAKEDIRS) $(@D)
152
+ $(INSTALL_PROG) $(DLLIB) $(@D)
153
+ install-rb: pre-install-rb install-rb-default
154
+ install-rb-default: pre-install-rb-default
155
+ pre-install-rb: Makefile
156
+ pre-install-rb-default: Makefile
157
+ $(RUBYARCHDIR):
158
+ $(MAKEDIRS) $@
159
+
160
+ site-install: site-install-so site-install-rb
161
+ site-install-so: install-so
162
+ site-install-rb: install-rb
163
+
164
+ .SUFFIXES: .c .m .cc .cxx .cpp .C .o
165
+
166
+ .cc.o:
167
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
168
+
169
+ .cxx.o:
170
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
171
+
172
+ .cpp.o:
173
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
174
+
175
+ .C.o:
176
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
177
+
178
+ .c.o:
179
+ $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
180
+
181
+ $(DLLIB): $(OBJS) Makefile
182
+ @-$(RM) $(@)
183
+ $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
184
+
185
+
186
+
187
+ $(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h $(RUBY_EXTCONF_H)
@@ -0,0 +1,4 @@
1
+ #ifndef EXTCONF_H
2
+ #define EXTCONF_H
3
+ #define HAVE_ZLIB_H 1
4
+ #endif
@@ -0,0 +1,122 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rbconfig'
4
+
5
+ def method_missing(s, *args)
6
+ if v = Config::CONFIG[s] || Config::CONFIG[s.upcase]
7
+ return v
8
+ else
9
+ puts "missing: #{s}"
10
+ super
11
+ end
12
+ end
13
+
14
+ require 'mkmf'
15
+
16
+ if defined?(CFLAGS)
17
+ if CFLAGS.index(CONFIG['CCDLFLAGS'])
18
+ $CFLAGS = CFLAGS + ' ' + CONFIG['CCDLFLAGS']
19
+ else
20
+ $CFLAGS = CFLAGS
21
+ end
22
+ else
23
+ $CFLAGS = CONFIG['CFLAGS']
24
+ end
25
+ $LDFLAGS = CONFIG['LDFLAGS']
26
+ $LIBPATH.push(Config::CONFIG['libdir'])
27
+
28
+ def crash(str)
29
+ printf(" extconf failure: %s\n", str)
30
+ exit 1
31
+ end
32
+
33
+ dir_config('iconv')
34
+ dir_config('zlib')
35
+
36
+ have_library('socket','socket')
37
+ have_library('nsl','gethostbyname')
38
+
39
+ unless have_library('m', 'atan')
40
+ # try again for gcc 4.0
41
+ saveflags = $CFLAGS
42
+ $CFLAGS += ' -fno-builtin'
43
+ unless have_library('m', 'atan')
44
+ crash('need libm')
45
+ end
46
+ $CFLAGS = saveflags
47
+ end
48
+
49
+ unless have_library('z', 'inflate') or
50
+ have_library('zlib', 'inflate') or
51
+ have_library('zlib1', 'inflate')
52
+ crash('need zlib')
53
+ else
54
+ $defs.push('-DHAVE_ZLIB_H')
55
+ end
56
+
57
+ unless have_library('iconv','iconv_open') or
58
+ have_library('iconv','libiconv_open') or
59
+ have_library('libiconv', 'libiconv_open') or
60
+ have_library('libiconv', 'iconv_open') or
61
+ have_library('c','iconv_open') or
62
+ have_library('recode','iconv_open') or
63
+ have_library('iconv')
64
+ crash(<<EOL)
65
+ need libiconv.
66
+
67
+ Install the libiconv or try passing one of the following options
68
+ to extconf.rb:
69
+
70
+ --with-iconv-dir=/path/to/iconv
71
+ --with-iconv-lib=/path/to/iconv/lib
72
+ --with-iconv-include=/path/to/iconv/include
73
+ EOL
74
+ end
75
+
76
+ if (xc = with_config('xml2-config')) or RUBY_PLATFORM.match(/darwin/i) then
77
+ xc = 'xml2-config' if xc == true or xc.nil?
78
+ cflags = `#{xc} --cflags`.chomp
79
+ if $? != 0
80
+ cflags = nil
81
+ else
82
+ libs = `#{xc} --libs`.chomp
83
+ if $? != 0
84
+ libs = nil
85
+ else
86
+ $CFLAGS += ' ' + cflags
87
+ $libs = libs + " " + $libs
88
+ end
89
+ end
90
+ else
91
+ dir_config('xml2')
92
+ end
93
+
94
+ unless (have_library('xml2', 'xmlParseDoc') or
95
+ have_library('libxml2', 'xmlParseDoc') or
96
+ find_library('xml2', 'xmlParseDoc', '/opt/lib', '/usr/local/lib', '/usr/lib')) and
97
+ (have_header('libxml/xmlversion.h') or
98
+ find_header('libxml/xmlversion.h',
99
+ '/opt/include/libxml2',
100
+ '/usr/local/include/libxml2',
101
+ '/usr/include/libxml2'))
102
+ crash(<<EOL)
103
+ need libxml2.
104
+
105
+ Install the library or try one of the following options to extconf.rb:
106
+
107
+ --with-xml2-config=/path/to/xml2-config
108
+ --with-xml2-dir=/path/to/libxml2
109
+ --with-xml2-lib=/path/to/libxml2/lib
110
+ --with-xml2-include=/path/to/libxml2/include
111
+ EOL
112
+ end
113
+
114
+ # For FreeBSD add /usr/local/include
115
+ $INCFLAGS << " -I/usr/local/include"
116
+
117
+ $CFLAGS << ' ' << $INCFLAGS
118
+
119
+ #$INSTALLFILES = [["libxml.rb", "$(RUBYLIBDIR)", "../xml"]]
120
+
121
+ create_header()
122
+ create_makefile('libxml_ruby')
@@ -0,0 +1,77 @@
1
+ #include "ruby_libxml.h"
2
+
3
+ #if RUBY_INTERN_H
4
+ #include <ruby/util.h>
5
+ #else
6
+ #include <util.h>
7
+ #endif
8
+
9
+ VALUE mLibXML;
10
+
11
+ static void rxml_init_memory(void)
12
+ {
13
+ /* Disable for now - broke attributes.
14
+ xmlGcMemSetup(
15
+ (xmlFreeFunc)ruby_xfree,
16
+ (xmlMallocFunc)ruby_xmalloc,
17
+ (xmlMallocFunc)ruby_xmalloc,
18
+ (xmlReallocFunc)ruby_xrealloc,
19
+ (xmlStrdupFunc)ruby_strdup
20
+ );*/
21
+ }
22
+
23
+ #if defined(_WIN32)
24
+ __declspec(dllexport)
25
+ #endif
26
+ void Init_libxml_ruby(void)
27
+ {
28
+ /* The libxml gem provides Ruby language bindings for GNOME's Libxml2
29
+ * XML toolkit. To get started you may:
30
+ *
31
+ * require 'xml'
32
+ * document = XML::Document.new
33
+ *
34
+ * However, when creating an application or library you plan to
35
+ * redistribute, it is best to not add the LibXML module to the global
36
+ * namespace, in which case you can either write your code like this:
37
+ *
38
+ * require 'libxml'
39
+ * document = LibXML::XML::Document.new
40
+ *
41
+ * Refer to the README file to get started and the LICENSE file for
42
+ * copyright and distribution information.
43
+ */
44
+ mLibXML = rb_define_module("LibXML");
45
+
46
+ rxml_init_memory();
47
+ rxml_init_xml();
48
+ rxml_init_io();
49
+ rxml_init_error();
50
+ rxml_init_encoding();
51
+ rxml_init_parser();
52
+ rxml_init_parser_context();
53
+ rxml_init_parser_options();
54
+ rxml_init_node();
55
+ rxml_init_attributes();
56
+ rxml_init_attr();
57
+ rxml_init_attr_decl();
58
+ rxml_init_document();
59
+ rxml_init_namespaces();
60
+ rxml_init_namespace();
61
+ rxml_init_sax_parser();
62
+ rxml_init_sax2_handler();
63
+ rxml_init_xinclude();
64
+ rxml_init_xpath();
65
+ rxml_init_xpath_object();
66
+ rxml_init_xpath_context();
67
+ rxml_init_xpath_expression();
68
+ rxml_init_xpointer();
69
+ rxml_init_html_parser();
70
+ rxml_init_html_parser_options();
71
+ rxml_init_html_parser_context();
72
+ rxml_init_input_callbacks();
73
+ rxml_init_dtd();
74
+ rxml_init_schema();
75
+ rxml_init_relaxng();
76
+ rxml_init_reader();
77
+ }
@@ -0,0 +1,880 @@
1
+ missing: to_int
2
+ missing: to_hash
3
+ missing: to_path
4
+ missing: to_int
5
+ missing: to_ary
6
+ missing: to_ary
7
+ missing: to_ary
8
+ missing: to_ary
9
+ missing: to_ary
10
+ missing: to_path
11
+ missing: to_path
12
+ missing: to_path
13
+ missing: to_path
14
+ missing: to_path
15
+ missing: to_path
16
+ missing: to_hash
17
+ missing: to_hash
18
+ missing: to_hash
19
+ missing: to_path
20
+ missing: to_int
21
+ missing: to_hash
22
+ missing: to_path
23
+ missing: to_int
24
+ missing: to_ary
25
+ missing: to_ary
26
+ missing: to_ary
27
+ missing: to_ary
28
+ missing: to_path
29
+ missing: to_path
30
+ missing: to_path
31
+ missing: to_ary
32
+ missing: to_ary
33
+ missing: to_ary
34
+ missing: to_hash
35
+ missing: to_hash
36
+ missing: to_hash
37
+ missing: to_path
38
+ missing: to_int
39
+ missing: to_hash
40
+ missing: to_path
41
+ missing: to_int
42
+ missing: to_ary
43
+ missing: to_ary
44
+ missing: to_ary
45
+ missing: to_ary
46
+ missing: to_path
47
+ missing: to_path
48
+ missing: to_path
49
+ have_library: checking for socket() in -lsocket... -------------------- no
50
+
51
+ missing: to_int
52
+ missing: to_hash
53
+ missing: to_path
54
+ missing: to_ary
55
+ missing: to_ary
56
+ missing: to_ary
57
+ missing: to_ary
58
+ missing: to_ary
59
+ missing: to_ary
60
+ missing: to_hash
61
+ missing: to_hash
62
+ missing: to_hash
63
+ missing: to_path
64
+ missing: to_int
65
+ missing: to_hash
66
+ missing: to_path
67
+ missing: to_int
68
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lpthread -lrt -ldl -lcrypt "
69
+ missing: to_hash
70
+ missing: to_hash
71
+ missing: to_ary
72
+ checked program was:
73
+ /* begin */
74
+ 1: #include "ruby.h"
75
+ 2:
76
+ 3: int main() {return 0;}
77
+ /* end */
78
+
79
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lsocket -lpthread -lrt -ldl -lcrypt "
80
+ missing: to_hash
81
+ missing: to_hash
82
+ missing: to_ary
83
+ conftest.c: In function ‘t’:
84
+ conftest.c:5: error: ‘socket’ undeclared (first use in this function)
85
+ conftest.c:5: error: (Each undeclared identifier is reported only once
86
+ conftest.c:5: error: for each function it appears in.)
87
+ checked program was:
88
+ /* begin */
89
+ 1: #include "ruby.h"
90
+ 2:
91
+ 3: /*top*/
92
+ 4: int main() {return 0;}
93
+ 5: int t() { void ((*volatile p)()); p = (void ((*)()))socket; return 0; }
94
+ /* end */
95
+
96
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lsocket -lpthread -lrt -ldl -lcrypt "
97
+ missing: to_hash
98
+ missing: to_hash
99
+ missing: to_ary
100
+ /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lsocket
101
+ collect2: ld returned 1 exit status
102
+ checked program was:
103
+ /* begin */
104
+ 1: #include "ruby.h"
105
+ 2:
106
+ 3: /*top*/
107
+ 4: int main() {return 0;}
108
+ 5: int t() { socket(); return 0; }
109
+ /* end */
110
+
111
+ missing: to_ary
112
+ missing: to_ary
113
+ missing: to_path
114
+ missing: to_path
115
+ missing: to_path
116
+ --------------------
117
+
118
+ missing: to_int
119
+ missing: to_hash
120
+ missing: to_path
121
+ missing: to_int
122
+ missing: to_ary
123
+ missing: to_ary
124
+ missing: to_ary
125
+ missing: to_ary
126
+ missing: to_path
127
+ missing: to_path
128
+ missing: to_path
129
+ missing: to_ary
130
+ missing: to_ary
131
+ missing: to_ary
132
+ missing: to_hash
133
+ missing: to_hash
134
+ missing: to_hash
135
+ missing: to_path
136
+ missing: to_int
137
+ missing: to_hash
138
+ missing: to_path
139
+ missing: to_int
140
+ missing: to_ary
141
+ missing: to_ary
142
+ missing: to_ary
143
+ missing: to_ary
144
+ missing: to_path
145
+ missing: to_path
146
+ missing: to_path
147
+ have_library: checking for gethostbyname() in -lnsl... -------------------- no
148
+
149
+ missing: to_int
150
+ missing: to_hash
151
+ missing: to_path
152
+ missing: to_ary
153
+ missing: to_ary
154
+ missing: to_ary
155
+ missing: to_hash
156
+ missing: to_hash
157
+ missing: to_hash
158
+ missing: to_path
159
+ missing: to_int
160
+ missing: to_hash
161
+ missing: to_path
162
+ missing: to_int
163
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lnsl -lpthread -lrt -ldl -lcrypt "
164
+ missing: to_hash
165
+ missing: to_hash
166
+ missing: to_ary
167
+ conftest.c: In function ‘t’:
168
+ conftest.c:5: error: ‘gethostbyname’ undeclared (first use in this function)
169
+ conftest.c:5: error: (Each undeclared identifier is reported only once
170
+ conftest.c:5: error: for each function it appears in.)
171
+ checked program was:
172
+ /* begin */
173
+ 1: #include "ruby.h"
174
+ 2:
175
+ 3: /*top*/
176
+ 4: int main() {return 0;}
177
+ 5: int t() { void ((*volatile p)()); p = (void ((*)()))gethostbyname; return 0; }
178
+ /* end */
179
+
180
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lnsl -lpthread -lrt -ldl -lcrypt "
181
+ missing: to_hash
182
+ missing: to_hash
183
+ missing: to_ary
184
+ /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lnsl
185
+ collect2: ld returned 1 exit status
186
+ checked program was:
187
+ /* begin */
188
+ 1: #include "ruby.h"
189
+ 2:
190
+ 3: /*top*/
191
+ 4: int main() {return 0;}
192
+ 5: int t() { gethostbyname(); return 0; }
193
+ /* end */
194
+
195
+ missing: to_ary
196
+ missing: to_ary
197
+ missing: to_path
198
+ missing: to_path
199
+ missing: to_path
200
+ --------------------
201
+
202
+ missing: to_int
203
+ missing: to_hash
204
+ missing: to_path
205
+ missing: to_int
206
+ missing: to_ary
207
+ missing: to_ary
208
+ missing: to_ary
209
+ missing: to_ary
210
+ missing: to_path
211
+ missing: to_path
212
+ missing: to_path
213
+ missing: to_ary
214
+ missing: to_ary
215
+ missing: to_ary
216
+ missing: to_hash
217
+ missing: to_hash
218
+ missing: to_hash
219
+ missing: to_path
220
+ missing: to_int
221
+ missing: to_hash
222
+ missing: to_path
223
+ missing: to_int
224
+ missing: to_ary
225
+ missing: to_ary
226
+ missing: to_ary
227
+ missing: to_ary
228
+ missing: to_path
229
+ missing: to_path
230
+ missing: to_path
231
+ have_library: checking for atan() in -lm... -------------------- no
232
+
233
+ missing: to_int
234
+ missing: to_hash
235
+ missing: to_path
236
+ missing: to_ary
237
+ missing: to_ary
238
+ missing: to_ary
239
+ missing: to_hash
240
+ missing: to_hash
241
+ missing: to_hash
242
+ missing: to_path
243
+ missing: to_int
244
+ missing: to_hash
245
+ missing: to_path
246
+ missing: to_int
247
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lm -lpthread -lrt -ldl -lcrypt "
248
+ missing: to_hash
249
+ missing: to_hash
250
+ missing: to_ary
251
+ conftest.c: In function ‘t’:
252
+ conftest.c:5: error: ‘atan’ undeclared (first use in this function)
253
+ conftest.c:5: error: (Each undeclared identifier is reported only once
254
+ conftest.c:5: error: for each function it appears in.)
255
+ checked program was:
256
+ /* begin */
257
+ 1: #include "ruby.h"
258
+ 2:
259
+ 3: /*top*/
260
+ 4: int main() {return 0;}
261
+ 5: int t() { void ((*volatile p)()); p = (void ((*)()))atan; return 0; }
262
+ /* end */
263
+
264
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lm -lpthread -lrt -ldl -lcrypt "
265
+ missing: to_hash
266
+ missing: to_hash
267
+ missing: to_ary
268
+ conftest.c: In function ‘t’:
269
+ conftest.c:5: warning: incompatible implicit declaration of built-in function ‘atan’
270
+ conftest.c:5: error: too few arguments to function ‘atan’
271
+ checked program was:
272
+ /* begin */
273
+ 1: #include "ruby.h"
274
+ 2:
275
+ 3: /*top*/
276
+ 4: int main() {return 0;}
277
+ 5: int t() { atan(); return 0; }
278
+ /* end */
279
+
280
+ missing: to_ary
281
+ missing: to_ary
282
+ missing: to_path
283
+ missing: to_path
284
+ missing: to_path
285
+ --------------------
286
+
287
+ missing: to_int
288
+ missing: to_hash
289
+ missing: to_path
290
+ missing: to_int
291
+ missing: to_ary
292
+ missing: to_ary
293
+ missing: to_ary
294
+ missing: to_ary
295
+ missing: to_path
296
+ missing: to_path
297
+ missing: to_path
298
+ missing: to_ary
299
+ missing: to_ary
300
+ missing: to_ary
301
+ missing: to_hash
302
+ missing: to_hash
303
+ missing: to_hash
304
+ missing: to_path
305
+ missing: to_int
306
+ missing: to_hash
307
+ missing: to_path
308
+ missing: to_int
309
+ missing: to_ary
310
+ missing: to_ary
311
+ missing: to_ary
312
+ missing: to_ary
313
+ missing: to_ary
314
+ missing: to_path
315
+ missing: to_path
316
+ missing: to_path
317
+ missing: to_path
318
+ missing: to_path
319
+ missing: to_path
320
+ have_library: checking for atan() in -lm... -------------------- yes
321
+
322
+ missing: to_int
323
+ missing: to_hash
324
+ missing: to_path
325
+ missing: to_ary
326
+ missing: to_ary
327
+ missing: to_ary
328
+ missing: to_hash
329
+ missing: to_hash
330
+ missing: to_hash
331
+ missing: to_path
332
+ missing: to_int
333
+ missing: to_hash
334
+ missing: to_path
335
+ missing: to_int
336
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fno-builtin conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lm -lpthread -lrt -ldl -lcrypt "
337
+ missing: to_hash
338
+ missing: to_hash
339
+ missing: to_ary
340
+ conftest.c: In function ‘t’:
341
+ conftest.c:5: error: ‘atan’ undeclared (first use in this function)
342
+ conftest.c:5: error: (Each undeclared identifier is reported only once
343
+ conftest.c:5: error: for each function it appears in.)
344
+ checked program was:
345
+ /* begin */
346
+ 1: #include "ruby.h"
347
+ 2:
348
+ 3: /*top*/
349
+ 4: int main() {return 0;}
350
+ 5: int t() { void ((*volatile p)()); p = (void ((*)()))atan; return 0; }
351
+ /* end */
352
+
353
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fno-builtin conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lruby191-static -lm -lpthread -lrt -ldl -lcrypt "
354
+ missing: to_hash
355
+ missing: to_hash
356
+ missing: to_ary
357
+ checked program was:
358
+ /* begin */
359
+ 1: #include "ruby.h"
360
+ 2:
361
+ 3: /*top*/
362
+ 4: int main() {return 0;}
363
+ 5: int t() { atan(); return 0; }
364
+ /* end */
365
+
366
+ missing: to_ary
367
+ missing: to_ary
368
+ missing: to_path
369
+ missing: to_path
370
+ missing: to_path
371
+ --------------------
372
+
373
+ missing: to_int
374
+ missing: to_hash
375
+ missing: to_path
376
+ missing: to_int
377
+ missing: to_ary
378
+ missing: to_ary
379
+ missing: to_ary
380
+ missing: to_ary
381
+ missing: to_path
382
+ missing: to_path
383
+ missing: to_path
384
+ missing: to_ary
385
+ missing: to_ary
386
+ missing: to_ary
387
+ missing: to_hash
388
+ missing: to_hash
389
+ missing: to_hash
390
+ missing: to_path
391
+ missing: to_int
392
+ missing: to_hash
393
+ missing: to_path
394
+ missing: to_int
395
+ missing: to_ary
396
+ missing: to_ary
397
+ missing: to_ary
398
+ missing: to_ary
399
+ missing: to_ary
400
+ missing: to_path
401
+ missing: to_path
402
+ missing: to_path
403
+ missing: to_path
404
+ missing: to_path
405
+ missing: to_path
406
+ have_library: checking for inflate() in -lz... -------------------- yes
407
+
408
+ missing: to_int
409
+ missing: to_hash
410
+ missing: to_path
411
+ missing: to_ary
412
+ missing: to_ary
413
+ missing: to_ary
414
+ missing: to_hash
415
+ missing: to_hash
416
+ missing: to_hash
417
+ missing: to_path
418
+ missing: to_int
419
+ missing: to_hash
420
+ missing: to_path
421
+ missing: to_int
422
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lm -lruby191-static -lz -lm -lpthread -lrt -ldl -lcrypt "
423
+ missing: to_hash
424
+ missing: to_hash
425
+ missing: to_ary
426
+ conftest.c: In function ‘t’:
427
+ conftest.c:5: error: ‘inflate’ undeclared (first use in this function)
428
+ conftest.c:5: error: (Each undeclared identifier is reported only once
429
+ conftest.c:5: error: for each function it appears in.)
430
+ checked program was:
431
+ /* begin */
432
+ 1: #include "ruby.h"
433
+ 2:
434
+ 3: /*top*/
435
+ 4: int main() {return 0;}
436
+ 5: int t() { void ((*volatile p)()); p = (void ((*)()))inflate; return 0; }
437
+ /* end */
438
+
439
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lm -lruby191-static -lz -lm -lpthread -lrt -ldl -lcrypt "
440
+ missing: to_hash
441
+ missing: to_hash
442
+ missing: to_ary
443
+ checked program was:
444
+ /* begin */
445
+ 1: #include "ruby.h"
446
+ 2:
447
+ 3: /*top*/
448
+ 4: int main() {return 0;}
449
+ 5: int t() { inflate(); return 0; }
450
+ /* end */
451
+
452
+ missing: to_ary
453
+ missing: to_ary
454
+ missing: to_path
455
+ missing: to_path
456
+ missing: to_path
457
+ --------------------
458
+
459
+ missing: to_int
460
+ missing: to_hash
461
+ missing: to_path
462
+ missing: to_int
463
+ missing: to_ary
464
+ missing: to_ary
465
+ missing: to_ary
466
+ missing: to_ary
467
+ missing: to_path
468
+ missing: to_path
469
+ missing: to_path
470
+ missing: to_ary
471
+ missing: to_ary
472
+ missing: to_ary
473
+ missing: to_hash
474
+ missing: to_hash
475
+ missing: to_hash
476
+ missing: to_path
477
+ missing: to_int
478
+ missing: to_hash
479
+ missing: to_path
480
+ missing: to_int
481
+ missing: to_ary
482
+ missing: to_ary
483
+ missing: to_ary
484
+ missing: to_ary
485
+ missing: to_path
486
+ missing: to_path
487
+ missing: to_path
488
+ have_library: checking for iconv_open() in -liconv... -------------------- no
489
+
490
+ missing: to_int
491
+ missing: to_hash
492
+ missing: to_path
493
+ missing: to_ary
494
+ missing: to_ary
495
+ missing: to_ary
496
+ missing: to_hash
497
+ missing: to_hash
498
+ missing: to_hash
499
+ missing: to_path
500
+ missing: to_int
501
+ missing: to_hash
502
+ missing: to_path
503
+ missing: to_int
504
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lz -lm -lruby191-static -liconv -lz -lm -lpthread -lrt -ldl -lcrypt "
505
+ missing: to_hash
506
+ missing: to_hash
507
+ missing: to_ary
508
+ conftest.c: In function ‘t’:
509
+ conftest.c:5: error: ‘iconv_open’ undeclared (first use in this function)
510
+ conftest.c:5: error: (Each undeclared identifier is reported only once
511
+ conftest.c:5: error: for each function it appears in.)
512
+ checked program was:
513
+ /* begin */
514
+ 1: #include "ruby.h"
515
+ 2:
516
+ 3: /*top*/
517
+ 4: int main() {return 0;}
518
+ 5: int t() { void ((*volatile p)()); p = (void ((*)()))iconv_open; return 0; }
519
+ /* end */
520
+
521
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lz -lm -lruby191-static -liconv -lz -lm -lpthread -lrt -ldl -lcrypt "
522
+ missing: to_hash
523
+ missing: to_hash
524
+ missing: to_ary
525
+ /tmp/ccdJJeoz.o: In function `t':
526
+ /home/guangzhong Chen/libxml-ruby/ext/libxml/conftest.c:5: undefined reference to `_iconv_open'
527
+ collect2: ld returned 1 exit status
528
+ checked program was:
529
+ /* begin */
530
+ 1: #include "ruby.h"
531
+ 2:
532
+ 3: /*top*/
533
+ 4: int main() {return 0;}
534
+ 5: int t() { iconv_open(); return 0; }
535
+ /* end */
536
+
537
+ missing: to_ary
538
+ missing: to_ary
539
+ missing: to_path
540
+ missing: to_path
541
+ missing: to_path
542
+ --------------------
543
+
544
+ missing: to_int
545
+ missing: to_hash
546
+ missing: to_path
547
+ missing: to_int
548
+ missing: to_ary
549
+ missing: to_ary
550
+ missing: to_ary
551
+ missing: to_ary
552
+ missing: to_path
553
+ missing: to_path
554
+ missing: to_path
555
+ missing: to_ary
556
+ missing: to_ary
557
+ missing: to_ary
558
+ missing: to_hash
559
+ missing: to_hash
560
+ missing: to_hash
561
+ missing: to_path
562
+ missing: to_int
563
+ missing: to_hash
564
+ missing: to_path
565
+ missing: to_int
566
+ missing: to_ary
567
+ missing: to_ary
568
+ missing: to_ary
569
+ missing: to_ary
570
+ missing: to_ary
571
+ missing: to_path
572
+ missing: to_path
573
+ missing: to_path
574
+ missing: to_path
575
+ missing: to_path
576
+ missing: to_path
577
+ have_library: checking for libiconv_open() in -liconv... -------------------- yes
578
+
579
+ missing: to_int
580
+ missing: to_hash
581
+ missing: to_path
582
+ missing: to_ary
583
+ missing: to_ary
584
+ missing: to_ary
585
+ missing: to_hash
586
+ missing: to_hash
587
+ missing: to_hash
588
+ missing: to_path
589
+ missing: to_int
590
+ missing: to_hash
591
+ missing: to_path
592
+ missing: to_int
593
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lz -lm -lruby191-static -liconv -lz -lm -lpthread -lrt -ldl -lcrypt "
594
+ missing: to_hash
595
+ missing: to_hash
596
+ missing: to_ary
597
+ conftest.c: In function ‘t’:
598
+ conftest.c:5: error: ‘libiconv_open’ undeclared (first use in this function)
599
+ conftest.c:5: error: (Each undeclared identifier is reported only once
600
+ conftest.c:5: error: for each function it appears in.)
601
+ checked program was:
602
+ /* begin */
603
+ 1: #include "ruby.h"
604
+ 2:
605
+ 3: /*top*/
606
+ 4: int main() {return 0;}
607
+ 5: int t() { void ((*volatile p)()); p = (void ((*)()))libiconv_open; return 0; }
608
+ /* end */
609
+
610
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -lz -lm -lruby191-static -liconv -lz -lm -lpthread -lrt -ldl -lcrypt "
611
+ missing: to_hash
612
+ missing: to_hash
613
+ missing: to_ary
614
+ checked program was:
615
+ /* begin */
616
+ 1: #include "ruby.h"
617
+ 2:
618
+ 3: /*top*/
619
+ 4: int main() {return 0;}
620
+ 5: int t() { libiconv_open(); return 0; }
621
+ /* end */
622
+
623
+ missing: to_ary
624
+ missing: to_ary
625
+ missing: to_path
626
+ missing: to_path
627
+ missing: to_path
628
+ --------------------
629
+
630
+ missing: to_int
631
+ missing: to_hash
632
+ missing: to_path
633
+ missing: to_int
634
+ missing: to_ary
635
+ missing: to_ary
636
+ missing: to_ary
637
+ missing: to_ary
638
+ missing: to_path
639
+ missing: to_path
640
+ missing: to_path
641
+ missing: to_ary
642
+ missing: to_ary
643
+ missing: to_ary
644
+ missing: to_hash
645
+ missing: to_hash
646
+ missing: to_hash
647
+ missing: to_path
648
+ missing: to_int
649
+ missing: to_hash
650
+ missing: to_path
651
+ missing: to_int
652
+ missing: to_ary
653
+ missing: to_ary
654
+ missing: to_ary
655
+ missing: to_ary
656
+ missing: to_ary
657
+ missing: to_path
658
+ missing: to_path
659
+ missing: to_path
660
+ missing: to_path
661
+ missing: to_path
662
+ missing: to_path
663
+ have_library: checking for xmlParseDoc() in -lxml2... -------------------- yes
664
+
665
+ missing: to_int
666
+ missing: to_hash
667
+ missing: to_path
668
+ missing: to_ary
669
+ missing: to_ary
670
+ missing: to_ary
671
+ missing: to_hash
672
+ missing: to_hash
673
+ missing: to_hash
674
+ missing: to_path
675
+ missing: to_int
676
+ missing: to_hash
677
+ missing: to_path
678
+ missing: to_int
679
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -liconv -lz -lm -lruby191-static -lxml2 -liconv -lz -lm -lpthread -lrt -ldl -lcrypt "
680
+ missing: to_hash
681
+ missing: to_hash
682
+ missing: to_ary
683
+ conftest.c: In function ‘t’:
684
+ conftest.c:5: error: ‘xmlParseDoc’ undeclared (first use in this function)
685
+ conftest.c:5: error: (Each undeclared identifier is reported only once
686
+ conftest.c:5: error: for each function it appears in.)
687
+ checked program was:
688
+ /* begin */
689
+ 1: #include "ruby.h"
690
+ 2:
691
+ 3: /*top*/
692
+ 4: int main() {return 0;}
693
+ 5: int t() { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return 0; }
694
+ /* end */
695
+
696
+ "gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/usr/local/lib -L/usr/local/lib -L. -liconv -lz -lm -lruby191-static -lxml2 -liconv -lz -lm -lpthread -lrt -ldl -lcrypt "
697
+ missing: to_hash
698
+ missing: to_hash
699
+ missing: to_ary
700
+ checked program was:
701
+ /* begin */
702
+ 1: #include "ruby.h"
703
+ 2:
704
+ 3: /*top*/
705
+ 4: int main() {return 0;}
706
+ 5: int t() { xmlParseDoc(); return 0; }
707
+ /* end */
708
+
709
+ missing: to_ary
710
+ missing: to_ary
711
+ missing: to_path
712
+ missing: to_path
713
+ missing: to_path
714
+ --------------------
715
+
716
+ missing: to_int
717
+ missing: to_hash
718
+ missing: to_path
719
+ missing: to_int
720
+ missing: to_ary
721
+ missing: to_ary
722
+ missing: to_ary
723
+ missing: to_path
724
+ missing: to_path
725
+ missing: to_path
726
+ have_header: checking for libxml/xmlversion.h... -------------------- no
727
+
728
+ missing: to_int
729
+ missing: to_hash
730
+ missing: to_path
731
+ missing: to_hash
732
+ missing: to_hash
733
+ missing: to_hash
734
+ missing: to_path
735
+ missing: to_int
736
+ missing: to_hash
737
+ missing: to_path
738
+ missing: to_int
739
+ "gcc -E -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -o conftest.i"
740
+ missing: to_hash
741
+ missing: to_hash
742
+ missing: to_ary
743
+ conftest.c:3:31: error: libxml/xmlversion.h: No such file or directory
744
+ checked program was:
745
+ /* begin */
746
+ 1: #include "ruby.h"
747
+ 2:
748
+ 3: #include <libxml/xmlversion.h>
749
+ /* end */
750
+
751
+ missing: to_ary
752
+ missing: to_ary
753
+ missing: to_path
754
+ missing: to_path
755
+ missing: to_path
756
+ --------------------
757
+
758
+ missing: to_int
759
+ missing: to_hash
760
+ missing: to_path
761
+ missing: to_int
762
+ missing: to_ary
763
+ missing: to_ary
764
+ missing: to_ary
765
+ missing: to_path
766
+ missing: to_path
767
+ missing: to_path
768
+ missing: to_hash
769
+ missing: to_hash
770
+ missing: to_hash
771
+ missing: to_path
772
+ missing: to_int
773
+ missing: to_hash
774
+ missing: to_path
775
+ missing: to_int
776
+ missing: to_ary
777
+ missing: to_ary
778
+ missing: to_ary
779
+ missing: to_path
780
+ missing: to_path
781
+ missing: to_path
782
+ missing: to_hash
783
+ missing: to_hash
784
+ missing: to_hash
785
+ missing: to_path
786
+ missing: to_int
787
+ missing: to_hash
788
+ missing: to_path
789
+ missing: to_int
790
+ missing: to_ary
791
+ missing: to_ary
792
+ missing: to_ary
793
+ missing: to_path
794
+ missing: to_path
795
+ missing: to_path
796
+ missing: to_hash
797
+ missing: to_hash
798
+ missing: to_hash
799
+ missing: to_path
800
+ missing: to_int
801
+ missing: to_hash
802
+ missing: to_path
803
+ missing: to_int
804
+ missing: to_ary
805
+ missing: to_ary
806
+ missing: to_ary
807
+ missing: to_ary
808
+ missing: to_path
809
+ missing: to_path
810
+ missing: to_path
811
+ missing: to_path
812
+ missing: to_path
813
+ missing: to_path
814
+ find_header: checking for libxml/xmlversion.h in /opt/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... -------------------- yes
815
+
816
+ missing: to_int
817
+ missing: to_hash
818
+ missing: to_path
819
+ missing: to_hash
820
+ missing: to_hash
821
+ missing: to_hash
822
+ missing: to_path
823
+ missing: to_int
824
+ missing: to_hash
825
+ missing: to_path
826
+ missing: to_int
827
+ "gcc -E -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -o conftest.i"
828
+ missing: to_hash
829
+ missing: to_hash
830
+ missing: to_ary
831
+ conftest.c:3:31: error: libxml/xmlversion.h: No such file or directory
832
+ checked program was:
833
+ /* begin */
834
+ 1: #include "ruby.h"
835
+ 2:
836
+ 3: #include <libxml/xmlversion.h>
837
+ /* end */
838
+
839
+ "gcc -E -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -I/opt/include/libxml2 conftest.c -o conftest.i"
840
+ missing: to_hash
841
+ missing: to_hash
842
+ missing: to_ary
843
+ conftest.c:3:31: error: libxml/xmlversion.h: No such file or directory
844
+ checked program was:
845
+ /* begin */
846
+ 1: #include "ruby.h"
847
+ 2:
848
+ 3: #include <libxml/xmlversion.h>
849
+ /* end */
850
+
851
+ "gcc -E -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -I/usr/local/include/libxml2 conftest.c -o conftest.i"
852
+ missing: to_hash
853
+ missing: to_hash
854
+ missing: to_ary
855
+ conftest.c:3:31: error: libxml/xmlversion.h: No such file or directory
856
+ checked program was:
857
+ /* begin */
858
+ 1: #include "ruby.h"
859
+ 2:
860
+ 3: #include <libxml/xmlversion.h>
861
+ /* end */
862
+
863
+ "gcc -E -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -I/usr/include/libxml2 conftest.c -o conftest.i"
864
+ missing: to_hash
865
+ missing: to_hash
866
+ missing: to_ary
867
+ checked program was:
868
+ /* begin */
869
+ 1: #include "ruby.h"
870
+ 2:
871
+ 3: #include <libxml/xmlversion.h>
872
+ /* end */
873
+
874
+ missing: to_ary
875
+ missing: to_ary
876
+ missing: to_path
877
+ missing: to_path
878
+ missing: to_path
879
+ --------------------
880
+