1 |
Hi. |
2 |
|
3 |
I'm not getting the best out of a cross compile. It is clear to me that |
4 |
bojing it isn't going to work. |
5 |
|
6 |
What I'd like to do is get ./configure to run through with out any |
7 |
cached values or passing SSL_LIBS. |
8 |
|
9 |
Does anyone know how cross emerge deals with these issues arising from |
10 |
none code tests? |
11 |
|
12 |
I am open to any suggestions no matter how sensible. |
13 |
|
14 |
|
15 |
Best result so far. |
16 |
|
17 |
i_cv_epoll_works=no i_cv_inotify_works=no i_cv_posix_fallocate_works=no |
18 |
i_cv_signed_size_t=no i_cv_gmtime_max_time_t=32 i_cv_signed_time_t=yes |
19 |
i_cv_mmap_plays_with_write=yes i_cv_fd_passing=yes |
20 |
i_cv_c99_vsnprintf=yes lib_cv_va_copy=yes lib_cv___va_copy=yes |
21 |
lib_cv_va_val_copy=yes |
22 |
SSL_LIBS='/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/aes.h |
23 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1.h |
24 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1_mac.h |
25 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1t.h |
26 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/bio.h |
27 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/blowfish.h |
28 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/bn.h |
29 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/buffer.h |
30 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/camellia.h |
31 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/cast.h |
32 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/comp.h |
33 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/conf_api.h |
34 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/conf.h |
35 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/crypto.h |
36 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/des.h |
37 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dh.h |
38 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dsa.h |
39 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dso.h |
40 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h |
41 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ebcdic.h |
42 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/engine.h |
43 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/e_os2.h |
44 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/err.h |
45 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/evp.h |
46 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/hmac.h |
47 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h |
48 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/kssl.h |
49 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/lhash.h |
50 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md2.h |
51 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md4.h |
52 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md5.h |
53 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/mdc2.h |
54 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/objects.h |
55 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/obj_mac.h |
56 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ocsp.h |
57 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/opensslconf.h |
58 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/opensslv.h |
59 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ossl_typ.h |
60 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pem2.h |
61 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pem.h |
62 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pkcs12.h |
63 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pkcs7.h |
64 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pq_compat.h |
65 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/rand.h |
66 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/rsa.h |
67 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/safestack.h |
68 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/sha.h |
69 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl23.h |
70 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl2.h |
71 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl3.h |
72 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl.h |
73 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/stack.h |
74 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/store.h |
75 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/symhacks.h |
76 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/tls1.h |
77 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/tmdiff.h |
78 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/txt_db.h |
79 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ui_compat.h |
80 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ui.h |
81 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509.h |
82 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509v3.h |
83 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509_vfy.h' |
84 |
SSL_CFLAGS=' ' ./configure --prefix=/opt --sysconfdir=/opt/etc |
85 |
--sysconfdir=/opt/etc/dovecot --with-linux-quota=no |
86 |
--target=armv5tel-softfloat-linux-gnueabi |
87 |
--host=armv5tel-softfloat-linux-gnueabi --build=x86_64-pc-linux-gnu |
88 |
|
89 |
Configure... [OK] |
90 |
|
91 |
|
92 |
Make... |
93 |
|
94 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h:203: |
95 |
error: expected specifier-qualifier-list before 'SSL3_BUFFER' |
96 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:84: |
97 |
error: expected specifier-qualifier-list before 'ASN1_INTEGER' |
98 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:98: |
99 |
error: expected specifier-qualifier-list before 'ASN1_INTEGER' |
100 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:114: |
101 |
error: expected specifier-qualifier-list before 'ASN1_INTEGER' |
102 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:137: |
103 |
error: expected specifier-qualifier-list before 'ASN1_INTEGER' |
104 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:158: |
105 |
error: expected specifier-qualifier-list before 'ASN1_INTEGER' |
106 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:172: |
107 |
error: expected specifier-qualifier-list before 'ASN1_INTEGER' |
108 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:186: |
109 |
error: expected specifier-qualifier-list before 'ASN1_INTEGER' |
110 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:208: |
111 |
error: expected specifier-qualifier-list before 'ASN1_INTEGER' |
112 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:234: |
113 |
warning: return type defaults to 'int' |
114 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:233: |
115 |
warning: no previous prototype for 'DECLARE_ASN1_FUNCTIONS' |
116 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h: In |
117 |
function 'DECLARE_ASN1_FUNCTIONS': |
118 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:234: |
119 |
error: expected declaration specifiers before 'DECLARE_ASN1_FUNCTIONS' |
120 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h:233: |
121 |
error: parameter name omitted |
122 |
In file included from |
123 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl.h:1051, |
124 |
from |
125 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl3.h:125: |
126 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h:203: |
127 |
error: expected specifier-qualifier-list before 'SSL3_BUFFER' |
128 |
make[3]: *** [imap-login] Error 1 |
129 |
make[3]: Leaving directory |
130 |
`/root/dovecot/dovecot-1-2-6c0fb914e03e/src/imap-login' |
131 |
make[2]: *** [all-recursive] Error 1 |
132 |
make[2]: Leaving directory `/root/dovecot/dovecot-1-2-6c0fb914e03e/src' |
133 |
make[1]: *** [all-recursive] Error 1 |
134 |
make[1]: Leaving directory `/root/dovecot/dovecot-1-2-6c0fb914e03e' |
135 |
make: *** [all] Error 2 |
136 |
|
137 |
Respectively the same error when I try to compile against |
138 |
/usr/include/openssl/krb5_asn.h but also when I try to compile natively |
139 |
against |
140 |
/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h. |
141 |
|
142 |
|
143 |
I wrote: |
144 |
> Hi. |
145 |
> |
146 |
> When I try to use ./configure --prefix /opt |
147 |
> --host=armv5tel-softfloat-linux-gnueabi if fails with this error: |
148 |
> |
149 |
> |
150 |
> checking for malloc_usable_size... yes |
151 |
> checking for clock_gettime... no |
152 |
> checking for strtoimax... yes |
153 |
> checking for strtoumax... yes |
154 |
> checking whether we can use epoll... configure: error: in |
155 |
> `/root/dovecot/dovecot-1-2-6c0fb914e03e': |
156 |
> configure: error: cannot run test program while cross compiling |
157 |
> See `config.log' for more details. |
158 |
> |
159 |
> I'm trying to build the latest version of Dovecot for an arm based |
160 |
> network attached storage device. |
161 |
> |
162 |
> |
163 |
> Please help! |
164 |
> |
165 |
> |
166 |
> In anticipation of great things, thanks. |
167 |
> |
168 |
> -- |
169 |
> Stephen. |