Build Resin On "Red Hat Enterprise Linux As Release 3 (TAROON"

zhaozj2021-02-16  145

$ CAT / ETC / ISSUE

$ Red Hat Enterprise Linux As Release 3 (Taroon)

Compile Apache first, plus --Nable-module = so --enable-module = REWRITE parameters

Then Build Resin-2.1.13.

Compile RESIN-2 * on this version will prompt

$ Make [...] / usr / include / openssl / kssl.h: 169: Syntax error BEFORE "ENCTYPE" in File Included from spamc / utils.h: 28, from spamc / libspamc.c: 20: / usr / INCLUDE / OPENSSL / SSL.H: 909: Syntax Error Before "KSSL_CTX" /usr/include/openssl/ssl.h:931: syntax error before '}' tokenin file incrured from /usr/include/openssl/ssl.h: 179, from spamc / utils.h: 28, from spamc / utils.c: 40: /usr/include/openssl/kssl.h: 72: 18: Krb5.h: no such file or directoryin file incrhem / usr / Include / OpenSSL / SSL.H: 179, from spamc / utils.h: 28, from spamc / utils.c: 40: /usr/include/openssl/kssl.h: 134: SYNTAX ERROR BEFORE "KRB5_ENCTYPE" / USR / Include / OpenSSL / KSSL.H: 136: SYNTAX Error Before '*' token / usr / include / OpenSSL / KSSL.H: 137: Syntax Error Before '}' token / usr / include / openssl / kssl.h: 149: SYNTAX ERROR Before "KSSL_CTX_STSTRING" /usr/include/openssl/kssl.h:149: syntax error before '*' token / usr / include / openssl / kssl.h: 150: syntax error before '*' token [... ]

Generate problems:

In this Case, The Kerberos include Files Are IN / USR / Kerberos / include, So you need to modify the make line appropriately:

Solution:

The solution is to either add the Kerberos headers to gcc's header search path, or prevent OpenSSL from trying to use the Kerberos includes in the first place. To tell OpenSSL you really do not want kerberos, just run

export LOCALDEFS = "- DOPENSSL_NO_KRB5" (as suggested by Ken Murchison on info-cyrus) before you run ./configure Alternately, you can tell gcc where to find the Kerberos includes so that it'll stop complaining: export C_INCLUDE_PATH = "/. usr / kerberos / include "If neither of these work, make sure you have the Kerberos development libraries installed (you should have if you have openssl-devel, but one never does know ...). If you run rpm -q openssl- DEVEL KRB5-DEVEL You Should Get A Result Like:

OpenSSL-DEVEL-0.9.7A-23krb5-Devel-1.3.1-6

转载请注明原文地址:https://www.9cbs.com/read-8546.html

New Post(0)