#351328 icheck: "Can't call method "get" on an undefined value" when checking freetype headers

Package:
icheck
Source:
icheck
Description:
C interface ABI/API checker
Submitter:
Eugene Konev
Date:
2025-01-01 14:06:01 UTC
Severity:
important
#351328#5
Date:
2006-02-04 04:13:02 UTC
From:
To:
test.h:
#include <ft2build.h>
#include FT_FREETYPE_H

$ icheck --canonify -o icheck.result -I/usr/include/freetype2 test.h
/usr/include/freetype2/freetype/freetype.h:634:2: Can't call method "get" on
an undefined value at /usr/share/icheck/perl5/CParse/Declarator.pm line 157.
Attempt to free unreferenced scalar: SV 0x8cf5558, Perl interpreter:
0x814a008 during global destruction.

#351328#10
Date:
2006-05-24 08:10:48 UTC
From:
To:
Attached patch fixes 2 issues:
CParse::Enumerator::get_member doesn't pass $namespace down on the call
stack and this is the reason of the bug.
CType::Ref proxies only some of the methods of underlying type, four
new are added. This allows to canonify at least freetype headers. Maybe
more proxying methods are needed.

#351328#15
Date:
2013-04-02 10:34:01 UTC
From:
To:
Dear maintainer,

I have some free time and I'm offering help.

Here is the NMU diff according to DevRef 5.11.1[1][2] for bug: #351328.
See the debian/patches directory for the important fixes.
with some other Lintian fixes included.

    NOTE: There were inline changes to original sources. Those were moved
    to patches 10 and 11; then original files were restored (in diff: all
    non */debian/* files).

Please let me know if it is ok to proceed with the NMU. Feel free to
contact if you have any questions.

Thank you for maintaining the package,
Jari Aalto

[1] http://www.debian.org/doc/developers-reference/pkgs.html#nmu
[2] http://dep.debian.net/deps/dep1.html

lsdiff(1) of changes:

    icheck-0.9.7/ChangeLog
    icheck-0.9.7/debian/changelog
    icheck-0.9.7/debian/clean
    icheck-0.9.7/debian/compat
    icheck-0.9.7/debian/control
    icheck-0.9.7/debian/copyright
    icheck-0.9.7/debian/patches/10-local-changes.patch
    icheck-0.9.7/debian/patches/11-local-changes-tests.patch
    icheck-0.9.7/debian/patches/20-bug-351328.patch
    icheck-0.9.7/debian/patches/30-manpage.patch
    icheck-0.9.7/debian/patches/40-make.patch
    icheck-0.9.7/debian/patches/series
    icheck-0.9.7/debian/rules
    icheck-0.9.7/debian/source/format
    icheck-0.9.7/debian/watch
    icheck-0.9.7/Makefile
    icheck-0.9.7/NEWS
    icheck-0.9.7/t/04_align/diff
    icheck-0.9.7/t/04_align/original

#351328#20
Date:
2025-01-01 14:03:22 UTC
From:
To:
Hi,

thank you for your contribution to icheck.  I've just moved it to
Salsa[1] and you are kindly invited to push patches there or file
MRs.

Kind regards
   Andreas.

[1] https://salsa.debian.org/debian/icheck