Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#10933 closed enhancement (fixed)

dovecot-2.3.2.1

Reported by: Bruce Dubbs Owned by: thomas
Priority: normal Milestone: 8.3
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

New micro version.

Change History (7)

comment:1 by thomas, 3 years ago

at least it compiles fine (cannot install&test as i have cyrus-imapd allready productiv)

i used

CFLAGS+="-I/usr/include/tirpc" LDFLAGS+="-ltirpc" \
./configure --prefix=/usr            \
            --sysconfdir=/etc        \
            --localstatedir=/var     \
            --docdir=/usr/share/doc/dovecot-2.3.2.1 \
            --disable-static         \
            --with-pgsql             \
            --with-sqlite            \
            --with-mysql             \
            --with-ldap

configure summary:

Install prefix . : /usr
File offsets ... : 64bit
I/O polling .... : epoll
I/O notifys .... : inotify
SSL ............ : yes (OpenSSL)
GSSAPI ......... : no
passdbs ........ : static passwd passwd-file shadow pam checkpassword ldap sql
CFLAGS ......... : -std=gnu99 -I/usr/include/tirpc -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2  
                 : -bsdauth -sia -vpopmail
userdbs ........ : static prefetch passwd passwd-file checkpassword ldap sql
                 : -vpopmail
SQL drivers .... : pgsql mysql sqlite
                 : -cassandra
Full text search : squat
                 : -lucene -solr

Even thou all tests are passed ("0 / xx test failed"), "make -k check" terminates with rc=1, no valgrind on system.

HTH

comment:2 by thomas, 3 years ago

got that access violation error while running the test suite:

...
penalty .............................................................. : ok
0 / 1 tests failed
make[3]: Verzeichnis „/home/lfs/dovecot-2.3.2.1/src/anvil“ wird verlassen
make[2]: Verzeichnis „/home/lfs/dovecot-2.3.2.1/src/anvil“ wird verlassen
Making check in auth
make[2]: Verzeichnis „/home/lfs/dovecot-2.3.2.1/src/auth“ wird betreten
make  check-local
make[3]: Verzeichnis „/home/lfs/dovecot-2.3.2.1/src/auth“ wird betreten
for bin in test-libpassword test-auth-cache test-auth; do \
  if !  ./$bin; then exit 1; fi; \
done
/bin/sh: Zeile 1: 24176 Speicherzugriffsfehler  ./$bin
make[3]: *** [Makefile:1636: check-local] Fehler 1
make[3]: Verzeichnis „/home/lfs/dovecot-2.3.2.1/src/auth“ wird verlassen
make[2]: *** [Makefile:1497: check-am] Fehler 2
make[2]: Das Ziel „check“ wurde wegen Fehlern nicht aktualisiert.
make[2]: Verzeichnis „/home/lfs/dovecot-2.3.2.1/src/auth“ wird verlassen
Making check in dict
...

comment:3 by thomas, 3 years ago

Two of the three test programs (test-libpassword and test-auth) fail with a segfault, test-auth-cache runs fine when calling them manually.

Appears thats a known issue with glibc-2.28: https://www.mail-archive.com/dovecot@dovecot.org/msg74134.html

comment:4 by thomas, 3 years ago

Doing a small sed before compiling looks promising:

    sed -e "s;#include <unistd.h>;&\n#include <crypt.h>;" \
        -i src/auth/mycrypt.c

the log now contains

...
make[3]: Verzeichnis „/home/lfs/tmp/dovecot/build/dovecot-2.3.2.1/src/auth“ wird betreten
for bin in test-libpassword test-auth-cache test-auth; do \
  if !  ./$bin; then exit 1; fi; \
done
password scheme(PLAIN) ............................................... : ok
password scheme(CRYPT) ............................................... : ok
password scheme(PLAIN-MD4) ........................................... : ok
password scheme(MD5) ................................................. : ok
password scheme(SHA1) ................................................ : ok
password scheme(LANMAN) .............................................. : ok
password scheme(NTLM) ................................................ : ok
password scheme(SMD5) ................................................ : ok
password scheme(LDAP-MD5) ............................................ : ok
password scheme(SHA256) .............................................. : ok
password scheme(SHA512) .............................................. : ok
password scheme(SSHA) ................................................ : ok
password scheme(MD5-CRYPT) ........................................... : ok
password scheme(OTP) ................................................. : ok
password scheme(PBKDF2) .............................................. : ok
password scheme(RPA) ................................................. : ok
password scheme(SKEY) ................................................ : ok
password scheme(CRAM-MD5) ............................................ : ok
password scheme(DIGEST-MD5) .......................................... : ok
password scheme(SCRAM-SHA-1) ......................................... : ok
password scheme(BLF-CRYPT) ........................................... : ok
password scheme failures ............................................. : ok
0 / 22 tests failed
auth cache parse key ................................................. : ok
0 / 1 tests failed
auth request var expand short and long ............................... : ok
auth request var expand flags ........................................ : ok
auth request var expand long-only .................................... : ok
auth request var expand usernames .................................... : ok
auth request var expand funcs ........................................ : ok
db dict parse cache key .............................................. : ok
test username_filter ................................................. : ok
0 / 7 tests failed
make[3]: Verzeichnis „/home/lfs/tmp/dovecot/build/dovecot-2.3.2.1/src/auth“ wird verlassen
make[2]: Verzeichnis „/home/lfs/tmp/dovecot/build/dovecot-2.3.2.1/src/auth“ wird verlassen
Making check in dict
...

comment:5 by thomas, 3 years ago

Owner: changed from blfs-book to thomas
Status: newassigned

comment:6 by thomas, 3 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r20413

in reply to:  4 comment:7 by Bruce Dubbs, 3 years ago

Replying to thomas:

Doing a small sed before compiling looks promising:

    sed -e "s;#include <unistd.h>;&\n#include <crypt.h>;" \
        -i src/auth/mycrypt.c

Just a note about seds. The a (append) operation is sometimes cleaner:

sed -i "/unistd.h/a #include <crypt.h>" src/auth/mycrypt.c

Note: See TracTickets for help on using tickets.