Error Buddy

Do you have an error message from your application? Then find the answer with Error Buddy. You can search over 40000 source code files and troubleshooting documents using our beta lucene/nutch search interface or if you prefer, search as normal using google. With LXR technology you can drill right down into the line of source code where it came from with full cross-referencing.

If after searching you didn't get your ideal answer, or you are still unclear what the error means, you can choose to post that question to the community forums following the link included in the search results.

corestack/ libxml2-2.6.19/ Makefile.am [1.6]
001 ## Process this file with automake to produce Makefile.in
002 
003 SUBDIRS = include . doc example xstc @PYTHON_SUBDIR@
004 
005 DIST_SUBDIRS = include . doc example python xstc
006 
007 INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ 
008 
009 noinst_PROGRAMS=testSchemas testRelax testSAX testHTML testXPath testURI \
010                 testThreads testC14N testAutomata testRegexp \
011                 testReader testapi testModule
012 
013 bin_PROGRAMS = xmllint xmlcatalog
014 
015 bin_SCRIPTS=xml2-config
016 
017 lib_LTLIBRARIES = libxml2.la
018 libxml2_la_LIBADD = @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) @M_LIBS@ @WIN32_EXTRA_LIBADD@
019 
020 libxml2_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ -version-info @LIBXML_VERSION_INFO@ @MODULE_PLATFORM_LIBS@
021 
022 if WITH_TRIO_SOURCES
023 libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \
024                 parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c  \
025                 valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c  \
026                 xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
027                 catalog.c globals.c threads.c c14n.c xmlstring.c \
028                 xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
029                 triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c \
030                 xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c xmlmodule.c
031 else
032 libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \
033                 parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c  \
034                 valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c  \
035                 xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
036                 catalog.c globals.c threads.c c14n.c xmlstring.c \
037                 xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
038                 xmlreader.c relaxng.c dict.c SAX2.c \
039                 xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \
040                 xmlmodule.c
041 endif
042 
043 DEPS = $(top_builddir)/libxml2.la
044 LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) @M_LIBS@ @WIN32_EXTRA_LIBADD@
045 
046 
047 man_MANS = xml2-config.1 libxml.3
048 
049 m4datadir = $(datadir)/aclocal
050 m4data_DATA = libxml.m4
051 
052 xmllint_SOURCES=xmllint.c
053 xmllint_LDFLAGS = 
054 xmllint_DEPENDENCIES = $(DEPS)
055 xmllint_LDADD=  @RDL_LIBS@ $(LDADDS)
056 
057 testSAX_SOURCES=testSAX.c
058 testSAX_LDFLAGS = 
059 testSAX_DEPENDENCIES = $(DEPS)
060 testSAX_LDADD= $(LDADDS)
061 
062 testHTML_SOURCES=testHTML.c
063 testHTML_LDFLAGS = 
064 testHTML_DEPENDENCIES = $(DEPS)
065 testHTML_LDADD= $(LDADDS)
066 
067 xmlcatalog_SOURCES=xmlcatalog.c
068 xmlcatalog_LDFLAGS = 
069 xmlcatalog_DEPENDENCIES = $(DEPS)
070 xmlcatalog_LDADD= @RDL_LIBS@ $(LDADDS)
071 
072 testXPath_SOURCES=testXPath.c
073 testXPath_LDFLAGS = 
074 testXPath_DEPENDENCIES = $(DEPS)
075 testXPath_LDADD= $(LDADDS)
076 
077 testC14N_SOURCES=testC14N.c
078 testC14N_LDFLAGS = 
079 testC14N_DEPENDENCIES = $(DEPS)
080 testC14N_LDADD= $(LDADDS)
081 
082 testThreads_SOURCES=testThreads@THREADS_W32@.c
083 testThreads_LDFLAGS = 
084 testThreads_DEPENDENCIES = $(DEPS)
085 testThreads_LDADD= $(LDADDS)
086 
087 testURI_SOURCES=testURI.c
088 testURI_LDFLAGS = 
089 testURI_DEPENDENCIES = $(DEPS)
090 testURI_LDADD= $(LDADDS)
091 
092 testRegexp_SOURCES=testRegexp.c
093 testRegexp_LDFLAGS = 
094 testRegexp_DEPENDENCIES = $(DEPS)
095 testRegexp_LDADD= $(LDADDS)
096 
097 testAutomata_SOURCES=testAutomata.c
098 testAutomata_LDFLAGS = 
099 testAutomata_DEPENDENCIES = $(DEPS)
100 testAutomata_LDADD= $(LDADDS)
101 
102 testSchemas_SOURCES=testSchemas.c
103 testSchemas_LDFLAGS = 
104 testSchemas_DEPENDENCIES = $(DEPS)
105 testSchemas_LDADD= $(LDADDS)
106 
107 testRelax_SOURCES=testRelax.c
108 testRelax_LDFLAGS = 
109 testRelax_DEPENDENCIES = $(DEPS)
110 testRelax_LDADD= $(LDADDS)
111 
112 testReader_SOURCES=testReader.c
113 testReader_LDFLAGS = 
114 testReader_DEPENDENCIES = $(DEPS)
115 testReader_LDADD= $(LDADDS)
116 
117 testModule_SOURCES=testModule.c
118 testModule_LDFLAGS = 
119 testModule_DEPENDENCIES = $(DEPS)
120 testModule_LDADD= $(LDADDS)
121 
122 noinst_LTLIBRARIES = testdso.la
123 testdso_la_SOURCES = testdso.c
124 testdso_la_LDFLAGS = -module -rpath $(libdir)
125 
126 # that one forces the rebuild when "make rebuild" is run on doc/
127 rebuild_testapi:
128         -@(if [ "$(PYTHON)" != "" ] ; then \
129             $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
130 
131 # that one is just to make sure it is rebuilt if missing
132 # but adding the dependances generate mess
133 testapi.c:
134         -@(if [ "$(PYTHON)" != "" ] ; then \
135             $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
136 
137 testapi_SOURCES=testapi.c
138 testapi_LDFLAGS = 
139 testapi_DEPENDENCIES = $(DEPS)
140 testapi_LDADD= $(LDADDS)
141 
142 #testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c
143 #testOOM_LDFLAGS = 
144 #testOOM_DEPENDENCIES = $(DEPS)
145 #testOOM_LDADD= $(LDADDS)
146 
147 check-local: all tests
148 
149 testall : tests SVGtests SAXtests
150 
151 tests: XMLtests XMLenttests NStests IDtests Errtests APItests @READER_TEST@ @TEST_SAX@ @TEST_PUSH@ @TEST_HTML@ @TEST_PHTML@  @TEST_VALID@ URItests @TEST_PATTERN@ @TEST_XPATH@ @TEST_XPTR@ @TEST_XINCLUDE@ @TEST_C14N@ @TEST_DEBUG@ @TEST_CATALOG@ @TEST_REGEXPS@ @TEST_SCHEMAS@ @TEST_THREADS@ Timingtests @TEST_VTIME@ @PYTHON_TESTS@ @TEST_MODULES@
152         @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; \
153             $(MAKE) MAKEFLAGS+=--silent tests ; fi)
154         @(cd doc/examples ; $(MAKE) MAKEFLAGS+=--silent tests)
155 
156 valgrind:
157         @echo '## Running the regression tests under Valgrind'
158         @echo '## Go get a cup of coffee it is gonna take a while ...'
159         $(MAKE) CHECKER='valgrind' tests
160 
161 APItests: testapi$(EXEEXT)
162         @echo "## Running the API regression tests this may take a little while"
163         -@($(CHECKER) $(top_builddir)/testapi -q)
164 
165 HTMLtests : testHTML$(EXEEXT)
166         @(echo > .memdump)
167         @echo "## HTML regression tests"
168         -@(for i in $(srcdir)/test/HTML/* ; do \
169           name=`basename $$i`; \
170           if [ ! -d $$i ] ; then \
171           if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
172               echo New test file $$name ; \
173               $(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
174           else \
175               log=`$(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \
176               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
177               diff $(srcdir)/result/HTML/$$name result.$$name ; \
178               diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \
179               $(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \
180               diff result.$$name result2.$$name` ; \
181               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
182               rm result.$$name result2.$$name error.$$name ; \
183           fi ; fi ; done)
184 
185 HTMLPushtests : testHTML$(EXEEXT)
186         @echo "## Push HTML regression tests"
187         -@(for i in $(srcdir)/test/HTML/* ; do \
188           name=`basename $$i`; \
189           if [ ! -d $$i ] ; then \
190           if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
191               echo New test file $$name ; \
192               $(CHECKER) $(top_builddir)/testHTML --push $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
193           else \
194               log=`$(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \
195               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
196               diff $(srcdir)/result/HTML/$$name result.$$name ; \
197               cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \
198               cut -b 1-15 error.$$name > errorcut2.$$name; \
199               diff -b errorcut.$$name errorcut2.$$name ; \
200               $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
201               diff result.$$name result2.$$name` ; \
202               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
203               rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \
204           fi ; fi ; done)
205         @echo "## HTML SAX regression tests"
206         -@(for i in $(srcdir)/test/HTML/* ; do \
207           name=`basename $$i`; \
208           if [ ! -d $$i ] ; then \
209           if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \
210               echo New test file $$name ; \
211               $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
212           else \
213               log=`$(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \
214               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
215               diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
216               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
217               rm result.$$name.sax ; \
218           fi ; fi ; done)
219         @echo "## Push HTML SAX regression tests"
220         -@(for i in $(srcdir)/test/HTML/* ; do \
221           name=`basename $$i`; \
222           if [ ! -d $$i ] ; then \
223           if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
224               echo New test file $$name ; \
225               $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
226           else \
227               log=`$(CHECKER) $(top_builddir)/testHTML --push --sax $$i 2>&1 > result.$$name.sax ; \
228               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
229               diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
230               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
231               rm result.$$name.sax ; \
232           fi ; fi ; done)
233 
234 XMLtests : xmllint$(EXEEXT)
235         @(echo > .memdump)
236         @echo "## XML regression tests"
237         -@(for i in $(srcdir)/test/* ; do \
238           name=`basename $$i`; \
239           if [ ! -d $$i ] ; then \
240           if [ ! -f $(srcdir)/result/$$name ] ; then \
241               echo New test file $$name ; \
242               $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \
243               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
244           else \
245               log=`$(CHECKER) $(top_builddir)/xmllint $$i 2>&1 > result.$$name ; \
246               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
247               diff $(srcdir)/result/$$name result.$$name ; \
248               $(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
249               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
250               diff result.$$name result2.$$name` ;\
251               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
252               rm result.$$name result2.$$name ; \
253           fi ; fi ; done)
254         @echo "## XML regression tests on memory"
255         -@(for i in $(srcdir)/test/* ; do \
256           name=`basename $$i`; \
257           if [ ! -d $$i ] ; then \
258           if [ ! -f $(srcdir)/result/$$name ] ; then \
259               echo New test file $$name ; \
260               $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \
261               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
262           else \
263               log=`$(CHECKER) $(top_builddir)/xmllint --memory $$i 2>&1 > result.$$name ; \
264               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
265               diff $(srcdir)/result/$$name result.$$name ; \
266               $(CHECKER) $(top_builddir)/xmllint --memory result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
267               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"`; \
268               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
269               diff result.$$name result2.$$name ; \
270               rm result.$$name result2.$$name ; \
271           fi ; fi ; done)
272 
273 XMLPushtests: xmllint$(EXEEXT)
274         @(echo > .memdump)
275         @echo "## XML push regression tests"
276         -@(for i in $(srcdir)/test/* ; do \
277           name=`basename $$i`; \
278           if [ ! -d $$i ] ; then \
279           if [ ! -f $(srcdir)/result/$$name ] ; then \
280               echo New test file $$name ; \
281               $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \
282               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
283           else \
284               log=`$(CHECKER) $(top_builddir)/xmllint --push $$i 2>&1 > result.$$name ; \
285               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
286               diff $(srcdir)/result/$$name result.$$name ; \
287               $(CHECKER) $(top_builddir)/xmllint --push result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
288               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
289               diff result.$$name result2.$$name` ; \
290               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
291               rm result.$$name result2.$$name ; \
292           fi ; fi ; done)
293 
294 NStests : xmllint$(EXEEXT)
295         @(echo > .memdump)
296         @echo "## XML Namespaces regression tests"
297         -@(for i in $(srcdir)/test/namespaces/* ; do \
298           name=`basename $$i`; \
299           if [ ! -d $$i ] ; then \
300           if [ ! -f $(srcdir)/result/namespaces/$$name ] ; then \
301               echo New test file $$name ; \
302               $(CHECKER) $(top_builddir)/xmllint $$i \
303                  2> $(srcdir)/result/namespaces/$$name.err \
304                  > $(srcdir)/result/namespaces/$$name ; \
305               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
306           else \
307               log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
308               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
309               diff $(srcdir)/result/namespaces/$$name result.$$name ; \
310               diff $(srcdir)/result/namespaces/$$name.err error.$$name`; \
311               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
312               rm result.$$name error.$$name ; \
313           fi ; fi ; done)
314 
315 IDtests : xmllint$(EXEEXT) testXPath$(EXEEXT)
316         @(echo > .memdump)
317         @echo "## xml:id regression tests"
318         -@(for i in $(srcdir)/test/xmlid/id_*.xml ; do \
319           name=`basename $$i`; \
320           if [ ! -d $$i ] ; then \
321           if [ ! -f $(srcdir)/result/xmlid/$$name ] ; then \
322               echo New test file $$name ; \
323               $(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" \
324                  2> $(srcdir)/result/xmlid/$$name.err \
325                  > $(srcdir)/result/xmlid/$$name ; \
326               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
327           else \
328               log=`$(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" 2> error.$$name > result.$$name ; \
329               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
330               diff $(srcdir)/result/xmlid/$$name result.$$name ; \
331               diff $(srcdir)/result/xmlid/$$name.err error.$$name` ; \
332               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
333               rm result.$$name error.$$name ; \
334           fi ; fi ; done)
335 
336 Errtests : xmllint$(EXEEXT)
337         @(echo > .memdump)
338         @echo "## Error cases regression tests"
339         -@(for i in $(srcdir)/test/errors/*.xml ; do \
340           name=`basename $$i`; \
341           if [ ! -d $$i ] ; then \
342           if [ ! -f $(srcdir)/result/errors/$$name ] ; then \
343               echo New test file $$name ; \
344               $(CHECKER) $(top_builddir)/xmllint $$i \
345                  2> $(srcdir)/result/errors/$$name.err \
346                  > $(srcdir)/result/errors/$$name ; \
347               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
348           else \
349               log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
350               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
351               diff $(srcdir)/result/errors/$$name result.$$name ; \
352               diff $(srcdir)/result/errors/$$name.err error.$$name` ; \
353               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
354               rm result.$$name error.$$name ; \
355           fi ; fi ; done)
356         @echo "## Error cases stream regression tests"
357         -@(for i in $(srcdir)/test/errors/*.xml ; do \
358           name=`basename $$i`; \
359           if [ ! -d $$i ] ; then \
360           if [ ! -f $(srcdir)/result/errors/$$name.str ] ; then \
361               echo New test file $$name ; \
362               $(CHECKER) $(top_builddir)/xmllint --stream $$i \
363                  2> $(srcdir)/result/errors/$$name.str \
364                  > /dev/null ; \
365               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
366           else \
367               log=`$(CHECKER) $(top_builddir)/xmllint --stream $$i 2> error.$$name > /dev/null ; \
368               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
369               diff $(srcdir)/result/errors/$$name.str error.$$name` ; \
370               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
371               rm error.$$name ; \
372           fi ; fi ; done)
373 
374 Docbtests : xmllint$(EXEEXT)
375 
376 XMLenttests : xmllint$(EXEEXT)
377         @(echo > .memdump)
378         @echo "## XML entity subst regression tests"
379         -@(for i in $(srcdir)/test/* ; do \
380           name=`basename $$i`; \
381           if [ ! -d $$i ] ; then \
382           if [ ! -f $(srcdir)/result/noent/$$name ] ; then \
383               echo New test file $$name ; \
384               $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \
385               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
386           else \
387               log=`$(CHECKER) $(top_builddir)/xmllint --noent $$i 2>&1 > result.$$name ; \
388               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
389               diff $(srcdir)/result/noent/$$name result.$$name ; \
390               $(CHECKER) $(top_builddir)/xmllint --noent result.$$name 2>&1 > result2.$$name ; \
391               grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
392               diff result.$$name result2.$$name` ; \
393               if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
394               rm result.$$