have_header: checking for expat.h… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lruby -lpthread -lrt -ldl -lcrypt -lm -lc” checked program was:

begin

1: include “ruby.h” 2: 3: int main(void) {return 0;}

end

“gcc -E -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables conftest.c -o conftest.i” checked program was: /* begin */ 1: include “ruby.h” 2: 3: include <expat.h> /* end */


have_library: checking for XML_ParserCreate() in -lexpat… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_ParserCreate' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_ParserCreate; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_ParserCreate; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_ParserCreate; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_ParserCreate' [-Wimplicit-function-declaration]

int t(void) { XML_ParserCreate(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_ParserCreate(); return 0; } /* end */


have_func: checking for XML_SetNotStandaloneHandler()… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_SetNotStandaloneHandler' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetNotStandaloneHandler; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetNotStandaloneHandler; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetNotStandaloneHandler; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_SetNotStandaloneHandler' [-Wimplicit-function-declaration]

int t(void) { XML_SetNotStandaloneHandler(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_SetNotStandaloneHandler(); return 0; } /* end */


have_func: checking for XML_SetParamEntityParsing()… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_SetParamEntityParsing' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetParamEntityParsing; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetParamEntityParsing; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetParamEntityParsing; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_SetParamEntityParsing' [-Wimplicit-function-declaration]

int t(void) { XML_SetParamEntityParsing(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_SetParamEntityParsing(); return 0; } /* end */


have_func: checking for XML_SetDoctypeDeclHandler()… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_SetDoctypeDeclHandler' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetDoctypeDeclHandler; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetDoctypeDeclHandler; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetDoctypeDeclHandler; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_SetDoctypeDeclHandler' [-Wimplicit-function-declaration]

int t(void) { XML_SetDoctypeDeclHandler(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_SetDoctypeDeclHandler(); return 0; } /* end */


have_func: checking for XML_ParserReset()… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_ParserReset' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_ParserReset; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_ParserReset; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_ParserReset; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_ParserReset' [-Wimplicit-function-declaration]

int t(void) { XML_ParserReset(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_ParserReset(); return 0; } /* end */


have_func: checking for XML_SetSkippedEntityHandler()… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_SetSkippedEntityHandler' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetSkippedEntityHandler; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetSkippedEntityHandler; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_SetSkippedEntityHandler; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_SetSkippedEntityHandler' [-Wimplicit-function-declaration]

int t(void) { XML_SetSkippedEntityHandler(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_SetSkippedEntityHandler(); return 0; } /* end */


have_func: checking for XML_GetFeatureList()… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_GetFeatureList' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_GetFeatureList; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_GetFeatureList; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_GetFeatureList; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_GetFeatureList' [-Wimplicit-function-declaration]

int t(void) { XML_GetFeatureList(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_GetFeatureList(); return 0; } /* end */


have_func: checking for XML_UseForeignDTD()… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_UseForeignDTD' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_UseForeignDTD; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_UseForeignDTD; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_UseForeignDTD; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_UseForeignDTD' [-Wimplicit-function-declaration]

int t(void) { XML_UseForeignDTD(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_UseForeignDTD(); return 0; } /* end */


have_func: checking for XML_GetIdAttributeIndex()… ——————– yes

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'XML_GetIdAttributeIndex' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_GetIdAttributeIndex; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_GetIdAttributeIndex; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))XML_GetIdAttributeIndex; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'XML_GetIdAttributeIndex' [-Wimplicit-function-declaration]

int t(void) { XML_GetIdAttributeIndex(); return 0; }
^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { XML_GetIdAttributeIndex(); return 0; } /* end */


have_library: checking for ntohl() in -lsocket… ——————– no

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lsocket -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:57: error: 'ntohl' undeclared (first use in this function)

int t(void) { void ((*volatile p)()); p = (void ((*)()))ntohl; return 0; }
                                                        ^

conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]

int t(void) { void ((*volatile p)()); p = (void ((*)()))ntohl; return 0; }
                               ^

checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { void ((*volatile p)()); p = (void ((*)()))ntohl; return 0; } /* end */

“gcc -o conftest -I/usr/include/i386-linux -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DNEW_EXPAT -DXML_DTD conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lexpat -lruby -lsocket -lexpat -lpthread -lrt -ldl -lcrypt -lm -lc” conftest.c: In function 't': conftest.c:6:1: warning: implicit declaration of function 'ntohl' [-Wimplicit-function-declaration]

int t(void) { ntohl(); return 0; }
^

/usr/bin/ld: cannot find -lsocket collect2: error: ld returned 1 exit status checked program was: /* begin */ 1: include “ruby.h” 2: 3: /top/ 4: int main(void) {return 0;} 5: extern int t(void); 6: int t(void) { ntohl(); return 0; } /* end */