Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933255 - media-sound/schismtracker-20240529 fails to compile: audio_loadsave.c:818:9: error: fmt_flac_export_head undeclared here (not in a function)
Summary: media-sound/schismtracker-20240529 fails to compile: audio_loadsave.c:818:9: ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-31 10:48 UTC by Agostino Sarubbo
Modified: 2024-09-19 15:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,84.38 KB, text/plain)
2024-05-31 10:48 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-05-31 10:48:12 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/schismtracker-20240529 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-05-31 10:48:13 UTC
Created attachment 894706 [details]
build.log

build log and emerge --info
Comment 2 Miroslav Šulc gentoo-dev 2024-05-31 11:05:43 UTC
this is the full error from the log:

schism/audio_loadsave.c:818:9: error: ‘fmt_flac_export_head’ undeclared here (not in a function); did you mean ‘fmt_wav_export_head’?
  818 |         fmt_##t##_export_head, fmt_##t##_export_silence, fmt_##t##_export_body, fmt_##t##_export_tail
      |         ^~~~
schism/audio_loadsave.c:825:68: note: in expansion of macro ‘EXPORT_FUNCS’
  825 |  {"FLAC", "Free Lossless Audio Codec", ".flac", {.export = {EXPORT_FUNCS(flac), 0}}},
      |                                                             ^~~~~~~~~~~~

schism/audio_loadsave.c:818:32: error: ‘fmt_flac_export_silence’ undeclared here (not in a function); did you mean ‘fmt_wav_export_silence’?
  818 |         fmt_##t##_export_head, fmt_##t##_export_silence, fmt_##t##_export_body, fmt_##t##_export_tail
      |                                ^~~~
schism/audio_loadsave.c:825:68: note: in expansion of macro ‘EXPORT_FUNCS’
  825 |  {"FLAC", "Free Lossless Audio Codec", ".flac", {.export = {EXPORT_FUNCS(flac), 0}}},
      |                                                             ^~~~~~~~~~~~

schism/audio_loadsave.c:818:58: error: ‘fmt_flac_export_body’ undeclared here (not in a function); did you mean ‘fmt_wav_export_body’?
  818 |         fmt_##t##_export_head, fmt_##t##_export_silence, fmt_##t##_export_body, fmt_##t##_export_tail
      |                                                          ^~~~
schism/audio_loadsave.c:825:68: note: in expansion of macro ‘EXPORT_FUNCS’
  825 |  {"FLAC", "Free Lossless Audio Codec", ".flac", {.export = {EXPORT_FUNCS(flac), 0}}},
      |                                                             ^~~~~~~~~~~~

schism/audio_loadsave.c:818:81: error: ‘fmt_flac_export_tail’ undeclared here (not in a function); did you mean ‘fmt_wav_export_tail’?
  818 | port_head, fmt_##t##_export_silence, fmt_##t##_export_body, fmt_##t##_export_tail
      |                                                             ^~~~

schism/audio_loadsave.c:825:68: note: in expansion of macro ‘EXPORT_FUNCS’
  825 |  {"FLAC", "Free Lossless Audio Codec", ".flac", {.export = {EXPORT_FUNCS(flac), 0}}},
      |                                                             ^~~~~~~~~~~~

schism/audio_loadsave.c:838:72: error: ‘fmt_flac_save_sample’ undeclared here (not in a function); did you mean ‘fmt_raw_save_sample’?
  838 | LAC", "Free Lossless Audio Codec", ".flac", {.save_sample = fmt_flac_save_sample}},
      |                                                             ^~~~~~~~~~~~~~~~~~~~
      |                                                             fmt_raw_save_sample



here is the definition:
fmt/flac.c:int fmt_flac_export_head(disko_t *fp, int bits, int channels, int rate)


this is the macro where it fails:
#define EXPORT_FUNCS(t) \
        fmt_##t##_export_head, fmt_##t##_export_silence, fmt_##t##_export_body, fmt_##t##_export_tail


on my system i can't reproduce the issue.
Comment 3 Miroslav Šulc gentoo-dev 2024-06-30 11:44:51 UTC
i can't reproduce this one
Comment 4 matoro archtester 2024-09-19 15:34:16 UTC
I see this as well.  Reproduces in a clean chroot, so try that.