Opened 12 years ago

Closed 12 years ago

#3616 closed defect (fixed)

libdts in x86_64 linking against wrong library & --arch=k8 fails too

Reported by: anonymous Owned by: Isaac Richards
Priority: major Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords: 13687
Cc: Ticket locked: no

Description

Trunk #13648 was compiling fine today I upgraded to 13687 and it would not compile with --enable-dts or --enable-libdts (someone switched that to libdts now). It seems it's not linking against correct library. The correct one is: /usr/lib/libdts.a /usr/lib/libdts_pic.a

Please advise.

Also, when configuring with --arch=k8 it fails too, this worked on 13648, the error i'm getting is: ERROR: CPU specific ./configure options failed compile test

Removing CPU specific compilation options. (-march=generic)

/usr/bin/ld: /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 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libdts.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: * [libmythavcodec-0.20.so.0.20.0] Error 1 make[2]: Leaving directory `/usr/src/mythtv_13687/mythtv/libs/libavcodec' make[1]: * [sub-libavcodec] Error 2 make[1]: Leaving directory `/usr/src/mythtv_13687/mythtv/libs' make: * [sub-libs] Error 2

Change History (3)

comment:1 in reply to:  description ; Changed 12 years ago by anonymous

Reposting again, the original post looked ugly.

Trunk 13648 was compiling fine a few days ago, today I upgraded to 13687 and it would not compile with --enable-dts or --enable-libdts (someone switched that to libdts now). It seems it's not linking against correct library. The correct one is: /usr/lib/libdts.a /usr/lib/libdts_pic.a

this is the error I get:

/usr/bin/ld: /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 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libdts.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libmythavcodec-0.20.so.0.20.0] Error 1 make[2]: Leaving directory `/usr/src/mythtv_13687/mythtv/libs/libavcodec' make[1]: *** [sub-libavcodec] Error 2 make[1]: Leaving directory `/usr/src/mythtv_13687/mythtv/libs' make: *** [sub-libs] Error 2 

Also, when configuring with --arch=k8 it fails too, this worked on 13648, the error i'm getting is:

ERROR: CPU specific ./configure options failed compile test 
Removing CPU specific compilation options. (-march=generic) 

comment:2 in reply to:  1 Changed 12 years ago by anonymous

Reposting again, the original post looked ugly. Trunk 13648 was compiling fine a few days ago, today I upgraded to 13687 and it would not compile with --enable-dts or --enable-libdts (someone switched that to libdts now). It seems it's not linking against correct library. The correct one is: /usr/lib/libdts.a /usr/lib/libdts_pic.a

this is the error I get:

/usr/bin/ld: /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 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libdts.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libmythavcodec-0.20.so.0.20.0] Error 1 make[2]: Leaving directory /usr/src/mythtv_13687/mythtv/libs/libavcodec' make[1]: * [sub-libavcodec] Error 2 make[1]: Leaving directory `/usr/src/mythtv_13687/mythtv/libs' make: * [sub-libs] Error 2

Also, when configuring with --arch=k8 it fails too, this worked on 13648, the error i'm getting is:

ERROR: CPU specific ./configure options failed compile test 
Removing CPU specific compilation options. (-march=generic) 

comment:3 Changed 12 years ago by Janne Grunau

Resolution: fixed
Status: newclosed

(In [13692]) Fixes #3616. reverted dts library check. don't use generic as march

Note: See TracTickets for help on using tickets.