#447196 anonymous structure makes lib partially unusable in C++

Package:
libmad
Source:
libmad
Submitter:
Philippe Coval
Date:
2026-10-13 14:23:28 UTC
Severity:
wishlist
Tags:
#447196#5
Date:
2007-10-18 20:31:34 UTC
From:
To:
--- Please enter the report below this line. ---
Hi,
Is it possible to apply this patch ?
I am about to report this upstream too

Because the structure can not be casted to an anonymous structure
which is mandatory in C++ (malloc returns void* and new is impossible
without typename)

see patch attached :
http://rzr.online.fr/docs/contribs/patches/libmad-0.15.1brzr.diff

Regards

#447196#10
Date:
2007-10-28 17:47:55 UTC
From:
To:
I haven't seen you send this to an upstream list yet?

Why do you think you need to allocate that buffer yourself?  This is
normally done in by libmad itself, in mad_decoder_run().


Kurt

#447196#15
Date:
2007-11-15 20:32:50 UTC
From:
To:
Kurt Roeckx wrote:
Hi
here is it (noone replied so far) :

http://sourceforge.net/tracker/index.php?func=detail&aid=1816107&group_id=12349&atid=312349
true, unless I hack the lib for personnal use :)

I agrea this is not a debian specific bug

Regards

#447196#20
Date:
2007-11-15 21:00:47 UTC
From:
To:
If you're already changing it to do other things you want to do with it,
I don't see why we should change something.


Kurt

#447196#25
Date:
2007-12-21 00:21:45 UTC
From:
To:
Err, I meant using the library structures outside the library ...

Regards

#447196#30
Date:
2024-11-06 19:31:53 UTC
From:
To:
This is not relevant to normal as-specced use of the library
and the type can trivially be named with
  using mad_sync = decltype(*std::declval<mad_decoder>().sync);

(You can do the same in C,
 just add some underscores and rephrase as a typedef.)

#447196#37
Date:
2026-10-13 13:21:40 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libmad, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 447196@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fabian Greffrath <fabian@debian.org> (supplier of updated libmad package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 13 Oct 2026 15:02:09 +0200
Source: libmad
Architecture: source
Version: 0.16.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: Fabian Greffrath <fabian@debian.org>
Closes: 447196
Changes:
 libmad (0.16.5-1) unstable; urgency=medium
 .
   * New upstream version 0.16.5
     + Fixed anonymous struct for C++ compatibility (Closes: #447196)
   * Remove patch, does not apply anymore
   * Install examples from examples/ directory
   * Update debian/libmad0.symbols file for added symbols
   * Adapt debian/copyright to moved source locations
   * Bump Standards-Version to 4.7.4
   * Bump debhelper-compat to 14, strip Depends fields
   * Configure with -DPAD_VERSION_STRING for improved ABI compatibility
     with 0.15.1b
   * Run "wrap-and-sort -ast"
Checksums-Sha1:
 fecbe12ac3fd5491bacf430bd1b44587e84746a6 2084 libmad_0.16.5-1.dsc
 ed923fe118e672c6d91f2a01343c1c9510eaa92e 129424 libmad_0.16.5.orig.tar.xz
 6bf94ba6c2ffe7118c4a9e3851e881aeea4e8b65 6804 libmad_0.16.5-1.debian.tar.xz
 3bdcf6088d8c2c40310147301b83e2304d9f7a47 7132 libmad_0.16.5-1_amd64.buildinfo
Checksums-Sha256:
 40544b3965fc6313e2ab0c82c11fc576821af405879b1b53ffbb562f4b1ac606 2084 libmad_0.16.5-1.dsc
 c262c2ffd1136313c45004cf90e3b71517cd01e23af1fd8a74b921a8a7c0fb4e 129424 libmad_0.16.5.orig.tar.xz
 26fa5b8b63f538cd799286f460870a8e2b639a5ea0f0f5cd9db63028563fba2d 6804 libmad_0.16.5-1.debian.tar.xz
 f1605b4c67f94edcf8bb70ae83f8eaf64ac1dfbc20058c66aaebcab1cda4ead2 7132 libmad_0.16.5-1_amd64.buildinfo
Files:
 1e60cb1540c8a89a2a30174a9c95f3cc 2084 sound optional libmad_0.16.5-1.dsc
 bde3fd83bc4c9ad25d15d29688365214 129424 sound optional libmad_0.16.5.orig.tar.xz
 b28194c2c01ff578049a482c219a0262 6804 sound optional libmad_0.16.5-1.debian.tar.xz
 21d8fd8d91aa36ac13cd138a2dba79f2 7132 sound optional libmad_0.16.5-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEIsF2SKlSa4TfGRyWy+qOlwzNWd8FAmrOLKoSHGZhYmlhbkBk
ZWJpYW4ub3JnAAoJEMvqjpcMzVnfe7MQALosKtnVXU8uv8icVer52KJUmnRiosAL
cbwV2uQZmraWQ8Zq2pNKK+PKAI9ZFt6op0nqJ7OCFUroVoERDKBn9J44UJ9jMkm9
Q6r+uppJ1K1hlLEsEL4GGM9gtNZJMDUEWuf1N6BkX32WUMAEoYLgFjLoM1/dsPdI
t/FT27r9JiJc/gYOk39PvtNqdjjQqsOBCk+XefTr5TQKLv4j9Dswnc3qeEDp/nPJ
C9owg4qVAQTQtjwTk2Cre0aqgIEP15JJXfvIjNa1MK4xniGCV3XojdBBVRpShKRE
+njnUMpApXcF6OvF2Lqb2gfLPKZSL3/rYHiRdysXIos3WL4sedDGlTZWEmggBQNz
XoYwkgWpnbske5eMyenZPjx3CsDzP+X0qJKs4kdPw72JNVvK3Vg8u1TfFQwPf7Fy
vL4T54aniyl3lgJg8eCT0ZYrVQEQqCVKjmiFm3BHiUT3BYXqXYvX5jZDLupRmOO5
26fiPAW4XE4p+pZHexq1d8h2XFuAXGZHeGyTFtW68Ak/3I3gWsYEDqALkHngcocV
JevLinZb4/i/7aMpyxa4VQ8tNDsQnQ6/KtCz02XPqvjCsHyC/XMEtnRcK2PAsSfm
cAIjmQpRwCtijOZWY4aDSiLTNcJaPIbf7jmGlgJf8co1XilmjJZ2HbWac4KGrkIF
N/Vq/2VXK6sx
=81jV
-----END PGP SIGNATURE-----