Print

Print


OS: ArchLinux x86_64
GCC: 8.2.1

When building with following config:
```bash
mkdir -p "build"
cd "build"
LDFLAGS+="-Wl,--no-undefined" \
cmake -DCMAKE_BUILD_TYPE:STRING=Release \
      -DCMAKE_INSTALL_LIBDIR:PATH=lib \
      -DCMAKE_INSTALL_PREFIX:PATH=/usr \
      -DBUILD_TESTS=1 \
      -DCPPUNIT_FOUND=1 \
      -DCPPUNIT_INCLUDE_DIRS=/usr/include \
      -DCPPUNIT_LIBRARIES=/usr/lib/libcppunit.so \
      -DXRD_PYTHON_REQ_VERSION=3.7 \
      ../
```

build fails with:
```
Scanning dependencies of target XrdPosix
[ 80%] Building CXX object src/CMakeFiles/XrdPosix.dir/XrdPosix/XrdPosixAdmin.cc.o
gcc -pthread -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -I/home/gizdov/builds/xrootd/src/xrootd-4.8.5/src -I/home/gizdov/builds/xrootd/src/build/src -I/usr/include/python2.7 -c /home/gizdov/builds/xrootd/src/xrootd-4.8.5/bindings/python/src/PyXRootDCopyProcess.cc -o build/temp.linux-x86_64-2.7/home/gizdov/builds/xrootd/src/xrootd-4.8.5/bindings/python/src/PyXRootDCopyProcess.o -g
[ 80%] Linking CXX executable xrdpfc_print
[ 80%] Built target xrdpfc_print
[ 80%] Linking CXX shared module libXrdThrottle-4.so
Scanning dependencies of target XrdSsiLib
[ 80%] Linking CXX shared module libXrdClProxyPlugin-4.so
[ 80%] Building CXX object src/CMakeFiles/XrdSsiLib.dir/XrdSsi/XrdSsiAlert.cc.o
[ 80%] Built target XrdClProxyPlugin-4
[ 80%] Linking CXX shared library libXrdClTestsHelper.so
[ 80%] Built target XrdThrottle-4
[ 80%] Building CXX object src/CMakeFiles/XrdSsiLib.dir/XrdSsi/XrdSsiClient.cc.o
[ 80%] Building CXX object src/CMakeFiles/XrdPosix.dir/XrdPosix/XrdPosixCallBack.cc.o
/usr/bin/ld: CMakeFiles/XrdClTestsHelper.dir/Server.cc.o: in function `XrdClTests::Server::HandleConnections()':
Server.cc:(.text+0xa45): undefined reference to `XrdNetUtils::IPFormat(int, char*, int, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [tests/common/CMakeFiles/XrdClTestsHelper.dir/build.make:117: tests/common/libXrdClTestsHelper.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:3028: tests/common/CMakeFiles/XrdClTestsHelper.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
```

-- 
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/issues/857

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