---
title: 编译时提示TLS_ST_SR_CLNT_HELLO未定义问题的解决方法
description: "TLS_ST_SR_CLNT_HELLO未定义导致编译报错。提示信息如下。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/tpdl/kunpengtcnativeboring_02_0011.html
sourcePath: /source/zh/kunpengbds/ecosystemEnable/tpdl/kunpengtcnativeboring_02_0011.html
indexId: 92a89f94f610a9d95fc4c502a92ad4b3b008f056997576ea77d9881081feaa0577
---
# 编译时提示TLS_ST_SR_CLNT_HELLO未定义问题的解决方法

#### 问题现象描述

TLS_ST_SR_CLNT_HELLO未定义导致编译报错。提示信息如下。

```
Failed to execute goal org.fusesource hawtjni:maven-hawtjni-plugin:1.11:build (build-native-lib) on project netty-tcnative-boringssl-stat ic: build failed: org-apache.maven.plugin.MojoExecutionException: make based build failed with exit code: 2
```


#### 关键过程、根本原因分析

无


#### 结论、解决方案及效果

1. 打开“sslutils.c”文件。
  1 vi openssl-dynamic/src/main/c/sslutils.c

2. 按“i”进入编辑模式，修改替换TLS_ST_SR_CLNT_HELLO为20。
  1 2 if (state == 20 //if (state == TLS_ST_SR_CLNT_HELLO

3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
