Summary: | net-p2p/rtorrent: Build fails: undefined reference to inotify_add_watch/inotify_init | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Paul Boehmer <freebsd> | ||||||||||
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> | ||||||||||
Status: | Closed Feedback Timeout | ||||||||||||
Severity: | Affects Only Me | CC: | linimon, sergey, w.schwarzenfeld | ||||||||||
Priority: | --- | Keywords: | needs-patch | ||||||||||
Version: | Latest | Flags: | dbaio:
maintainer-feedback+
|
||||||||||
Hardware: | amd64 | ||||||||||||
OS: | Any | ||||||||||||
URL: | https://github.com/rakshasa/libtorrent/issues/199 | ||||||||||||
Bug Depends on: | |||||||||||||
Bug Blocks: | 281479 | ||||||||||||
Attachments: |
|
Description
Paul Boehmer
2019-08-02 16:04:59 UTC
Thanks for the report. Are you using the default options? Could you share the full build log of libtorrent and rtorrent? I couldn't reproduce this issue with poudriere on: - 11.3 (i386|amd64) - 12.0-RELEASE (i386|amd64) - 13.0-CURRENT 1300036 (i386|amd64) I'm interested in finding what is happening. Regards. Same error here (11.2-amd64). I tried on the commandline with make CXXFLAGS+=-linotify, and this works. I changed USES= compiler:c++11-lang ncurses pkgconfig localbase and LDFLAGS+= -lexecinfo -pthread -linotify (In reply to w.schwarzenfeld from comment #3) Could you share the build logs from before and after? I want to understand why this is not breaking on poudriere. Created attachment 206245 [details]
screenlog_before
I tried only in the port.
Created attachment 206246 [details]
screenlog_after
Comment on attachment 206246 [details]
screenlog_after
Sorry, something went wrong.
Created attachment 206247 [details]
screenlog_before
Created attachment 206248 [details]
screenlog_after
Confirm w.schwarzenfeld's changes to Makefile resolve the problem on my end. I performed "make rmconfig" and used the port defaults with a new build which resulted in the same errors in my original report. I can build logs using the un-altered Makefile if needed. Sorry, is not clear.
> I performed "make rmconfig" and used the port defaults with a new build which resulted in the
> same errors in my original report.
Does it work or does it not work?
Using the un-altered Makefile and building using the port default configs on both libtorrent and rtorrent, the rtorrent build fails., Using your changes to Makefile for rtorrent, the build completes successfully. Ok, clear now. (In reply to Walter Schwarzenfeld from comment #4) Thank you all for the information/patch. I noted that this issue happens only when you have libinotify installed in your system (a Samba dependency). And this approach won't work when you don't have it. I reported this upstream to check if inotify is mandatory or optional and asked for the best approach to enable/disable it if it's not mandatory, because we don't have a configure option for doing that. https://github.com/rakshasa/libtorrent/issues/199 (In reply to Walter Schwarzenfeld from comment #4) at 13.1-RELEASE-p3 GENERIC amd64 your advice worked. thank you! ^Triage: canonicalize assignment. To submitter: is this problem now fixed? ^Triage: feedback timeout (> 6 months). |