Skip to content

Fix build issue with gcc-15#11

Open
MaXinjian wants to merge 2 commits into
BuGlessRB:masterfrom
MaXinjian:master
Open

Fix build issue with gcc-15#11
MaXinjian wants to merge 2 commits into
BuGlessRB:masterfrom
MaXinjian:master

Conversation

@MaXinjian
Copy link
Copy Markdown

  1. fix uname declaration
  2. fix issue "error: too many arguments to function xxx"

liuyd96 added 2 commits June 10, 2025 08:53
fix issue like:

| procmail.c:76:12: error: too many arguments to function 'auth_finduid'; expected 0, have 2
|    76 |   if(tpass=auth_finduid(uid,0))                           /* save by copying */
|       |            ^~~~~~~~~~~~ ~~~
| In file included from procmail.c:36:
| authenticate.h:15:3: note: declared here
|    15 |  *auth_finduid Q((const uid_t uid,const int sock));
| --
| procmail.c:212:9: error: too many arguments to function 'checkprivFrom_'; expected 0, have 3
|   212 |         checkprivFrom_(euid,passinvk?auth_username(passinvk):0,override);
|       |         ^~~~~~~~~~~~~~ ~~~~
| In file included from procmail.c:41:
| from.h:9:2: note: declared here
|     9 |  checkprivFrom_ Q((uid_t euid,const char*logname,int override));
| --
| procmail.c:213:9: error: too many arguments to function 'doumask'; expected 0, have 1
|   213 |         doumask(INIT_UMASK);               /* allowed to set the From_ line? */
|       |         ^~~~~~~
| In file included from procmail.c:23:
| robust.h:12:2: note: declared here
|    12 |  doumask Q((const mode_t mask));

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
fix issue like:
includes.h:334:12: error: conflicting types for 'uname'; have 'int(void)'
  334 | extern int uname();                                      /* so we fix it :-) */
      |            ^~~~~
In file included from includes.h:67:
/mnt/test/build_auh/tmp/work/core2-64-poky-linux/procmail/3.22/recipe-sysroot/usr/include/sys/utsname.h:81:12: note: previous declaration of 'uname' with type 'int(struct utsname *)'
   81 | extern int uname (struct utsname *__name) __THROW;
      |            ^~~~~

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
@BuGlessRB BuGlessRB force-pushed the master branch 4 times, most recently from 4ca880f to ffe0194 Compare May 19, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants