Bug 1578 - [Anolis 8.6] resin找不到ssl23.h导致编译失败
Summary: [Anolis 8.6] resin找不到ssl23.h导致编译失败
Status: CONFIRMED
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-01 11:48 UTC by kangjiangbo
Modified: 2022-07-01 11:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kangjiangbo 2022-07-01 11:48:40 UTC
Description of problem:
anolis 8.6版本上resin缺少openssl支持导致编译失败

x86上失败,arm上未尝试,应该也是一样

Version-Release number of selected component (if applicable):
# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.6"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.6"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.6"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"


How reproducible:
wget http://www.caucho.com/download/resin-3.0.28.tar.gz
(same with 4.0.28 wget http://www.caucho.com/download/resin-4.0.48.tar.gz)

tar zxvf resin-3.0.28.tar.gz
cd resin-3.0.28

# 配置java home 和 openssl-lib
./configure --prefix=/usr/local/resin --with-java-home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-2.an8_6.x86_64 --with-openssl-lib=/usr/lib64


Actual results:
......
configure: error: Can't find valid OpenSSL include in


Expected results:
configure成功

Additional info:

###重要,先做个软连接解决一个报错
ln -s /usr/lib/libssl.so /usr/lib64/

# grep -nri "Can't find valid OpenSSL include in"
config.log:325:configure:13062: error: Can't find valid OpenSSL include in /usr/include
configure.ac:1419:  AC_MSG_ERROR([Can't find valid OpenSSL include in ${OPENSSL_INCLUDE}])
configure:13062:  { { $as_echo "$as_me:$LINENO: error: Can't find valid OpenSSL include in ${OPENSSL_INCLUDE}" >&5
configure:13063:$as_echo "$as_me: error: Can't find valid OpenSSL include in ${OPENSSL_INCLUDE}" >&2;}


查看configure文件发现,是找不到ssl23.h导致的失败
可能是openssl版本太低没有提供这个文件


替换此文件未ssl3.h
sed -i "s/ssl23.h/ssl3.h/g" ./configure
然后重新configure   ;make;  make install;    ./bin/resinctl start  可以成功
# ./configure --prefix=/usr/local/resin --with-java-home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-2.an8_6.x86_64 --with-openssl-lib=/usr/lib64

# rpm -qa|grep openssl
openssl-pkcs11-0.4.10-2.el8.x86_64
openssl-libs-1.1.1k-6.an8.x86_64
openssl-devel-1.1.1k-6.an8.x86_64
openssl-1.1.1k-6.an8.x86_64
[root@localhost resin-3.0.28]# rpm -qa|grep java
java-1.8.0-openjdk-1.8.0.332.b09-2.an8_6.x86_64
tzdata-java-2022a-1.an8.noarch
java-1.8.0-openjdk-headless-1.8.0.332.b09-2.an8_6.x86_64
java-1.8.0-openjdk-devel-1.8.0.332.b09-2.an8_6.x86_64
javapackages-tools-5.3.0-1.module+el8.2.0+10024+840302cd.noarch
javapackages-filesystem-5.3.0-1.module+el8.2.0+10024+840302cd.noarch
[root@localhost resin-3.0.28]# gcc --version
gcc (GCC) 8.5.0 20210514 (Anolis 8.5.0-10.0.1)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.