Skip to content

Instantly share code, notes, and snippets.

@earnold
Created April 5, 2014 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earnold/9985621 to your computer and use it in GitHub Desktop.
Save earnold/9985621 to your computer and use it in GitHub Desktop.
have_header: checking for dlfcn.h... -------------------- yes
"i686-pc-linux-gnu-gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O2 -march=pentium-m -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1,--hash-style=gnu -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby19 -lpthread -lrt -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
"i686-pc-linux-gnu-gcc -E -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O2 -march=pentium-m -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <dlfcn.h>
/* end */
--------------------
find_library: checking for skylight_high_res_time() in -lskylight... -------------------- no
"i686-pc-linux-gnu-gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O2 -march=pentium-m -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1,--hash-style=gnu -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby19 -lskylight -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:4: error: ‘skylight_high_res_time’ undeclared (first use in this function)
conftest.c:4: error: (Each undeclared identifier is reported only once
conftest.c:4: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int t() { void ((*volatile p)()); p = (void ((*)()))skylight_high_res_time; return 0; }
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
/* end */
"i686-pc-linux-gnu-gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O2 -march=pentium-m -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1,--hash-style=gnu -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby19 -lskylight -lpthread -lrt -ldl -lcrypt -lm -lc"
./libskylight.a(skylight.o): In function `io::timer::helper::h051cb5c8d06c7faeubc::v0.10.pre':
skylight.rs:(.text+0x2dc8a): undefined reference to `timerfd_settime'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int t() { skylight_high_res_time(); return 0; }
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
/* end */
"i686-pc-linux-gnu-gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O2 -march=pentium-m -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1,--hash-style=gnu -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby19 -lskylight -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:4: error: ‘skylight_high_res_time’ undeclared (first use in this function)
conftest.c:4: error: (Each undeclared identifier is reported only once
conftest.c:4: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int t() { void ((*volatile p)()); p = (void ((*)()))skylight_high_res_time; return 0; }
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
/* end */
"i686-pc-linux-gnu-gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O2 -march=pentium-m -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1,--hash-style=gnu -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby19 -lskylight -lpthread -lrt -ldl -lcrypt -lm -lc"
./libskylight.a(skylight.o): In function `io::timer::helper::h051cb5c8d06c7faeubc::v0.10.pre':
skylight.rs:(.text+0x2dc8a): undefined reference to `timerfd_settime'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int t() { skylight_high_res_time(); return 0; }
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
/* end */
--------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment