Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 92F3B200C51 for ; Sun, 9 Apr 2017 11:16:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8744F160BA4; Sun, 9 Apr 2017 09:16:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A5231160B7D for ; Sun, 9 Apr 2017 11:16:52 +0200 (CEST) Received: (qmail 73441 invoked by uid 500); 9 Apr 2017 09:16:45 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 73430 invoked by uid 99); 9 Apr 2017 09:16:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Apr 2017 09:16:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3FDD1180688 for ; Sun, 9 Apr 2017 09:16:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id m1khkghndb8g for ; Sun, 9 Apr 2017 09:16:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 08C0F5F1E9 for ; Sun, 9 Apr 2017 09:16:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 279DEE06BD for ; Sun, 9 Apr 2017 09:16:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8DF5524066 for ; Sun, 9 Apr 2017 09:16:41 +0000 (UTC) Date: Sun, 9 Apr 2017 09:16:41 +0000 (UTC) From: "Mario Emmenlauer (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (THRIFT-4159) Building tests fails on MSYS2 (MinGW64) due to a (small?) linker error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 09 Apr 2017 09:16:53 -0000 [ https://issues.apache.org/jira/browse/THRIFT-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962078#comment-15962078 ] Mario Emmenlauer commented on THRIFT-4159: ------------------------------------------ Thanks! I have made an "official" MSYS2 package for thrift now. Once the PR is merged, thrift binary can be installed via pacman. PR here: https://github.com/Alexpux/MINGW-packages/pull/2379 > Building tests fails on MSYS2 (MinGW64) due to a (small?) linker error > ---------------------------------------------------------------------- > > Key: THRIFT-4159 > URL: https://issues.apache.org/jira/browse/THRIFT-4159 > Project: Thrift > Issue Type: Bug > Components: Build Process > Affects Versions: 1.0 > Environment: MSYS2 MinGW64 compiler gcc-6.3 > Reporter: Mario Emmenlauer > Assignee: James E. King, III > Fix For: 0.11.0 > > > When I build thrift in static mode with cmake, and I enable BUILD_TESTING, > I get a linker error: > {code} > Scanning dependencies of target SecurityTest > [ 65%] Building CXX object lib/cpp/test/CMakeFiles/SecurityTest.dir/SecurityTest.cpp.obj > [ 66%] Linking CXX executable ../../../bin/SecurityTest.exe > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0xcb3): undefined reference to `apache::thrift::transport::TWinsockSingleton::create()' > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0xcc8): undefined reference to `thrift_socketpair(int, int, int, unsigned long long*)' > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0xcf8): undefined reference to `thrift_socketpair(int, int, int, unsigned long long*)' > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0xfa3): undefined reference to `thrift_fcntl' > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0xfc0): undefined reference to `thrift_fcntl' > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0x1127): undefined reference to `thrift_sleep(unsigned int)' > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0x200c): undefined reference to `thrift_poll' > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0x212e): undefined reference to `thrift_fcntl' > ../../libthrift.a(TServerSocket.cpp.obj):TServerSocket.cpp:(.text+0x214a): undefined reference to `thrift_fcntl' > ../../libthrift.a(TSSLSocket.cpp.obj):TSSLSocket.cpp:(.text+0x211e): undefined reference to `thrift_poll' > ../../libthrift.a(TSSLSocket.cpp.obj):TSSLSocket.cpp:(.text+0x21cd): undefined reference to `thrift_poll' > ../../libthrift.a(TSSLSocket.cpp.obj):TSSLSocket.cpp:(.text+0x4a1a): undefined reference to `thrift_fcntl' > ../../libthrift.a(TSSLSocket.cpp.obj):TSSLSocket.cpp:(.text+0x4a36): undefined reference to `thrift_fcntl' > ../../libthrift.a(TSSLSocket.cpp.obj):TSSLSocket.cpp:(.text+0x58da): undefined reference to `thrift_fcntl' > ../../libthrift.a(TSSLSocket.cpp.obj):TSSLSocket.cpp:(.text+0x58f6): undefined reference to `thrift_fcntl' > ../../libthrift.a(TOutput.cpp.obj):TOutput.cpp:(.text+0x54): undefined reference to `thrift_ctime_r(long long const*, char*)' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x1e76): undefined reference to `thrift_poll' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x25a0): undefined reference to `thrift_fcntl' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x25c5): undefined reference to `thrift_fcntl' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x26ee): undefined reference to `thrift_poll' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x2749): undefined reference to `thrift_fcntl' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x2a0a): undefined reference to `thrift_fcntl' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x35f1): undefined reference to `apache::thrift::transport::TWinsockSingleton::create()' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x3a44): undefined reference to `thrift_gettimeofday(timeval*, timezone*)' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x3aaf): undefined reference to `thrift_poll' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x3cfc): undefined reference to `thrift_gettimeofday(timeval*, timezone*)' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x3d3f): undefined reference to `thrift_usleep(unsigned int)' > ../../libthrift.a(TSocket.cpp.obj):TSocket.cpp:(.text+0x6443): undefined reference to `apache::thrift::transport::TWinsockSingleton::create()' > collect2.exe: error: ld returned 1 exit status > make[2]: *** [lib/cpp/test/CMakeFiles/SecurityTest.dir/build.make:116: bin/SecurityTest.exe] Error 1 > make[1]: *** [CMakeFiles/Makefile2:1269: lib/cpp/test/CMakeFiles/SecurityTest.dir/all] Error 2 > make: *** [Makefile:161: all] Error 2 > ==> ERROR: A failure occurred in build(). > Aborting... > {code} > Typically this comes from the fact that MSYS2 is more picky about undefined > symbols than other platforms are. The symbols look a bit like they would > be defined in a basic thrift library. Could you please check if the tests > must link the thrift libraries and/or if a library may be missing there? -- This message was sent by Atlassian JIRA (v6.3.15#6346)