have_func: checking for mmap() in sys/mman.h... -------------------- yes

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
checked program was:
/* begin */
1: #include <sys/mman.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))mmap; return 0; }
/* end */

--------------------

have_func: checking for munmap() in sys/mman.h... -------------------- yes

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
checked program was:
/* begin */
1: #include <sys/mman.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))munmap; return 0; }
/* end */

--------------------

have_func: checking for mremap() in sys/mman.h... -------------------- no

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -D_GNU_SOURCE  -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
conftest.c: In function 't':
conftest.c:5: error: 'mremap' undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include <sys/mman.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))mremap; return 0; }
/* end */

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -D_GNU_SOURCE  -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
/tmp//ccgtsjaD.o(.text+0x33): In function `t':
: undefined reference to `mremap'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include <sys/mman.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { mremap(); return 0; }
/* end */

--------------------

have_func: checking for getpagesize() in unistd.h... -------------------- yes

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -D_GNU_SOURCE  -D_BSD_SOURCE  -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
checked program was:
/* begin */
1: #include <unistd.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))getpagesize; return 0; }
/* end */

--------------------

have_func: checking for rb_thread_blocking_region()... -------------------- no

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -D_GNU_SOURCE  -D_BSD_SOURCE  -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
conftest.c: In function 't':
conftest.c:3: error: 'rb_thread_blocking_region' undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))rb_thread_blocking_region; return 0; }
/* end */

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -D_GNU_SOURCE  -D_BSD_SOURCE  -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
/tmp//ccLNY0xG.o(.text+0x33): In function `t':
: undefined reference to `rb_thread_blocking_region'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { rb_thread_blocking_region(); return 0; }
/* end */

--------------------

have_func: checking for rb_thread_io_blocking_region()... -------------------- no

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -D_GNU_SOURCE  -D_BSD_SOURCE  -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
conftest.c: In function 't':
conftest.c:3: error: 'rb_thread_io_blocking_region' undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))rb_thread_io_blocking_region; return 0; }
/* end */

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -D_GNU_SOURCE  -D_BSD_SOURCE  -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
/tmp//ccxt1tXG.o(.text+0x33): In function `t':
: undefined reference to `rb_thread_io_blocking_region'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { rb_thread_io_blocking_region(); return 0; }
/* end */

--------------------

checking for GCC 4+ atomic builtins... -------------------- yes

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-openbsd -I. -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include  -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include -D_GNU_SOURCE  -D_BSD_SOURCE  -O2 -pipe  -fPIC   conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -L/usr/local/lib -Wl,-E     -lruby18-static  -lm   -lc"
checked program was:
/* begin */
1: int main(int argc, char * const argv[]) {
2:         volatile unsigned long i = 0;
3:         __sync_add_and_fetch(&i, argc);
4:         __sync_sub_and_fetch(&i, argc);
5:         return 0;
6: }
/* end */

./conftest
--------------------

