Opened 11 years ago

Closed 11 years ago

#4130 closed Bug (fixed)

Remove -levent from and let pkg-config takes care of it.

Reported by: mezz Owned by: jordan
Priority: Normal Milestone: 2.30
Component: Qt Client Version: 2.22
Severity: Normal Keywords:


When have both libevent 1.x and libevent 2.x installed in the system. The transmission-qt will link to both libraries and it crashes. I have checked in and noticed that it has both pkg-config and hardcore '-levent' in there. It needs to be either remove that '-levent' and let pkg-config takes care of it or change from '-levent' to '-levent-2.0'.

# ldconfig -r | grep event-
	273:-levent-1.4.4 => /usr/local/lib/
	542:-levent-2.0.5 => /usr/local/lib/event2/

# ldd /usr/local/bin/transmission-qt | grep event => /usr/local/lib/ (0x28192000) => /usr/local/lib/event2/ (0x28237000)

After applied my patch and now it looks like:

# ldd /usr/local/bin/transmission-qt | grep event => /usr/local/lib/event2/ (0x28220000)

I know that the orignal libevent.pc has '-levent' in it. It's a bug. I have added patch to add the '-2.0' in each of libevent 2.x's *.pc files in FreeBSD ports tree. It's why I said let pkg-config takes care of it, because it's no issue in our ports tree. I plan to submit a bug ticket over at libevent about their *.pc files.

Attachments (1) (606 bytes) - added by mezz 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by mezz

comment:1 Changed 11 years ago by jordan

Patch added in r12187. Thanks mezz!

comment:2 Changed 11 years ago by jordan

  • Milestone changed from None Set to 2.30
  • Status changed from new to assigned

comment:3 Changed 11 years ago by jordan

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.