From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14620 invoked by alias); 16 Jul 2013 23:03:33 -0000 Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org Received: (qmail 14611 invoked by uid 89); 16 Jul 2013 23:03:33 -0000 X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_NEUTRAL,TW_CP,TW_QY autolearn=no version=3.3.1 Received: from Unknown (HELO gateway14.websitewelcome.com) (69.56.144.3) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 16 Jul 2013 23:03:32 +0000 Received: by gateway14.websitewelcome.com (Postfix, from userid 5007) id 7E36EA199AA55; Tue, 16 Jul 2013 18:03:17 -0500 (CDT) Received: from gator3117.hostgator.com (gator3117.hostgator.com [50.87.144.152]) by gateway14.websitewelcome.com (Postfix) with ESMTP id 18E33A199A814 for ; Tue, 16 Jul 2013 18:03:17 -0500 (CDT) Received: from [98.243.220.110] (port=3688 helo=[192.168.8.10]) by gator3117.hostgator.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1UzEHC-0004Pq-UC for pthreads-win32@sourceware.org; Tue, 16 Jul 2013 18:03:23 -0500 Message-ID: <51E5D13B.2020208@zeranoe.com> Date: Tue, 16 Jul 2013 23:03:00 -0000 From: Kyle Schwarz User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Thunderbird/23.0 MIME-Version: 1.0 To: pthreads-win32@sourceware.org Subject: entry point strncpy_s could not be located Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BWhitelist: no X-Source-Sender: ([192.168.8.10]) [98.243.220.110]:3688 X-Source-Auth: zeranoe@zeranoe.com X-Email-Count: 1 X-Source-Cap: emVyYW5vZTt6ZXJhbm9lO2dhdG9yMzExNy5ob3N0Z2F0b3IuY29t X-SW-Source: 2013/txt/msg00013.txt.bz2 I'm getting the following error while trying to run FFmpeg with Windows XP using the latest version of pthreads-win32: "The procedure entry point strncpy_s could not be located in the dynamic link library msvcrt.dll" Here is a little more information about the bug: > This is because of a change in the pthreads-w32 CVS. I encountered it after I updated to GCC 4.8.1 but didn't realize anything was wrong until I'd gotten x264 and FFmpeg built. Thankfully, none of the aggregate libraries seem to be affected by pthreads doing this, so it seems relatively benign. The binaries as distributed will work fine on Vista and higher since the version of msvcrt.dll has the secure API functions necessary. If WinXP is a target, pthreads needs a little patching. That was posted by the user qyot27 at: There is also a patch that he submitted that seems to fix the issue: > # For Windows XP users only: > sed -i 's/ -DMINGW_HAS_SECURE_API//' GNUmakefile > > sed -i -e '60i#ifdef MINGW_HAS_SECURE_API' \ > -e '61i#else\n strncpy(name, tp->name, len - 1);\n#endif' pthread_getname_np.c > > sed -i -e '46i#ifdef MINGW_HAS_SECURE_API' \ > -e '47i#else\n strncpy(name, tp->name, len - 1);\n#endif' pthread_attr_getname_np.c I would really apprciate any help on this, currently my FFmpeg builds are useless to Windows XP users because I utilize pthread-w32. Best regards, Kyle