Project

General

Profile

Compile error on Git version

Added by Kaya Saman almost 10 years ago

Hi,

I'm trying to compile the latest TVH from git to update my present older git build.

I keep running into this error however:

/usr/bin/ld: /home/htpc/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libvpx.a(vpx_codec.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/htpc/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libvpx.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '/home/htpc/tvheadend/build.linux/tvheadend' failed
make: *** [/home/htpc/tvheadend/build.linux/tvheadend] Error 1

I have done a "git pull" as of now but unfortunately the error remains.

I'm running Arch Linux kernel 4.5.1-1.

Could someone help, or should I post this onto Github as an issue?

Many thanks.


Replies (7)

RE: Compile error on Git version - Added by Ramon Moliner almost 10 years ago

Something similar for me.
I am on Ubuntu 14.04.1 x64

/usr/bin/ld: /usr/src/tvheadend/build.linux/src/misc/dbl.o: no se puede usar la reubicación R_X86_64_32 contra `.rodata' cuando se hace un objeto compartido; recompile con -fPIC
/usr/src/tvheadend/build.linux/src/misc/dbl.o: error adding symbols: Valor erróneo
collect2: error: ld returned 1 exit status
make: *** [/usr/src/tvheadend/build.linux/tvheadend] Error 1

And in the same build, other error/warning.
Something about "not found" downloading some binaries for hdhomerun

DOWNLOAD https://dl.bintray.com/tvheadend/misc/staticlib/trusty/amd64/hdhomerun-af7d02d036a3d661f39b8e7086bc94a8c27e4544 .tgz
--2016-05-04 16:19:30-- https://dl.bintray.com/tvheadend/misc/staticlib/trusty/amd64/hdhomerun-af7d02d036a3d661f39b8e7086bc94a 8c27e4544.tgz
Resolviendo dl.bintray.com (dl.bintray.com)... 159.122.18.156, 5.153.35.248
Conectando con dl.bintray.com (dl.bintray.com)[159.122.18.156]:443... conectado.
Petición HTTP enviada, esperando respuesta... 404 Not Found
2016-05-04 16:19:30 ERROR 404: Not Found.

RE: Compile error on Git version - Added by Ramon Moliner almost 10 years ago

Hi,

With 9/may commit (4.1-1999~gafdcecb), now I can compile with out errors.

RE: Compile error on Git version - Added by Kaya Saman almost 10 years ago

I unfortunately still get errors :-(

WGET            http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz:
2016-05-09 09:34:03 ERROR 403: Forbidden.
Makefile.ffmpeg:316: recipe for target '/home/htpc/tvheadend/build.linux/ffmpeg/libogg-1.3.2/.tvh_download' failed
make[1]: *** [/home/htpc/tvheadend/build.linux/ffmpeg/libogg-1.3.2/.tvh_download] Error 8
make[1]: Leaving directory '/home/htpc/tvheadend'
Makefile:749: recipe for target '/home/htpc/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a' failed
make: *** [/home/htpc/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a] Error 2

RE: Compile error on Git version - Added by Rob vh almost 10 years ago

I had the same error msg this morning. Since I had compile errors before that went away with a clean install, I just deleted the whole directory and did a
git clone https://github.com/tvheadend/tvheadend.git
The problem disappeared. Sigh.

RE: Compile error on Git version - Added by Kaya Saman almost 10 years ago

I also did a git clone after cleaning out the directory :-S

I'll try it again but still...??

RE: Compile error on Git version - Added by Rob vh almost 10 years ago

In addition (I run on an Ubuntu 12.04 server, didn't find the time/courage to more up 4 years) and have an ancient cmake, I used ./configure --disable-libx265 --disable-libx265_static

RE: Compile error on Git version - Added by Kaya Saman almost 10 years ago

Ok weird... it compiled??

-- just removed the folder (again) and did a git pull, then { ./configure && make } and now it builds :-S

    (1-7/7)