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: Re: Link failure on systems lacking mkstemp Date: Fri, 29 Aug 2014 11:29:29 +0300 Message-ID: <83mwanitqu.fsf@gnu.org> References: <83ha1cek3l.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1409300993 30850 80.91.229.3 (29 Aug 2014 08:29:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2014 08:29:53 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Aug 29 10:29:47 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 1XNHZ4-0007rF-Lj for guile-devel@m.gmane.org; Fri, 29 Aug 2014 10:29:46 +0200 Original-Received: from localhost ([::1]:40648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNHZ4-0003jc-4M for guile-devel@m.gmane.org; Fri, 29 Aug 2014 04:29:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNHYw-0003jW-3K for guile-devel@gnu.org; Fri, 29 Aug 2014 04:29:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNHYq-0003xT-6e for guile-devel@gnu.org; Fri, 29 Aug 2014 04:29:38 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:41598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNHYp-0003x6-US for guile-devel@gnu.org; Fri, 29 Aug 2014 04:29:32 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NB2001006WHSP00@a-mtaout21.012.net.il> for guile-devel@gnu.org; Fri, 29 Aug 2014 11:29:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NB20013M7L5SU30@a-mtaout21.012.net.il> for guile-devel@gnu.org; Fri, 29 Aug 2014 11:29:29 +0300 (IDT) In-reply-to: <83ha1cek3l.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:17373 Archived-At: Ping! > Date: Sat, 16 Aug 2014 14:42:54 +0300 > From: Eli Zaretskii > > 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.