Opened 18 years ago
Closed 18 years ago
#1496 closed defect (fixed)
libfreemheg link error
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 0.20 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | libfreemheg link |
Cc: | Ticket locked: | no |
Description
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)
Change History (5)
Changed 18 years ago by
Attachment: | libfreemheg_link_error.patch added |
---|
comment:1 Changed 18 years ago by
Owner: | changed from Isaac Richards to danielk |
---|
comment:2 Changed 18 years ago by
Error is:
rm -f libfreemheg-0.19.so.0.19.0 libfreemheg-0.19.so libfreemheg-0.19.so.0 libfreemheg-0.19.so.0.19 ccache g++ -Wl,-rpath,/usr/lib/qt/lib -shared -Wl,-soname,libfreemheg-0.19.so.0 -o libfreemheg-0.19.so.0.19.0 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]: *** [libfreemheg-0.19.so.0.19.0] 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 18 years ago by
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 /usr/X11R6/include/X11/extensions/Xext.h /usr/X11R6/include/X11/extensions/panoramiXext.h /usr/X11R6/lib/libXext.a /usr/X11R6/lib/libXext.so /usr/X11R6/lib/libXext.so.6 /usr/X11R6/lib/libXext.so.6.4 /usr/lib/libXext-nx.so /usr/lib/libXext-nx.so.6 /usr/lib/libXext-nx.so.6.4
Note: See
TracTickets for help on using
tickets.
What was the error message?