baiwfg2 opened a new issue, #1779:
URL: https://github.com/apache/incubator-brpc/issues/1779

   **Describe the bug (描述bug)**
   
   ```
   [ 94%] Linking CXX executable ../output/bin/protoc-gen-mcpack                
                                                                                
                        
   [ 94%] Linking CXX executable ../../output/bin/parallel_http                 
                                                                                
                        
   /usr/bin/ld: ../output/lib/libbrpc.so: undefined reference to `_dl_sym'      
                                                                                
                        
   collect2: error: ld returned 1 exit status
   make[2]: *** [src/CMakeFiles/protoc-gen-mcpack.dir/build.make:106: 
output/bin/protoc-gen-mcpack] Error 1
   make[1]: *** [CMakeFiles/Makefile2:347: 
src/CMakeFiles/protoc-gen-mcpack.dir/all] Error 2
   make[1]: *** Waiting for unfinished jobs....
   /usr/bin/ld: ../../output/lib/libbrpc.a(mutex.cpp.o): in function 
`bthread::init_sys_mutex_lock()':
   /data/incubator-brpc/src/bthread/mutex.cpp:411: undefined reference to 
`_dl_sym'
   /usr/bin/ld: /data/incubator-brpc/src/bthread/mutex.cpp:412: undefined 
reference to `_dl_sym'
   collect2: error: ld returned 1 exit status
   make[2]: *** 
[tools/parallel_http/CMakeFiles/parallel_http.dir/build.make:108: 
output/bin/parallel_http] Error 1
   make[1]: *** [CMakeFiles/Makefile2:373: 
tools/parallel_http/CMakeFiles/parallel_http.dir/all] Error 2
   ```
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS: fedora 36
   Compiler: gcc 12
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   
   `_dl_sym` 不是在 libc.so 中吗,为啥没自动link呢


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to