Skip to content

Instantly share code, notes, and snippets.

@febeling
Created July 1, 2022 11:49
Show Gist options
  • Save febeling/c43283190fe5006c0203a6c18819284e to your computer and use it in GitHub Desktop.
Save febeling/c43283190fe5006c0203a6c18819284e to your computer and use it in GitHub Desktop.
current directory: /Users/febeling/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thin-1.5.1/ext/thin_parser
/Users/febeling/.rbenv/versions/3.0.3/bin/ruby -I /Users/febeling/.rbenv/versions/3.0.3/lib/ruby/3.0.0 -r ./siteconf20220701-96982-dpb84s.rb extconf.rb
checking for main() in -lc... yes
creating Makefile
current directory: /Users/febeling/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thin-1.5.1/ext/thin_parser
make DESTDIR\= clean
current directory: /Users/febeling/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thin-1.5.1/ext/thin_parser
make DESTDIR\=
compiling parser.c
parser.rl:112:17: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
assert(pe - p == len - off && "pointers aren't same distance");
~~~~~~ ^ ~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0)
^
parser.rl:142:7: error: implicit declaration of function 'thin_http_parser_has_error' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (thin_http_parser_has_error(parser) ) {
^
parser.rl:142:7: note: did you mean 'http_parser_has_error'?
./parser.h:44:5: note: 'http_parser_has_error' declared here
int http_parser_has_error(http_parser *parser);
^
parser.rl:144:14: error: implicit declaration of function 'thin_http_parser_is_finished' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
} else if (thin_http_parser_is_finished(parser) ) {
^
1 warning and 2 errors generated.
make: *** [parser.o] Error 1
make failed, exit code 2
@febeling
Copy link
Author

febeling commented Jul 1, 2022

gem install mailcatcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment