Package: cproto
Version: 4.7x-1
Severity: normal
Tags: upstream

This captures a bug report sent directly to my debian.org email address.
(I did not initially realize this hadn't been submitted to the BTS.)
I'll adjust the submitter email address shortly.

Ken

-----

Hello Kenneth,

I found the utility 'cproto' throws a warning when processing c source
files with embedded #include <sys/types.h>, e.g.:

$ cproto mkdirpath.c
/* mkdirpath.c */
/usr/include/linux/types.h:12: syntax error at token '__s128'
Expected: ';'
int mkPath(const char *path, const char *user, const char *group, int mode);
int checkPath(const char *path, const char *user, const char *group,
int mode, int cflag, char **fail);

This error can be reproduced on debian trixie, 'x86_64-linux-gnu'
(intel) and  'arm-linux-gnueabihf' (raspberry-pi) platform.
The installed cproto packet is cproto_4.7x-1_amd64.deb.
The error occured first after update from debian bookworm to trixie
and I suspect types.h is the culprit.
Unfortuantely it's beyond my skills to dig into these header files.

I attach the test file mkdirpath.c
Hopefully it's useful to reproduce the error.

-- System Information:
Debian Release: 13.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.57+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cproto depends on:
ii  gcc    4:14.2.0-1
ii  libc6  2.41-12

cproto recommends no packages.

cproto suggests no packages.

-- no debconf information

Attachment: mkdirpath.c
Description: Binary data

Reply via email to