Print

Print


The following example

#include <XrdCl/XrdClFileSystemOperations.hh>

int main() {
}

Gives compilation errors for two missing headers. First one is

$: g++ -o test.o test.cpp -I/usr/include/xrootd -I/usr/include/xrootd/private -lXrdCl
In file included from /usr/include/xrootd/private/XrdCl/XrdClFileSystemOperations.hh:30,
                 from test.cpp:1:
/usr/include/xrootd/private/XrdCl/XrdClOperations.hh:37:10: fatal error: XrdCl/XrdClOperationTimeout.hh: No such file or directory
   37 | #include "XrdCl/XrdClOperationTimeout.hh"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Once I manually copy the first header into /usr/include/private/XrdCl I get another error

$: g++ -o test.o test.cpp -I/usr/include/xrootd -I/usr/include/xrootd/private
In file included from /usr/include/xrootd/private/XrdCl/XrdClFileSystemOperations.hh:30,
                 from test.cpp:1:
/usr/include/xrootd/private/XrdCl/XrdClOperations.hh:38:10: fatal error: XrdCl/XrdClFinalOperation.hh: No such file or directory
   38 | #include "XrdCl/XrdClFinalOperation.hh"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

And copying also the second header to the same directory fixes the compilation errors.

Setup

Fedora 34, GCC 11, xrootd v5.3.1
Installed packages

$: dnf list xrootd-*
Last metadata expiration check: 0:49:14 ago on Tue 28 Sep 2021 02:58:46 PM CEST.
Installed Packages
xrootd-client.x86_64                                                              1:5.3.1-1.fc34                                                       @updates
xrootd-client-devel.x86_64                                                        1:5.3.1-1.fc34                                                       @updates
xrootd-client-libs.x86_64                                                         1:5.3.1-1.fc34                                                       @updates
xrootd-devel.x86_64                                                               1:5.3.1-1.fc34                                                       @updates
xrootd-libs.x86_64                                                                1:5.3.1-1.fc34                                                       @updates
xrootd-private-devel.x86_64                                                       1:5.3.1-1.fc34                                                       @updates
xrootd-selinux.noarch                                                             1:5.3.1-1.fc34                                                       @updates
xrootd-server.x86_64                                                              1:5.3.1-1.fc34                                                       @updates
xrootd-server-devel.x86_64                                                        1:5.3.1-1.fc34                                                       @updates
xrootd-server-libs.x86_64                                                         1:5.3.1-1.fc34                                                       @updates


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1519", "url": "https://github.com/xrootd/xrootd/issues/1519", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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