0

我已经在我的 Windows 7 64 位系统上成功安装了 Cygwin。

我已经安装并编译了很多东西,没有任何问题。

  • --with-imap and --with-imap-ssl使用选项编译 PHP 5.4.9 时出现错误。
  • 我已经安装c-client在 Cygwin 中,它似乎安装在/usr/include/c-client.
  • 然后,我./configure使用 .php 将 for PHP 指向该位置--with-imap=/usr/include/c-client

即使这样做了,我在配置过程中也会收到以下错误:

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

我找不到任何关于 Cygwin 的更多信息。Linux 的大多数来源/信息都说这是因为缺少 c-client,但就我而言,我安装了 c-client。

这是因为 Cygwin 不支持 PHP 的 IMAP 扩展吗?有没有人在 Cygwin 上成功编译了 PHP 的 IMAP 扩展?


更新:刚刚从这里下载了 c-client,希望如果我自己编译它,我会得到所需的一切,包括libc-client.a.

该软件包看起来很有希望,因为它包含 Cygwin 的构建目标。但是,如果我运行make cyg,我最终会出现此错误:

In file included from /usr/include/openssl/crypto.h:131,
                 from /usr/include/openssl/bio.h:69,
                 from /usr/include/openssl/x509v3.h:61,
                 from osdep.c:210:
/usr/include/openssl/ossl_typ.h:153: error: parse error before numeric constant
/usr/include/openssl/ossl_typ.h:199: error: parse error before numeric constant
In file included from /usr/include/openssl/x509v3.h:62,
                 from osdep.c:210:
/usr/include/openssl/x509.h:199:1: pasting "stack_st_" and "(" does not give a valid preprocessing token
In file included from /usr/include/openssl/x509v3.h:62,
                 from osdep.c:210:
/usr/include/openssl/x509.h:199: error: parse error before numeric constant
/usr/include/openssl/x509.h:210: error: parse error before numeric constant
/usr/include/openssl/x509.h:235: error: parse error before '(' token
/usr/include/openssl/x509.h:239: error: parse error before '}' token
/usr/include/openssl/x509.h:243: error: parse error before "X509_REQ_INFO"
/usr/include/openssl/x509.h:247: error: parse error before '}' token
/usr/include/openssl/x509.h:254: error: parse error before '(' token
/usr/include/openssl/x509.h:256: error: parse error before "LPCSTR"
/usr/include/openssl/x509.h:262: error: parse error before '}' token
/usr/include/openssl/x509.h:281: error: parse error before "X509_CINF"
/usr/include/openssl/x509.h:309: error: parse error before '}' token
/usr/include/openssl/x509.h:330: error: parse error before numeric constant
/usr/include/openssl/x509.h:453: error: parse error before '(' token
/usr/include/openssl/x509.h:459: error: parse error before '}' token
/usr/include/openssl/x509.h:464: error: parse error before "X509_CRL_INFO"
/usr/include/openssl/x509.h:484: error: parse error before '}' token
In file included from /usr/include/openssl/x509.h:600,
                 from /usr/include/openssl/x509v3.h:62,
                 from osdep.c:210:
/usr/include/openssl/x509_vfy.h:150: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:152: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:159: error: parse error before '}' token
/usr/include/openssl/x509_vfy.h:203: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:204: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:209: error: parse error before '}' token
/usr/include/openssl/x509_vfy.h:221: error: parse error before "X509_LOOKUP_METHOD"
/usr/include/openssl/x509_vfy.h:225: error: parse error before '}' token
/usr/include/openssl/x509_vfy.h:253: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:254: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:278: error: parse error before '}' token
/usr/include/openssl/x509_vfy.h:407: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:408: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:415: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:416: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:435: error: parse error before "X509_LOOKUP_METHOD"
/usr/include/openssl/x509_vfy.h:437: error: parse error before '*' token
/usr/include/openssl/x509_vfy.h:438: error: parse error before '*' token
/usr/include/openssl/x509_vfy.h:443: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:456: error: parse error before '*' token
/usr/include/openssl/x509_vfy.h:459: error: parse error before '(' token
/usr/include/openssl/x509_vfy.h:461: error: parse error before '(' token
In file included from /usr/include/openssl/x509.h:601,
                 from /usr/include/openssl/x509v3.h:62,
                 from osdep.c:210:
/usr/include/openssl/pkcs7.h:88: error: parse error before '(' token
/usr/include/openssl/pkcs7.h:90: error: parse error before '}' token
/usr/include/openssl/pkcs7.h:95: error: parse error before "PKCS7_ISSUER_AND_SERIAL"
/usr/include/openssl/pkcs7.h:104: error: parse error before '}' token
/usr/include/openssl/pkcs7.h:104: error: parse error before "LPCSTR"
In file included from /usr/include/openssl/x509.h:601,
                 from /usr/include/openssl/x509v3.h:62,
                 from osdep.c:210:
/usr/include/openssl/pkcs7.h:106:1: pasting "stack_st_" and "(" does not give a valid preprocessing token
/usr/include/openssl/pkcs7.h:106: error: parse error before numeric constant
/usr/include/openssl/pkcs7.h:112: error: parse error before "PKCS7_ISSUER_AND_SERIAL"
/usr/include/openssl/pkcs7.h:116: error: parse error before '}' token
/usr/include/openssl/pkcs7.h:279: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:279: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:279: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:279: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:279: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:281: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:293: error: parse error before "LPCSTR"
/usr/include/openssl/pkcs7.h:293:1: pasting ")" and "_new" does not give a valid preprocessing token
/usr/include/openssl/pkcs7.h:293: error: parse error before numeric constant
/usr/include/openssl/pkcs7.h:293:1: pasting ")" and "_free" does not give a valid preprocessing token
/usr/include/openssl/pkcs7.h:293: error: parse error before "LPCSTR"
/usr/include/openssl/pkcs7.h:293:1: pasting "d2i_" and "(" does not give a valid preprocessing token
/usr/include/openssl/pkcs7.h:293:1: pasting "i2d_" and "(" does not give a valid preprocessing token
/usr/include/openssl/pkcs7.h:293: error: parse error before '(' token
/usr/include/openssl/pkcs7.h:293: error: parse error before numeric constant
/usr/include/openssl/pkcs7.h:293:1: pasting ")" and "_it" does not give a valid preprocessing token
/usr/include/openssl/pkcs7.h:294: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:294: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:294: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:294: error: parse error before '*' token
/usr/include/openssl/pkcs7.h:314: error: parse error before '(' token
/usr/include/openssl/pkcs7.h:316: error: parse error before '(' token
/usr/include/openssl/pkcs7.h:317: error: parse error before '(' token
/usr/include/openssl/pkcs7.h:322: error: parse error before '(' token
/usr/include/openssl/pkcs7.h:323: error: parse error before '(' token
/usr/include/openssl/pkcs7.h:331: error: parse error before "LPCSTR"

....

在这一点上,我不知道问题出在 openssl 头文件还是 libc-client 上。我的 OpenSSL 版本是OpenSSL 1.0.1c 10 May 2012.

任何输入表示赞赏。

我通过设置 SSLTYPE=none 尝试在不使用 SSL 的情况下进行构建,并且构建成功。但是,我需要 SSL 支持,所以我仍在尝试找到一种使用 SSL 构建的方法。

4

0 回答 0