From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.devel Subject: Link failure on systems lacking mkstemp Date: Sat, 16 Aug 2014 14:42:54 +0300 Message-ID: <83ha1cek3l.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1408189413 17495 80.91.229.3 (16 Aug 2014 11:43:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2014 11:43:33 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Aug 16 13:43:27 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XIcOL-00007a-SM for guile-devel@m.gmane.org; Sat, 16 Aug 2014 13:43:26 +0200 Original-Received: from localhost ([::1]:35103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIcOL-0003FB-5A for guile-devel@m.gmane.org; Sat, 16 Aug 2014 07:43:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIcOC-0003Ev-4j for guile-devel@gnu.org; Sat, 16 Aug 2014 07:43:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIcO5-0007ua-A3 for guile-devel@gnu.org; Sat, 16 Aug 2014 07:43:16 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:50298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIcO5-0007uO-2X for guile-devel@gnu.org; Sat, 16 Aug 2014 07:43:09 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NAE00B00DONSR00@mtaout26.012.net.il> for guile-devel@gnu.org; Sat, 16 Aug 2014 14:41:39 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NAE0096ZDTFRE20@mtaout26.012.net.il> for guile-devel@gnu.org; Sat, 16 Aug 2014 14:41:39 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17343 Archived-At: Guile 2.0.11 has mkstemp.c in lib/, from Gnulib, and it also has its own private version in libguile/. This causes link failures on systems, such as MinGW, that lack mkstemp in their system libraries: CCLD libguile-2.0.la ../lib/.libs/libgnu.a(mkstemp.o): In function `mkstemp': d:\gnu\guile-2.0.11\lib/mkstemp.c:48: multiple definition of `mkstemp' .libs/libguile_2.0_la-mkstemp.o:d:\gnu\guile-2.0.11\libguile/mkstemp.c:68: first defined here collect2.exe: error: ld returned 1 exit status Makefile:2242: recipe for target `libguile-2.0.la' failed make[3]: *** [libguile-2.0.la] Error 1 make[3]: Leaving directory `/d/gnu/guile-2.0.11/libguile' Makefile:2162: recipe for target `all' failed I think the solution is simply remove mkstemp.c from libguile/, and all its traces from the configury that causes its dependency to be added to libguile/Makefile. Not sure how to do the latter, though.