Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.12 failed to compile in mingw platform, but 2.11.3 works. #733

Closed
Eric-Guo opened this issue Jul 15, 2015 · 1 comment
Closed

2.12 failed to compile in mingw platform, but 2.11.3 works. #733

Eric-Guo opened this issue Jul 15, 2015 · 1 comment

Comments

@Eric-Guo
Copy link
Contributor

I can following previous version of successful methods to compile at puma v2.11.3

c:\Temp>gem install puma -v2.11.3 -- --with-opt-dir=c:\temp --with-opt-lib=c:\temp\lib
Building native extensions with: '--with-opt-dir=c:\temp --with-opt-lib=c:\temp\lib'
This could take a while...
Successfully installed puma-2.11.3
1 gem installed

But for 2.12.0, have problem of mini_ssl.c:215: undefined reference tostrerror_r'`

C:/Ruby21/bin/ruby.exe -r ./siteconf20150715-5572-hu09iw.rb extconf.rb --with-opt-dir=c:\temp --with-opt-lib=c:\temp\lib
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
generating puma_http11-i386-mingw32.def
compiling http11_parser.c
ext/http11/http11_parser.rl: In function 'puma_parser_execute':
ext/http11/http11_parser.rl:111:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
compiling io_buffer.c
io_buffer.c: In function 'buf_to_str':
io_buffer.c:119:3: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign]
In file included from c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1694:0,
                 from c:/Ruby21/include/ruby-2.1.0/ruby.h:33,
                 from io_buffer.c:2:
c:/Ruby21/include/ruby-2.1.0/ruby/intern.h:704:7: note: expected 'const char *' but argument is of type 'uint8_t *'
compiling mini_ssl.c
In file included from mini_ssl.c:3:0:
c:/Ruby21/include/ruby-2.1.0/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h" [-Wcpp]
mini_ssl.c: In function 'engine_init_server':
mini_ssl.c:147:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
mini_ssl.c:150:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
mini_ssl.c: In function 'raise_error':
mini_ssl.c:215:5: warning: implicit declaration of function 'strerror_r' [-Wimplicit-function-declaration]
mini_ssl.c: In function 'engine_read':
mini_ssl.c:242:14: warning: unused variable 'n' [-Wunused-variable]
mini_ssl.c: In function 'engine_peercert':
mini_ssl.c:341:3: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign]
In file included from c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1694:0,
                 from c:/Ruby21/include/ruby-2.1.0/ruby.h:33,
                 from mini_ssl.c:2:
c:/Ruby21/include/ruby-2.1.0/ruby/intern.h:704:7: note: expected 'const char *' but argument is of type 'unsigned char *'
compiling puma_http11.c
linking shared-object puma/puma_http11.so
mini_ssl.o: In function `raise_error':
C:\Ruby21\lib\ruby\gems\2.1.0\gems\puma-2.12.0\ext\puma_http11/mini_ssl.c:215: undefined reference to `strerror_r'
collect2.exe: error: ld returned 1 exit status
make: *** [puma_http11.so] Error 1

make failed, exit code 2
@Eric-Guo
Copy link
Contributor Author

Really fast fix, confirm work, thanks.

Eric-Guo added a commit to Eric-Guo/ember-crm-js that referenced this issue Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant