Skip to contentSkip to conversation

1.0.18-tools : ac3dec won't compile

DISCUSSION Klaus Schulz 2 participants 3 messages Nov 29, 2008 – Nov 30, 2008

lore
Share & tools
lore
#0 lore raw

Hi there.

Just tried to get the tools 1.0.18 compiled.

Following error message was printed when I tried to make ac3dec:

gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -O3 -g -MT extract_ac3.o -MD
-MP -MF .deps/extract_ac3.Tpo -c -o extract_ac3.o extract_ac3.c
cc1: warnings being treated as errors
extract_ac3.c: In function 'read_write_next_bytes':
extract_ac3.c:163: error: ignoring return value of 'write', declared with attribute warn_unused_result
extract_ac3.c:174: error: ignoring return value of 'write', declared with attribute warn_unused_result
make[2]: *** [extract_ac3.o] Error 1
make[2]: Leaving directory `/usr/src/Alsa-1.0.18a/alsa-tools-1.0.18/ac3dec/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/Alsa-1.0.18a/alsa-tools-1.0.18/ac3dec'
make: *** [all] Error 2

Any ideas?

THX

#1 lore raw

At Sat, 29 Nov 2008 15:30:39 +0100,

Quoted 25 lines · Klaus Schulz

Hi there.

Just tried to get the tools 1.0.18 compiled.

Following error message was printed when I tried to make ac3dec:

gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -O3 -g -MT extract_ac3.o -MD
-MP -MF .deps/extract_ac3.Tpo -c -o extract_ac3.o extract_ac3.c
cc1: warnings being treated as errors
extract_ac3.c: In function 'read_write_next_bytes':
extract_ac3.c:163: error: ignoring return value of 'write', declared with attribute warn_unused_result
extract_ac3.c:174: error: ignoring return value of 'write', declared with attribute warn_unused_result
make[2]: *** [extract_ac3.o] Error 1
make[2]: Leaving directory `/usr/src/Alsa-1.0.18a/alsa-tools-1.0.18/ac3dec/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/Alsa-1.0.18a/alsa-tools-1.0.18/ac3dec'
make: *** [all] Error 2

Quoted 1 line

Any ideas?

Remove -Werror from the compile option.

Takashi

#2 lore raw

Takashi.

Is this a bug and will it be solved? I don't need it for me personally. I want to get the tools compiled for the Ubuntu community using my upgrade script.

How do I get rid of this option? It is not that obvious on a first glance for me. ( I am still learning)

THX
Klaus

Quoted 36 lines · Takashi Iwai

At Sat, 29 Nov 2008 15:30:39 +0100,

Quoted 10 lines · Klaus Schulz

Hi there.

Just tried to get the tools 1.0.18 compiled.

Following error message was printed when I tried to make ac3dec:

gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -O3 -g -MT extract_ac3.o

-MD

Quoted 4 lines

-MP -MF .deps/extract_ac3.Tpo -c -o extract_ac3.o extract_ac3.c
cc1: warnings being treated as errors
extract_ac3.c: In function 'read_write_next_bytes':
extract_ac3.c:163: error: ignoring return value of 'write', declared with

Quoted 8 lines

attribute warn_unused_result
extract_ac3.c:174: error: ignoring return value of 'write', declared with attribute warn_unused_result
make[2]: *** [extract_ac3.o] Error 1
make[2]: Leaving directory `/usr/src/Alsa-1.0.18a/alsa-tools-1.0.18/ac3dec/tools' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory

`/usr/src/Alsa-1.0.18a/alsa-tools-1.0.18/ac3dec'

Quoted 4 lines

make: *** [all] Error 2

Any ideas?

Remove -Werror from the compile option.

Takashi