Skip to content

Handle old C-extenion gems that still expect ruby.h in top source directory - #4738

Closed
jeremyevans wants to merge 1 commit into
ruby:masterfrom
jeremyevans:mkmf-tmail-hdrdir-16490
Closed

jeremyevans wants to merge 1 commit into
ruby:masterfrom
jeremyevans:mkmf-tmail-hdrdir-16490

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

This line was removed in 3d1c86a,
but at least the tmail gem (last updated in 2010) still relies on
this behavior.

Fixes [Bug #16490]

@jeremyevans
jeremyevans requested a review from nobu August 13, 2021 21:04
…ectory

This line was removed in 3d1c86a,
but at least the tmail gem (last updated in 2010) still relies on
this behavior.

Fixes [Bug ruby#16490]
@jeremyevans
jeremyevans force-pushed the mkmf-tmail-hdrdir-16490 branch from a628a69 to 7cdc685 Compare August 13, 2021 21:16
@ioquatix

Copy link
Copy Markdown
Member

I would propose that exceptions like this should have a comment that explains why the exception exists and when it could be reasonably removed.

@nobu

nobu commented Aug 14, 2021

Copy link
Copy Markdown
Member

The cause is $(hdrdir)/defines.h but not $(hdrdir)/ruby.h.
And tmail gem fails even after depend file was fixed.

tmailscanner.c:105:11: error: implicit declaration of function 'rb_get_kcode' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    tmp = rb_get_kcode();
          ^

So that gem should be updated, I think.

@jeremyevans

Copy link
Copy Markdown
Contributor Author

@nobu I was able to gem install tmail with just this mkmf change, but looking at gem_make.out, I do see the implicit function declaration. So I'll close this pull request and the related Redmine issue.

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

Successfully merging this pull request may close these issues.

3 participants