OS: ArchLinux x86_64
GCC: 8.2.1

When building with following config:

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, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Build failure when including tests and -Wl,--no-undefined (#857)"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/857"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/857", "url": "https://github.com/xrootd/xrootd/issues/857", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Build failure when including tests and -Wl,--no-undefined (#857)", "sections": [ { "text": "", "activityTitle": "**Konstantin Gizdov**", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@kgizdov", "facts": [ { "name": "Repository: ", "value": "xrootd/xrootd" }, { "name": "Issue #: ", "value": 857 } ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 857,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 857\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/xrootd/xrootd/issues/857" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 413046107\n}" } ], "themeColor": "26292E" } ]

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