Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: imaptest: FTBFS around use of enum setting_flags (dovecot related)
Product: Red Hat Enterprise Linux 9 Reporter: Florian Weimer <fweimer>
Component: imaptestAssignee: Nobody <nobody>
Status: CLOSED CURRENTRELEASE QA Contact: FrantiĊĦek Hrdina <fhrdina>
Severity: unspecified Docs Contact:
Priority: medium    
Version: CentOS StreamCC: bstinson, jwboyer, psklenar
Target Milestone: betaKeywords: AutoVerified, Rebase, TestCaseProvided, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: imaptest-20210507-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-12 11:26:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
build.log none

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.