``` /builddir/build/BUILD/xrootd-5.0.0/src/XrdTpc/XrdTpcState.hh:18:7: error: type 'struct State' violates the C++ One Definition Rule [-Werror=odr] 18 | class State { | ^ /builddir/build/BUILD/xrootd-5.0.0/src/XrdTpc/XrdTpcState.hh:18:7: note: a different type is defined in another translation unit 18 | class State { | ^ /builddir/build/BUILD/xrootd-5.0.0/src/XrdTpc/XrdTpcState.hh:126:24: note: the first difference of corresponding definitions is field 'm_headers' 126 | struct curl_slist *m_headers; // any headers we set as part of the libcurl request. | ^ /builddir/build/BUILD/xrootd-5.0.0/src/XrdTpc/XrdTpcState.hh:126:24: note: a field of same name but different type is defined in another translation unit 126 | struct curl_slist *m_headers; // any headers we set as part of the libcurl request. | ^ /builddir/build/BUILD/xrootd-5.0.0/src/XrdTpc/XrdTpcState.hh:126:12: note: type name 'TPC::curl_slist' should match type name 'curl_slist' 126 | struct curl_slist *m_headers; // any headers we set as part of the libcurl request. | ^ /usr/include/curl/curl.h:2474:8: note: the incompatible type is defined here 2474 | struct curl_slist { | ^ lto1: all warnings being treated as errors lto-wrapper: fatal error: /usr/bin/g++ returned 1 exit status compilation terminated. ``` You can view, comment on, or merge this pull request online at: https://github.com/xrootd/xrootd/pull/1261 -- Commit Summary -- * Add forward declaration to fix one definition rule (ODR) violation -- File Changes -- M src/XrdTpc/XrdTpcState.hh (1) -- Patch Links -- https://github.com/xrootd/xrootd/pull/1261.patch https://github.com/xrootd/xrootd/pull/1261.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/xrootd/xrootd/pull/1261 ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the XROOTD-DEV list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1