Modify

Opened 10 years ago

Closed 10 years ago

#3731 closed defect (fixed)

-fnortti breaks rtorrent

Reported by: bangcok (underscore) dangerus (at) hotmail (dot) com Owned by: nico
Priority: normal Milestone:
Component: packages Version:
Keywords: rtorrent segfault nortti Cc:

Description

I have been unable to run rtorrent on my Routerboard 532 (mipsel) due a segmentation fault at startup. For a description of the problem, including a gdb backtrace see http://libtorrent.rakshasa.no/ticket/1381

It turns out that the dynamic_cast functionality required by rtorrent isn't possible when using -fnortti as a compile option. The default gcc on kamikaze (4.1.2) compiles rtorrent without error, but the resulting binary segfaults as shown in the bug report above. gcc 4.2.4 in the svn (r11610) version fails to compile rtorrent, correctly stating that dynamic_cast isn't usable with nortti.

I've attached a patch removing the offending option from both the rtorrent and libtorrent Makefiles, as well as updating to the most recent stable versions.

Attachments (2)

libtorrent-Makefile.diff (353 bytes) - added by bangcok (underscore) dangerus (at) hotmail (dot) com 10 years ago.
libtorrent Makefile patch
rtorrent-Makefile.diff (281 bytes) - added by bangcok (underscore) dangerus (at) hotmail (dot) com 10 years ago.
rtorrent Makefile patch

Download all attachments as: .zip

Change History (5)

comment:1 follow-up: Changed 10 years ago by bangcok (underscore) dangerus (at) hotmail (dot) com

oops, please delete the Makefile.diff and Makefile.2.diff patches, they're incorrect. I was using the unstable versions of rtorrent. The current Makefiles are already for the most recent stable release. I'm attaching libtorrent-Makefile.patch and rtorrent-Makefile.patch which are for the nortti issue only.

Changed 10 years ago by bangcok (underscore) dangerus (at) hotmail (dot) com

libtorrent Makefile patch

Changed 10 years ago by bangcok (underscore) dangerus (at) hotmail (dot) com

rtorrent Makefile patch

comment:2 in reply to: ↑ 1 Changed 10 years ago by nico

  • Owner changed from developers to nico
  • Status changed from new to assigned

Replying to bangcok (underscore) dangerus (at) hotmail (dot) com:

oops, please delete the Makefile.diff and Makefile.2.diff patches, they're incorrect. I was using the unstable versions of rtorrent. The current Makefiles are already for the most recent stable release. I'm attaching libtorrent-Makefile.patch and rtorrent-Makefile.patch which are for the nortti issue only.

Done!

comment:3 Changed 10 years ago by nico

  • Resolution set to fixed
  • Status changed from assigned to closed

Applied in [11950], thanks!

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.