Hi anyone.
When I run make trying to compile Dovecot for a network attached storage box and it fails.
I have used two variants of configuration:
The first ./configure
i_cv_epoll_works=no i_cv_inotify_works=no i_cv_posix_fallocate_works=no i_cv_signed_size_t=no i_cv_gmtime_max_time_t=32 i_cv_signed_time_t=yes i_cv_mmap_plays_with_write=yes i_cv_fd_passing=yes i_cv_c99_vsnprintf=yes lib_cv_va_copy=yes lib_cv___va_copy=yes lib_cv_va_val_copy=yes SSL_LIBS='/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/aes.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1_mac.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1t.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/bio.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/blowfish.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/bn.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/buffer.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/camellia.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/cast.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/comp.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/conf_api.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/conf.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/crypto.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/des.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dh.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dsa.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dso.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ebcdic.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/engine.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/e_os2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/err.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/evp.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/hmac.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/kssl.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/lhash.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md4.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md5.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/mdc2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/objects.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/obj_mac.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ocsp.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/opensslconf.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/opensslv.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ossl_typ.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pem2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pem.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pkcs12.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pkcs7.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pq_compat.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/rand.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/rsa.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/safestack.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/sha.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl23.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl3.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/stack.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/store.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/symhacks.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/tls1.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/tmdiff.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/txt_db.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ui_compat.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ui.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509v3.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509_vfy.h' SSL_CFLAGS=' ' ./configure --prefix=/opt --sysconfdir=/opt/etc --sysconfdir=/opt/etc/dovecot --with-linux-quota=no --target=armv5tel-softfloat-linux-gnueabi --host=armv5tel-softfloat-linux-gnueabi --build=x86_64-pc-linux-gnu
Make then fails...
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h:203: error: expected specifier-qualifier-list before 'SSL3_BUFFER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:84: error: expected specifier-qualifier-list before 'ASN1_INTEGER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:98: error: expected specifier-qualifier-list before 'ASN1_INTEGER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:114: error: expected specifier-qualifier-list before 'ASN1_INTEGER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:137: error: expected specifier-qualifier-list before 'ASN1_INTEGER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:158: error: expected specifier-qualifier-list before 'ASN1_INTEGER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:172: error: expected specifier-qualifier-list before 'ASN1_INTEGER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:186: error: expected specifier-qualifier-list before 'ASN1_INTEGER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:208: error: expected specifier-qualifier-list before 'ASN1_INTEGER'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:234: warning: return type defaults to 'int'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:233: warning: no previous prototype for 'DECLARE_ASN1_FUNCTIONS'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h: In function 'DECLARE_ASN1_FUNCTIONS':
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:234: error: expected declaration specifiers before 'DECLARE_ASN1_FUNCTIONS'
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:233: error: parameter name omitted In file included from /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl.h:1051, from /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl3.h:125:
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h:203:
error: expected specifier-qualifier-list before 'SSL3_BUFFER'
make[3]: *** [ssl-build-param] Error 1
make[3]: Leaving directory
/root/dovecot/dovecot-1-2-6c0fb914e03e/src/master' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/root/dovecot/dovecot-1-2-6c0fb914e03e/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/dovecot/dovecot-1-2-6c0fb914e03e'
make: *** [all] Error 2
Otherwise I ./configure against my native OpenSSL install.
i_cv_epoll_works=no i_cv_inotify_works=no i_cv_posix_fallocate_works=no i_cv_signed_size_t=no i_cv_gmtime_max_time_t=32 i_cv_signed_time_t=yes i_cv_mmap_plays_with_write=yes i_cv_fd_passing=yes i_cv_c99_vsnprintf=yes lib_cv_va_copy=yes lib_cv___va_copy=yes lib_cv_va_val_copy=yes SSL_LIBS='/usr/include/openssl/aes.h /usr/include/openssl/asn1.h /usr/include/openssl/asn1_mac.h /usr/include/openssl/asn1t.h /usr/include/openssl/bio.h /usr/include/openssl/blowfish.h /usr/include/openssl/bn.h /usr/include/openssl/buffer.h /usr/include/openssl/camellia.h /usr/include/openssl/cast.h /usr/include/openssl/comp.h /usr/include/openssl/conf_api.h /usr/include/openssl/conf.h /usr/include/openssl/crypto.h /usr/include/openssl/des.h /usr/include/openssl/dh.h /usr/include/openssl/dsa.h /usr/include/openssl/dso.h /usr/include/openssl/dtls1.h /usr/include/openssl/ebcdic.h /usr/include/openssl/engine.h /usr/include/openssl/e_os2.h /usr/include/openssl/err.h /usr/include/openssl/evp.h /usr/include/openssl/hmac.h /usr/include/openssl/krb5_asn.h /usr/include/openssl/kssl.h /usr/include/openssl/lhash.h /usr/include/openssl/md2.h /usr/include/openssl/md4.h /usr/include/openssl/md5.h /usr/include/openssl/mdc2.h /usr/include/openssl/objects.h /usr/include/openssl/obj_mac.h /usr/include/openssl/ocsp.h /usr/include/openssl/opensslconf.h /usr/include/openssl/opensslv.h /usr/include/openssl/ossl_typ.h /usr/include/openssl/pem2.h /usr/include/openssl/pem.h /usr/include/openssl/pkcs12.h /usr/include/openssl/pkcs7.h /usr/include/openssl/pq_compat.h /usr/include/openssl/rand.h /usr/include/openssl/rsa.h /usr/include/openssl/safestack.h /usr/include/openssl/sha.h /usr/include/openssl/ssl23.h /usr/include/openssl/ssl2.h /usr/include/openssl/ssl3.h /usr/include/openssl/ssl.h /usr/include/openssl/stack.h /usr/include/openssl/store.h /usr/include/openssl/symhacks.h /usr/include/openssl/tls1.h /usr/include/openssl/tmdiff.h /usr/include/openssl/txt_db.h /usr/include/openssl/ui_compat.h /usr/include/openssl/ui.h /usr/include/openssl/x509.h /usr/include/openssl/x509v3.h /usr/include/openssl/x509_vfy.h' SSL_CFLAGS=' ' ./configure --prefix=/opt --sysconfdir=/opt/etc --sysconfdir=/opt/etc/dovecot --with-linux-quota=no --target=armv5tel-softfloat-linux-gnueabi --host=armv5tel-softfloat-linux-gnueabi --build=x86_64-pc-linux-gnu
/usr/include/openssl/dtls1.h:203: error: expected
specifier-qualifier-list before 'SSL3_BUFFER' /usr/include/openssl/krb5_asn.h:84: error: expected specifier-qualifier-list before 'ASN1_INTEGER' /usr/include/openssl/krb5_asn.h:98: error: expected specifier-qualifier-list before 'ASN1_INTEGER' /usr/include/openssl/krb5_asn.h:114: error: expected specifier-qualifier-list before 'ASN1_INTEGER' /usr/include/openssl/krb5_asn.h:137: error: expected specifier-qualifier-list before 'ASN1_INTEGER' /usr/include/openssl/krb5_asn.h:158: error: expected specifier-qualifier-list before 'ASN1_INTEGER' /usr/include/openssl/krb5_asn.h:172: error: expected specifier-qualifier-list before 'ASN1_INTEGER' /usr/include/openssl/krb5_asn.h:186: error: expected specifier-qualifier-list before 'ASN1_INTEGER' /usr/include/openssl/krb5_asn.h:208: error: expected specifier-qualifier-list before 'ASN1_INTEGER' /usr/include/openssl/krb5_asn.h:234: warning: return type defaults to 'int' /usr/include/openssl/krb5_asn.h:233: warning: no previous prototype for 'DECLARE_ASN1_FUNCTIONS' /usr/include/openssl/krb5_asn.h: In function 'DECLARE_ASN1_FUNCTIONS': /usr/include/openssl/krb5_asn.h:234: error: expected declaration specifiers before 'DECLARE_ASN1_FUNCTIONS' /usr/include/openssl/krb5_asn.h:233: error: parameter name omitted In file included from /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl.h:1051, from /usr/include/openssl/ssl3.h:125:
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h:203:
error: expected specifier-qualifier-list before 'SSL3_BUFFER'
make[3]: *** [ssl-build-param] Error 1
make[3]: Leaving directory
/root/dovecot/dovecot-1-2-6c0fb914e03e/src/master' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/root/dovecot/dovecot-1-2-6c0fb914e03e/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/dovecot/dovecot-1-2-6c0fb914e03e'
make: *** [all] Error 2
As you can see though separate sets of libraries are used (native Dovecot compiles without any problems) both attempts to build Arm Dovecot fail in the same way.
Please help!
All guidance is welcome.
-- In gratitude, thanks.
Stephen Feyrer