-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
Hi Christian,
Thanks for the report.
We will look at the issue.
IgorV
сб, 25 янв. 2025 г. в 13:29, dmo ***@***.***>:
… 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
—
Reply to this email directly, view it on GitHub
<#10>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOGXFY4DXQ4XOM54KRBXF4D2MOGULAVCNFSM6AAAAABV3LNMQ2VHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYTAOJYGQZTINI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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 |
It's already the case. See the second line in my report. But I need to find where come from |
[Johannes Sixt]
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`
A better alternative, when files have to be edited anyway, might be to
add prototypes at the top of the code using these methods, or in a
common header file included by all C files. :)
…--
Vennlig hilsen
Petter Reinholdtsen
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
GCC 14.2.0
amd64
Debian unstable up to date
The text was updated successfully, but these errors were encountered: