ruby cryptopp

Link to this paste: http://bugs.dragonflybsd.org/pastes/441

Added by tuxillo 2 months ago.
Syntax: Plain Text

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[nas] ~# gem install cryptopp
Building native extensions.  This could take a while...
ERROR:  Error installing cryptopp:
        ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby19 extconf.rb
extconf.rb:4: Use RbConfig instead of obsolete and deprecated Config.
checking for main() in -lstdc++... no
Can't find libstdc++
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/ruby19
        --with-stdc++lib
        --without-stdc++lib


Gem files will remain installed in /usr/local/lib/ruby/gems/1.9/gems/cryptopp-0.0.4 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9/gems/cryptopp-0.0.4/ext/gem_make.out


# tail /usr/local/lib/ruby/gems/1.9/gems/cryptopp-0.0.4/ext/mkmf.log
"g++ -o conftest -I/usr/local/include/ruby-1.9//x86_64-dragonfly3 -I/usr/local/include/ruby-1.9//ruby/backward -I/usr/local/include/ruby-1.9/ -I.    -I/usr/local/include -pipe  -O2 -fno-strict-aliasing -fPIC -DNDEBUG -DCRYPTOPP_DISABLE_ASM conftest.c  -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L.  -Wl,-rpath,/usr/lib:/usr/local/lib -pthread -rdynamic     -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby19 -lstdc++  -lpthread -lcrypt -lm -L/usr/local/lib  -Wl,-rpath,/usr/lib:/usr/local/lib -pthread  -lc"
conftest.c: In function 'int t()':
conftest.c:4:16: error: 'main' was not declared in this scope
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: /*top*/
 4: int t() { main(); 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 */

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

Download