Opened 18 years ago

Closed 17 years ago

#2195 closed defect (fixed)

libdts compile problem on amd64

Reported by: devel@… Owned by: danielk
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: low Keywords:
Cc: mythtv-dev@… Ticket locked: no

Description

When compiling mythtv with libdts on amd64 compilation fails with the following errors: /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libdts.a(parse.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC

Fix: 1) Delete /usr/lib/libdts.a 2) Rename /usr/lib/libdts-pic.a to /usr/lib/libdts.a

Note: This is on ubuntu but I think applies to other distros as well. Could this be made into a compile-time check so myth automatically compiles with libdts-pic.a instead?

Change History (3)

comment:1 Changed 18 years ago by mikemiron@…

More simple fix: change libs/libavcodec/libavcodec.pro from

contains( CONFIG_DTS, yes ) {
    SOURCES += dtsdec.c
    LIBS += -ldts
}

to

contains( CONFIG_DTS, yes ) {
    SOURCES += dtsdec.c
    LIBS += -ldts_pic
}

It done in package creation scripts on Debian. Just use packages.

comment:2 Changed 17 years ago by danielk

Milestone: 0.21
Owner: changed from Isaac Richards to danielk
Version: head

comment:3 Changed 17 years ago by danielk

Resolution: fixed
Status: newclosed

It appears this has already been fixed in SVN head...

Note: See TracTickets for help on using tickets.