ywkaras commented on issue #9601:
URL: https://github.com/apache/trafficserver/issues/9601#issuecomment-1504505804

   ```
   wkaras ~/REPOS/TS
   O$ c++filt
   _Z31forceLinkRegressionHttpTransactv
   forceLinkRegressionHttpTransact()
   wkaras ~/REPOS/TS
   O$
   ```
   I do see this warning about `http_rsb`:
   ```
   /usr/bin/ld: ../../proxy/http/HttpTransact.o: warning: relocation against 
`http_rsb' in read-only section `.text'
   /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
   ```
   Not clear how the two diagnostic messages are related.  But, I think that in 
the test_HttpTransact unit test executable, we would want to omit this code in 
HttpTransact.cc:
   ```
   #if TS_HAS_TESTS
   void forceLinkRegressionHttpTransact();
   void
   forceLinkRegressionHttpTransactCaller()
   {
     forceLinkRegressionHttpTransact();
   }
   #endif
   ```
   We can add `-DHTTP_TRANSACT_UNIT_TEST` to `test_HttpTransact_CPPFLAGS` in 
`proxy/http/Makefile.am` and change the first line of the above code to:
   ```
   #if TS_HAS_TESTS && !defined(HTTP_TRANSACT_UNIT_TEST)
   ```
   But I don' t understand why we'd only see this problem on the Debian check.  
Do we run the unit tests on other checks?


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

Reply via email to