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

Explicitly link against WSLAY when available #2196

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

James-TR
Copy link
Contributor

@James-TR James-TR commented Dec 10, 2019

When other libraries attempt to link against libh2o and libh2o-evloop that was
compiled with libwslay available, there are errors from missing symbols
associated with code which makes use of the wslay library. To rectify this,
explicitly link against libwslay during the build process.

Fixes #2105

Signed-off-by: James Taylor james@jtaylor.id.au

libh2o-evloop.pc.in Outdated Show resolved Hide resolved
@James-TR
Copy link
Contributor Author

I've just had another look, pkg-config is not the right place to add this. It only fixed it because there was a symptom of libh2o-evloop not linking against it which was "fixed" by getting dnsdist to include it in its linker. I'll modify my fix and push out an update to this branch :)

When other libraries attempt to link against libh2o and libh2o-evloop that was
compiled with libwslay available, there are errors from missing symbols
associated with code which makes use of the wslay library. To rectify this,
explicitly link against libwslay during the build process.

Fixes h2o#2105

Signed-off-by: James Taylor <james@jtaylor.id.au>
@James-TR James-TR changed the title Include -lwslay in libh2o-evloop build Explicitly link against WSLAY when available Dec 12, 2019
@James-TR
Copy link
Contributor Author

I wasn't sure if putting the link to WSLAY_LIBRARIES into EXTRA_LIBS would break anything so I explicitly added it to the libh2o and libh2o-evloop targets. This compiles fine on my end and I was able to link against the library correctly with dnsdist.

@kazuho kazuho merged commit 64c3a83 into h2o:master Dec 13, 2019
@kazuho
Copy link
Member

kazuho commented Dec 13, 2019

Thanks the changes looks fine to me. Merged.

@James-TR James-TR deleted the fix/libh2o-evloop-link branch December 13, 2019 04:39
James-TR added a commit to James-TR/openwrt-packages that referenced this pull request Dec 13, 2019
Update wslay link patch with upstream fix from h2o/h2o#2196

Signed-off-by: James Taylor <james@jtaylor.id.au>
shashank2907 pushed a commit to shashank2907/packages that referenced this pull request Feb 23, 2020
Update wslay link patch with upstream fix from h2o/h2o#2196

Signed-off-by: James Taylor <james@jtaylor.id.au>
shogo82148 added a commit to shogo82148/h2o-rpm that referenced this pull request Nov 24, 2022
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.

ld: undefined reference to `wslay_*'
2 participants