Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing headers after installation of xrootd-private-devel package on Fedora 34 #1519

Closed
vepadulano opened this issue Sep 28, 2021 · 0 comments

Comments

@vepadulano
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant