Project

General

Profile

Installation failing on Fedora

Added by David C over 10 years ago

I've tried following the instructions to install TvHeadend as found here [[http://linuxhtpcguide.blogspot.com/2011/05/howto-install-tvheadend-on-fedora.html]] as well as trying the instructions given on this site for installing on Gentoo, in case that worked.

Neither set of instructions seem to work for me.

The "gentoo" method gives this:

[[email protected] src]$ sudo ./configure
[sudo] password for david: 
Using C compiler:      cc
Using AVAHI client:    0.6.30
libssl or openssl not found
[[email protected] src]$ sudo make
cat: build.Linux/ver: No such file or directory
Version changed
Makefile:208: support/.mk: No such file or directory
make: *** No rule to make target `support/.mk'.  Stop.
[[email protected] src]$

The instructions supposedly for Fedora give this:

[[email protected] hts-tvheadend-2.12]$ ./configure 
Using C compiler:      cc
Using AVAHI client:    0.6.30
NOTE:
NOTE: Development build.
NOTE: The generated binary will contained compild-in paths to
NOTE: the current build tree. If you plan to install or move
NOTE: the binary, please reconfigure with --release.
NOTE:
Final binary is: build.Linux/tvheadend
[[email protected] hts-tvheadend-2.12]$ make
fatal: bad default revision 'HEAD'
fatal: bad default revision 'HEAD'
cc -MD -g -funsigned-char -O2  -D_FILE_OFFSET_BITS=64 -Ibuild.Linux -I/usr/local/bin/hts-tvheadend-2.12/src -I/usr/local/bin/hts-tvheadend-2.12 -DHTS_VERSION=\"2.12\" -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations  -Wmissing-prototypes  -c -o build.Linux/src/main.o /usr/local/bin/hts-tvheadend-2.12/src/main.c
fatal: bad default revision 'HEAD'
cc -MD -g -funsigned-char -O2  -D_FILE_OFFSET_BITS=64 -Ibuild.Linux -I/usr/local/bin/hts-tvheadend-2.12/src -I/usr/local/bin/hts-tvheadend-2.12 -DHTS_VERSION=\"2.12\" -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations  -Wmissing-prototypes  -c -o build.Linux/src/utils.o /usr/local/bin/hts-tvheadend-2.12/src/utils.c
fatal: bad default revision 'HEAD'
cc -MD -g -funsigned-char -O2  -D_FILE_OFFSET_BITS=64 -Ibuild.Linux -I/usr/local/bin/hts-tvheadend-2.12/src -I/usr/local/bin/hts-tvheadend-2.12 -DHTS_VERSION=\"2.12\" -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations  -Wmissing-prototypes  -c -o build.Linux/src/wrappers.o /usr/local/bin/hts-tvheadend-2.12/src/wrappers.c
fatal: bad default revision 'HEAD'
cc -MD -g -funsigned-char -O2  -D_FILE_OFFSET_BITS=64 -Ibuild.Linux -I/usr/local/bin/hts-tvheadend-2.12/src -I/usr/local/bin/hts-tvheadend-2.12 -DHTS_VERSION=\"2.12\" -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations  -Wmissing-prototypes  -c -o build.Linux/src/version.o /usr/local/bin/hts-tvheadend-2.12/src/version.c
fatal: bad default revision 'HEAD'
cc -MD -g -funsigned-char -O2  -D_FILE_OFFSET_BITS=64 -Ibuild.Linux -I/usr/local/bin/hts-tvheadend-2.12/src -I/usr/local/bin/hts-tvheadend-2.12 -DHTS_VERSION=\"2.12\" -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations  -Wmissing-prototypes  -c -o build.Linux/src/access.o /usr/local/bin/hts-tvheadend-2.12/src/access.c
fatal: bad default revision 'HEAD'
cc -MD -g -funsigned-char -O2  -D_FILE_OFFSET_BITS=64 -Ibuild.Linux -I/usr/local/bin/hts-tvheadend-2.12/src -I/usr/local/bin/hts-tvheadend-2.12 -DHTS_VERSION=\"2.12\" -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations  -Wmissing-prototypes  -c -o build.Linux/src/dtable.o /usr/local/bin/hts-tvheadend-2.12/src/dtable.c
fatal: bad default revision 'HEAD'
cc -MD -g -funsigned-char -O2  -D_FILE_OFFSET_BITS=64 -Ibuild.Linux -I/usr/local/bin/hts-tvheadend-2.12/src -I/usr/local/bin/hts-tvheadend-2.12 -DHTS_VERSION=\"2.12\" -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations  -Wmissing-prototypes  -c -o build.Linux/src/tcp.o /usr/local/bin/hts-tvheadend-2.12/src/tcp.c
/usr/local/bin/hts-tvheadend-2.12/src/tcp.c: In function ‘tcp_write_queue’:
/usr/local/bin/hts-tvheadend-2.12/src/tcp.c:184:10: error: variable ‘r’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make: *** [build.Linux/src/tcp.o] Error 1
[[email protected] hts-tvheadend-2.12]$ 

I'm at a loss. I'm not a developer but am happy enough tinkering around with linux etc, however this has me baffled. I don't know enough about GIT to know what's going wrong here, although I believe it's a git issue.

Any help gratefully received!


Replies (3)

RE: Installation failing on Fedora - Added by Beat Gerber over 10 years ago

I'v got the same error

Change CFLAGS in makefile

from..
CFLAGS = -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
to..
CFLAGS = -Wall -Wwrite-strings -Wno-deprecated-declarations

-Werror is stop compiling even if there is a unused variable

Works on Fedora 15

A real masterpiece of code ..like it a lot!
Have fun!

RE: Installation failing on Fedora - Added by Beat Gerber over 10 years ago

Sorry for my english .. -Werror does stop the compile process if there are unused variables present

variable ‘r’ is a so called dummy variable.

RE: Installation failing on Fedora - Added by Andreas Smas over 10 years ago

David C wrote:

I've tried following the instructions to install TvHeadend as found here [[http://linuxhtpcguide.blogspot.com/2011/05/howto-install-tvheadend-on-fedora.html]] as well as trying the instructions given on this site for installing on Gentoo, in case that worked.

Neither set of instructions seem to work for me.

The "gentoo" method gives this:
[...]

It says: libssl or openssl not found

You need to install dev versions of those libs.

The instructions supposedly for Fedora give this:
[...]

I'm at a loss. I'm not a developer but am happy enough tinkering around with linux etc, however this has me baffled. I don't know enough about GIT to know what's going wrong here, although I believe it's a git issue.

Any help gratefully received!

Yeah, removing -Werror form the Makefile will fix the issue for now.

    (1-3/3)