Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F64F105EB for ; Wed, 6 Nov 2013 01:49:53 +0000 (UTC) Received: (qmail 58184 invoked by uid 500); 6 Nov 2013 01:49:53 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 58117 invoked by uid 500); 6 Nov 2013 01:49:53 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 58108 invoked by uid 99); 6 Nov 2013 01:49:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 01:49:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.91.165] (HELO nm5-vm4.bullet.mail.ne1.yahoo.com) (98.138.91.165) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 01:49:43 +0000 Received: from [98.138.226.177] by nm5.bullet.mail.ne1.yahoo.com with NNFMP; 06 Nov 2013 01:49:22 -0000 Received: from [98.138.226.161] by tm12.bullet.mail.ne1.yahoo.com with NNFMP; 06 Nov 2013 01:49:22 -0000 Received: from [127.0.0.1] by omp1062.mail.ne1.yahoo.com with NNFMP; 06 Nov 2013 01:49:22 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 261294.45845.bm@omp1062.mail.ne1.yahoo.com Received: (qmail 19094 invoked by uid 60001); 6 Nov 2013 01:49:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1383702562; bh=7+Ogs0OYwfOgA58bRXD6AR4KQIyIJxFVcmIkjmQH4II=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=xTfFBo9KbEbeCMdsPH9lMzjE//P5etclteQFNe7xlX/xpW0uREJA1aHYXb6UUTZQqy4Il8Xt2BHMYaWbKnbVj5BMlUvTI9FdrrWoAAb/QIqSWKMh5A3JNYRyjnVocuiyFRue+6JZr+JdAA9cggj+mR6JeN012iXb38SP6auuoiA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=McUNCJCE8cXA2s1z9H6lt9uGEfWkmeTAdTbchktb2bKQx3thabJcJuB1fJjbG+keIcczj+Ndt7ZxBakASJ612j3WtdBgLICHAxJGqPWKunuALh6RaYj5bU6gkMQcJxES7hjlp2ZDOsuzplcsTkr8SkSoy44/fr0g8MKLuuHdhFE=; X-YMail-OSG: zd9aENoVM1laGkSOLkQXxhfAaEexarqLdnTWJOhmyakQM1z BUziMj75_4cOVV3.ZRRpyb8OSuM5f3QxjOfeInxD35hZGMwY9AMC74D2xwm9 8YlzmNXyUwgau.LutY_1CedK2LXBC_s6YqmOnU71awKvpFwXvn3CveQ0h7TG vWuHBMjRNh1ZiujKNydQhpZHHK7gNcoWtlgr5ZaF0B8XNyBwF9I9PhPkjmhS xXggvlvJSlqquTGUN8G3kvP0OHoJ8XhEvee0h0LN8yZgb5BkV3WLYsEfQhDH dqNUUqMARFCdpUfwunR2Ge60pesM6dmXjf_wryS.Pb6rJRxN3nIsxZnjkGzl z6ddQQqDwsB538VDm4higQyRhkqgYm7vQ56b468WTeBH9joE5fYXTHGfmxJ5 Qr5hX410ORXFHBrAOf2d5iSzGFHKtPd..VUNMN5zZVOnJy_Vr1kEZPNkRdO1 w62ROkZ62ijYRB7mR0Xqfw1OG25BL7W.R1KrE8p9ApIR7O2af6M3KBB0biDB oWEqKIvuLqu5DVLWMTCI6Df65F6TomMCH7OFMnRAjUwsgRQNUZMh5t2mUip3 UB8dERTGBkODYhYSVRT.xxocO96cga32h4q4rWzU- Received: from [50.193.8.169] by web122303.mail.ne1.yahoo.com via HTTP; Tue, 05 Nov 2013 17:49:22 PST X-Rocket-MIMEInfo: 002.001,SGksCgpXaGlsZSBidWlsZGluZyB0aGUgQVBSIGxpYnJhcnkgd2l0aCBWUzIwMTMgZm9yIFdpbjMyKHg4NikgcGxhdGZvcm0sIHRoZSBmb2xsb3dpbmcgbGluayBlcnJvcnMgYXJlIGVuY291bnRlcmVkLgoKYXByX2F0b21pYy5vYmogOiBlcnJvciBMTksyMDE5OiB1bnJlc29sdmVkIGV4dGVybmFsIHN5bWJvbCBfX0ludGVybG9ja2VkSW5jcmVtZW50IHJlZmVyZW5jZWQgaW4gZnVuY3Rpb24gX2Fwcl9hdG9taWNfaW5jMzJANAphcHJfYXRvbWljLm9iaiA6IGVycm9yIExOSzIwMTk6IHVucmVzb2x2ZWQgZXh0ZXIBMAEBAQE- X-Mailer: YahooMailWebService/0.8.161.596 References: Message-ID: <1383702562.18420.YahooMailNeo@web122303.mail.ne1.yahoo.com> Date: Tue, 5 Nov 2013 17:49:22 -0800 (PST) From: Arsen Chaloyan Reply-To: Arsen Chaloyan Subject: Link errors in apr_atomic with VS2013 To: APR Developer List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1062763926-165321722-1383702562=:18420" X-Virus-Checked: Checked by ClamAV on apache.org ---1062763926-165321722-1383702562=:18420 Content-Type: text/plain; charset=us-ascii Hi, While building the APR library with VS2013 for Win32(x86) platform, the following link errors are encountered. apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedIncrement referenced in function _apr_atomic_inc32@4 apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedExchangeAdd referenced in function _apr_atomic_add32@8 apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedExchange referenced in function _apr_atomic_set32@8 apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedDecrement referenced in function _apr_atomic_dec32@4 apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedCompareExchange referenced in function _apr_atomic_cas32@12 These errors are caused by the use of the new Platform Toolset v120 which gets installed with VS2013. More specifically, the problem is in the function cast wrappers defined in apr_atomic.c and used only for Win32 (x86) platform. Taking out the function casts helps resolve the link errors with a penalty of having warning messages instead. The build for x64 platform is not affected. Would you be interested in addressing this issue in the APR mainstream in one or the other way? Regards, Arsen ---1062763926-165321722-1383702562=:18420 Content-Type: text/html; charset=us-ascii
Hi,

While building the APR library with VS2013 for Win32(x86) platform, the following link errors are encountered.

apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedIncrement referenced in function _apr_atomic_inc32@4
apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedExchangeAdd referenced in function _apr_atomic_add32@8
apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedExchange referenced in function _apr_atomic_set32@8
apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedDecrement referenced in function _apr_atomic_dec32@4
apr_atomic.obj : error LNK2019: unresolved external symbol __InterlockedCompareExchange referenced in function _apr_atomic_cas32@12

These errors are caused by the use of the new Platform Toolset v120 which gets installed with VS2013. More specifically, the problem is in the function cast wrappers defined in apr_atomic.c and used only for Win32 (x86) platform. Taking out the function casts helps resolve the link errors with a penalty of having warning messages instead.

The build for x64 platform is not affected.

Would you be interested in addressing this issue in the APR mainstream in one or the other way?

Regards,
Arsen
---1062763926-165321722-1383702562=:18420--