Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin does not build with Dovecot 2.3.11 #16

Open
peter-mauritius opened this issue Nov 6, 2020 · 5 comments
Open

Plugin does not build with Dovecot 2.3.11 #16

peter-mauritius opened this issue Nov 6, 2020 · 5 comments
Assignees

Comments

@peter-mauritius
Copy link
Contributor

peter-mauritius commented Nov 6, 2020

Build with Dovecvot 2.3.11 fails because: 'struct push_notification_txn_msg' has no member named 'seq'

@peter-mauritius peter-mauritius self-assigned this Nov 6, 2020
@rizkyfaza20
Copy link

rizkyfaza20 commented Feb 14, 2023

did you guys have found the solving? i'm also having issue build the source code by using dovecot-dev 2.3.19.2 here's the log build :

lib-test/push-notification-kafka-event-test.c:179:26: error: macro "DOVECOT_PREREQ" requires 3 arguments, but only 2 given
 #if ! DOVECOT_PREREQ(2, 3)
                          ^
lib-test/push-notification-kafka-event-test.c:180:8: error: 'struct push_notification_txn_msg' has no member named 'seq'
   event.seq = 1;
        ^
lib-test/push-notification-kafka-event-test.c: In function 'write_flags_event_test':
lib-test/push-notification-kafka-event-test.c:220:26: error: macro "DOVECOT_PREREQ" requires 3 arguments, but only 2 given
 #if ! DOVECOT_PREREQ(2, 3)
                          ^
lib-test/push-notification-kafka-event-test.c:221:8: error: 'struct push_notification_txn_msg' has no member named 'seq'
   event.seq = 1;
        ^
lib-test/push-notification-kafka-event-test.c: In function 'write_event_messagenew_test':
lib-test/push-notification-kafka-event-test.c:318:26: error: macro "DOVECOT_PREREQ" requires 3 arguments, but only 2 given
 #if ! DOVECOT_PREREQ(2, 3)
                          ^
lib-test/push-notification-kafka-event-test.c:319:6: error: 'struct push_notification_txn_msg' has no member named 'seq'
   msg.seq = 1;
      ^
lib-test/push-notification-kafka-event-test.c: In function 'write_event_messageappend_test':
lib-test/push-notification-kafka-event-test.c:376:26: error: macro "DOVECOT_PREREQ" requires 3 arguments, but only 2 given
 #if ! DOVECOT_PREREQ(2, 3)
                          ^
lib-test/push-notification-kafka-event-test.c:377:6: error: 'struct push_notification_txn_msg' has no member named 'seq'
   msg.seq = 1;
      ^
Makefile:633: recipe for target 'lib-test/test_kafka_event-push-notification-kafka-event-test.o' failed
make[2]: *** [lib-test/test_kafka_event-push-notification-kafka-event-test.o] Error 1
make[2]: Leaving directory '/etc/dovecot/push-notification-kafka-plugin/src'
Makefile:469: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/etc/dovecot/push-notification-kafka-plugin'
Makefile:401: recipe for target 'all' failed
make: *** [all] Error 2

kinda wait for the reply, thx in advance

@jrse
Copy link
Contributor

jrse commented Feb 16, 2023

seems to be a problem with the internal dovecot api and macros we are using in our tests to create the testenv.
#define DOVECOT_PREREQ(maj, min) changed to #define DOVECOT_PREREQ(maj, min, micro).

as a quick workaround you can disable the compilation of those testcases by editing src/Makefile.am line 27-51 and see if the plugin works. However it looks like some other internal apis have changed, will have a look and provide a fix.

@rizkyfaza20
Copy link

hi, @jrse, thanks for the tip, i will try to discuss with my team on this solution. will update later.

@jrse
Copy link
Contributor

jrse commented Feb 17, 2023

the solution will be a new version of the plugin with tests enabled and fully tested, hope i can build it in the next days.

@jrse
Copy link
Contributor

jrse commented Mar 4, 2023

fixed and merged to develop

peter-mauritius added a commit that referenced this issue Jun 2, 2023
* fixed broken append test

* #16 fix build for 2.3.19.2 removed usage of DOVECOT_PREREQ Macro (#17)

---------

Co-authored-by: Peter Mauritius <p.mauritius@tallence.com>
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

No branches or pull requests

3 participants