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

With latest r3 lib , proxygen-routing did not compile #2

Open
badarihp opened this issue May 29, 2017 · 2 comments
Open

With latest r3 lib , proxygen-routing did not compile #2

badarihp opened this issue May 29, 2017 · 2 comments

Comments

@badarihp
Copy link

Hi,
with latest r3 lib, proxygen-routing did not compile

Router.cpp:127:44: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you me
ant to use '->' ?)
for (size_t i = 0; i < entry_ptr->vars.tokens.size; i++)
^~~~~~
Router.cpp:130:36: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
char token[entry_ptr->vars.tokens.entries[i].len + 1] = {0};
^~~~~~
Router.cpp:131:35: error: request for member 'slugs' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
char slug[entry_ptr->vars.slugs.entries[i].len + 1] = {0};
^~~~~
Router.cpp:132:17: error: 'token' was not declared in this scope
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~
Router.cpp:132:40: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~~
Router.cpp:132:80: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~~
Router.cpp:133:17: error: 'slug' was not declared in this scope
strncpy(slug, entry_ptr->vars.slugs.entries[i].base, entry_ptr->vars.slugs.entries[i].len);
^~~~
Router.cpp:133:39: error: request for member 'slugs' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(slug, entry_ptr->vars.slugs.entries[i].base, entry_ptr->vars.slugs.entries[i].len);

@arminfelder
Copy link

the problem seams to be, that the r3 version in e.g. the debian repos are to old,it looks like you need at least 400768394df6ff4aee58939d24ac63d45d4d8c5e as ist adds the required fields to the str_array struct

@rmedaer
Copy link
Owner

rmedaer commented Jun 13, 2018

Sorry for the (very) late answer.. I currently don't have time to maintain it. However if you provide PR I'd enjoy to review and commit them.

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

3 participants