Opened 16 years ago

Closed 16 years ago

#4166 closed defect (fixed)

libmythupnp link error (post changeset 14844)

Reported by: mythtv@… Owned by: Nigel
Priority: minor Milestone: unknown
Component: upnp Version: head
Severity: medium Keywords:
Cc: Nigel Ticket locked: no

Description

Changeset 14844 causes a link error on my system (Slackware) for libmythupnp (cannot find –lXext).

Error is:-

ccache g++ -Wl,-rpath,/usr/lib/qt/lib -shared -Wl,-soname,libmythupnp-0.20.so.0 -o libmythupnp-0.20.so.0.20.0 version.o httprequest.o upnp.o ssdp.o taskqueue.o upnputil.o upnpdevice.o upnptasknotify.o upnptasksearch.o threadpool.o httpserver.o upnpcds.o upnpcdsobjects.o bufferedsocketdevice.o eventing.o upnpcmgr.o upnpmsrr.o upnptaskevent.o ssdpcache.o configuration.o soapclient.o mythxmlclient.o moc_ssdpcache.o  -L/usr/lib/qt/lib -L../libmyth -lmyth-0.20 -lqt-mt -lXext -lX11 -lm -lpthread 
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make: *** [libmythupnp-0.20.so.0.20.0] Error 1

The attached patch resolves this issue for me.

Attachments (1)

libmythupnp_link_error.patch (371 bytes) - added by mythtv@… 16 years ago.

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by mythtv@…

comment:1 Changed 16 years ago by Nigel

Owner: changed from dblain to Nigel

Sorry I broke it for you, Peter.
I tested on Knoppix, but somehow missed the fact that -lX11 -lXext are tacked onto the end of LIBS (and thus, we need EXTRA_LIBS)

comment:2 Changed 16 years ago by Nigel

Resolution: fixed
Status: newclosed

(In [14855]) LIBS always contains some X libraries, so we need EXTRA_LIBS also - for the linker to find them on some platforms. Closes #4166

Note: See TracTickets for help on using tickets.