RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1987425 - imaptest: FTBFS around use of enum setting_flags (dovecot related)
Summary: imaptest: FTBFS around use of enum setting_flags (dovecot related)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: imaptest
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: beta
: ---
Assignee: Nobody
QA Contact: František Hrdina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-29 14:48 UTC by Florian Weimer
Modified: 2022-01-12 11:44 UTC (History)
3 users (show)

Fixed In Version: imaptest-20210507-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-12 11:26:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
build.log (80.63 KB, text/plain)
2021-07-29 14:48 UTC, Florian Weimer
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1979833 1 medium CLOSED CVE-2021-29157 dovecot: local attacker can login as any user and access their emails [rhel-9] 2022-08-06 13:33:18 UTC

Internal Links: 1979833

Description Florian Weimer 2021-07-29 14:48:35 UTC
Created attachment 1807318 [details]
build.log

A rebuild of imaptest-20210305-3.el9 encounters a build failure. The rebuild was done against dovecot-devel-1:2.3.15-1.el9, and this could be related to the component upgrade. (A previous successful build used dovecot-devel-1:2.3.14-4.el9.)

make[2]: Entering directory '/builddir/build/BUILD/imaptest-20210305/src'
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/dovecot   -I/usr/include/dovecot  -fPIE -DPIE -std=gnu99 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=keep -mindirect-branch=keep  -c -o imaptest-profile-parse.o `test -f 'profile-parse.c' || echo './'`profile-parse.c
make[2]: Leaving directory '/builddir/build/BUILD/imaptest-20210305/src'
profile-parse.c:33:26: error: incompatible types when initializing type 'enum setting_flags' using type 'char *'
   33 |         DEF(SET_STR, name),
      |                          ^
profile-parse.c:30:18: note: in definition of macro 'DEF'
   30 |         { type, #name, offsetof(struct profile_client, name), NULL }
      |                  ^~~~
profile-parse.c:33:9: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
   33 |         DEF(SET_STR, name),
      |         ^~~
profile-parse.c:33:9: note: (near initialization for 'profile_client_setting_defines[0].offset')
In file included from /usr/include/bits/types/struct_iovec.h:23,
                 from /usr/include/sys/uio.h:23,
                 from /usr/include/dovecot/compat.h:191,
                 from /usr/include/dovecot/lib.h:26,
                 from profile-parse.c:3:
profile-parse.c:30:40: warning: missing initializer for field 'list_info' of 'const struct setting_define' [-Wmissing-field-initializers]
   30 |         { type, #name, offsetof(struct profile_client, name), NULL }
      |                                        ^~~~~~~~~~~~~~
profile-parse.c:33:9: note: in expansion of macro 'DEF'
   33 |         DEF(SET_STR, name),
      |         ^~~
In file included from profile-parse.c:6:
/usr/include/dovecot/settings-parser.h:50:43: note: 'list_info' declared here
   50 |         const struct setting_parser_info *list_info;
      |                                           ^~~~~~~~~
profile-parse.c:34:31: error: incompatible types when initializing type 'enum setting_flags' using type 'char *'
   34 |         DEF(SET_ENUM, protocol),
      |                               ^
profile-parse.c:30:18: note: in definition of macro 'DEF'
   30 |         { type, #name, offsetof(struct profile_client, name), NULL }
      |                  ^~~~
pr

Comment 1 Florian Weimer 2021-07-29 14:53:21 UTC
Confirmed that a downgrade to dovecot-2.3.14-5.el9.x86_64, dovecot-devel-2.3.14-5.el9 fixes the build.

Comment 2 Pavel Zhukov 2021-07-29 15:16:33 UTC
(In reply to Florian Weimer from comment #1)
> Confirmed that a downgrade to dovecot-2.3.14-5.el9.x86_64,
> dovecot-devel-2.3.14-5.el9 fixes the build.

This is long story. Dovecot ignores so versioning completely and it's being rebased without any notifications.


Note You need to log in before you can comment on or make changes to this bug.