Opened 15 years ago

Closed 15 years ago

#1496 closed defect (fixed)

libfreemheg link error

Reported by: mythtv@… Owned by: danielk
Priority: minor Milestone: 0.20
Component: mythtv Version: head
Severity: medium Keywords: libfreemheg link
Cc: Ticket locked: no


Changeset 9329 causes a link error on my system for libfreemheg (cannot find –lXext).

Attached patch resolves it for me (although as I have no idea what I'm doing there my be a better fix)

Attachments (1)

libfreemheg_link_error.patch (376 bytes) - added by anonymous 15 years ago.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by anonymous

comment:1 Changed 15 years ago by danielk

Owner: changed from Isaac Richards to danielk

What was the error message?

comment:2 Changed 15 years ago by mythtv@…

Error is:

rm -f
ccache g++ -Wl,-rpath,/usr/lib/qt/lib -shared -Wl,-soname, -o Actions.o BaseClasses.o Bitmap.o Engine.o Groups.o Ingredients.o ParseBinary.o ParseNode.o ParseText.o Presentable.o Programs.o Root.o Stream.o Text.o Variables.o Visible.o BaseActions.o DynamicLineArt.o TokenGroup.o Link.o   -L/usr/lib/qt/lib -lqt-mt -lXext -lX11 -lm -lpthread
/usr/lib/gcc/i486-slackware-linux/3.4.5/../../../../i486-slackware-linux/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make[2]: *** [] Error 1
make[2]: Leaving directory `/usr/src/mythtv-svn/mythtv/libs/libfreemheg'
make[1]: *** [sub-libfreemheg] Error 2
make[1]: Leaving directory `/usr/src/mythtv-svn/mythtv/libs'
make: *** [sub-libs] Error 2

comment:3 Changed 15 years ago by anaerin@…

Another way to solve this is to remove the "-lXext -lX11" lines from the makefile. It compiles cleanly then.

(Note, my fix works on Debian Stable, untested elsewhere)

Xext is installed

anaerin@mythtv:/myth/compile/mythplugins# locate Xext

comment:4 Changed 15 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [9341]) Close #1496. Link fix.

Note: See TracTickets for help on using tickets.