Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fail to build mepg3* code #10

Open
marillat opened this issue Jan 25, 2025 · 4 comments
Open

Fail to build mepg3* code #10

marillat opened this issue Jan 25, 2025 · 4 comments

Comments

@marillat
Copy link

GCC 14.2.0
amd64
Debian unstable up to date

libtool: compile:  ccache cc -DHAVE_CONFIG_H -I. -I../.. -I./.. -Wdate-time -D_FORTIFY_SOURCE=2 -DX86_CPU -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS -Wno-implicit-function-declaration -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/cinelerra-cv-dmo-2.3+20250125.gitfb6eb39=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c mpeg3audio.c  -fPIC -DPIC -o .libs/mpeg3audio.o
synthesizers.c: In function 'mpeg3audio_synth_stereo':
synthesizers.c:36:9: error: implicit declaration of function 'mpeg3audio_dct64'; did you mean 'mpeg3audio_dopcm'? [-Wimplicit-function-declaration]
   36 |         mpeg3audio_dct64(buf[1] + ((audio->bo + 1) & 0xf), buf[0] + audio->bo, bandPtr);
      |         ^~~~~~~~~~~~~~~~
      |         mpeg3audio_dopcm
make[5]: *** [Makefile:517: synthesizers.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
layer2.c: In function 'mpeg3audio_dolayer2':
layer2.c:392:9: error: implicit declaration of function 'mpeg3bits_use_ptr'; did you mean 'mpeg3bits_reset'? [-Wimplicit-function-declaration]
  392 |         mpeg3bits_use_ptr(audio->stream, frame);
      |         ^~~~~~~~~~~~~~~~~
      |         mpeg3bits_reset
layer2.c:419:33: error: implicit declaration of function 'mpeg3audio_synth_stereo' [-Wimplicit-function-declaration]
  419 |                                 mpeg3audio_synth_stereo(audio,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:517: layer2.lo] Error 1
layer3.c: In function 'dequantize_sample':
layer3.c:246:19: error: implicit declaration of function 'mpeg3bits_getbitoffset'; did you mean 'mpeg3bits_getbits'? [-Wimplicit-function-declaration]
  246 |         int num = mpeg3bits_getbitoffset(audio->stream);
      |                   ^~~~~~~~~~~~~~~~~~~~~~
      |                   mpeg3bits_getbits
layer3.c:673:9: error: implicit declaration of function 'mpeg3bits_start_reverse'; did you mean 'mpeg3bits_getbits_reverse'? [-Wimplicit-function-declaration]
  673 |         mpeg3bits_start_reverse(audio->stream);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
      |         mpeg3bits_getbits_reverse
layer3.c:675:9: error: implicit declaration of function 'mpeg3bits_start_forward'; did you mean 'mpeg3demux_start_forward'? [-Wimplicit-function-declaration]
  675 |         mpeg3bits_start_forward(audio->stream);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
      |         mpeg3demux_start_forward
layer3.c: In function 'hybrid':
layer3.c:829:9: error: implicit declaration of function 'mpeg3audio_dct36'; did you mean 'mpeg3audio_dopcm'? [-Wimplicit-function-declaration]
  829 |         mpeg3audio_dct36(fsIn[0], rawout1, rawout2, mpeg3_win[0], tspnt);
      |         ^~~~~~~~~~~~~~~~
      |         mpeg3audio_dopcm
layer3.c:841:17: error: implicit declaration of function 'mpeg3audio_dct12'; did you mean 'mpeg3audio_dopcm'? [-Wimplicit-function-declaration]
  841 |                 mpeg3audio_dct12(fsIn[sb]  ,rawout1   ,rawout2   ,mpeg3_win[2] ,tspnt);
      |                 ^~~~~~~~~~~~~~~~
      |                 mpeg3audio_dopcm
layer3.c: In function 'mpeg3audio_dolayer3':
layer3.c:1111:17: error: implicit declaration of function 'mpeg3bits_use_ptr'; did you mean 'mpeg3bits_reset'? [-Wimplicit-function-declaration]
 1111 |                 mpeg3bits_use_ptr(audio->stream, audio->bsbuf);
      |                 ^~~~~~~~~~~~~~~~~
      |                 mpeg3bits_reset
layer3.c:1300:49: error: implicit declaration of function 'mpeg3audio_synth_stereo' [-Wimplicit-function-declaration]
 1300 |                                                 mpeg3audio_synth_stereo(audio,
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~
layer3.c: In function 'mpeg3_layer_reset':
layer3.c:1355:9: error: implicit declaration of function 'mpeg3audio_reset_synths' [-Wimplicit-function-declaration]
 1355 |         mpeg3audio_reset_synths(audio);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:517: layer3.lo] Error 1
@IgorVladimirsky
Copy link
Contributor

IgorVladimirsky commented Jan 25, 2025 via email

@j6t
Copy link

j6t commented Jan 25, 2025

You are basically screwed. None of the functions has a forward declaration in any of the headers files. The code depends on the implicit declaration. You have build this library (and only this library) with -Wno-implicit-function-declaration

@marillat
Copy link
Author

It's already the case. See the second line in my report. But -Werror=implicit-function-declaration is also present.

I need to find where come from -Werror

@petterreinholdtsen
Copy link
Contributor

petterreinholdtsen commented Jan 25, 2025 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants