Skip to content

对‘pthread_atfork’未定义的引用 #43

@Swean

Description

@Swean

开启了ssl、HTTP2后执行/usr/local/tars/cpp/script/cmake_tars_server.sh [App] [Server] [Servant],会有下面报错:

[ 25%] Built target tars-HelloServer
[ 50%] Linking CXX executable ../bin/HelloServer
/usr/local/tars/cpp/thirdparty/lib/libcrypto.a(threads_pthread.o):在函数‘fork_once_func’中:
threads_pthread.c:(.text+0x16):对‘pthread_atfork’未定义的引用
collect2: 错误:ld 返回 1
make[2]: *** [bin/HelloServer] 错误 1
make[1]: *** [src/CMakeFiles/HelloServer.dir/all] 错误 2
make: *** [all] 错误 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions