Suse130224 opened a new issue #1086: 使用cmake依赖brpc编译成功,运行报undefined symbol: 
pthread_mutex_lock
URL: https://github.com/apache/incubator-brpc/issues/1086
 
 
   使用cmake动态依赖brpc,编译显示正常,但是运行的时候报错:
   
![image](https://user-images.githubusercontent.com/29573385/79290344-718bc600-7efe-11ea-9948-909a47874238.png)
   
   nm查看libbrpc.so是有这个符号的
   
![image](https://user-images.githubusercontent.com/29573385/79290386-8ff1c180-7efe-11ea-9365-75ac04a5ad17.png)
   
   ldd查看,可执行程序也确实链接了brpc和pthread,所以不知道问题出在哪里:
   
![image](https://user-images.githubusercontent.com/29573385/79290466-c2032380-7efe-11ea-87e6-28ff24e5f0c2.png)
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to