From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Shann Newsgroups: gmane.lisp.guile.user Subject: Re: statically linking in srfi modules Date: Tue, 12 Feb 2013 12:58:36 +0000 Message-ID: <1360673916.2172.3548.camel@debian-box.lan> References: <1360315456.2172.131.camel@debian-box.lan> <1360315553.2172.132.camel@debian-box.lan> <87sj5711wu.fsf@pobox.com> <1360345958.2172.181.camel@debian-box.lan> <874nhm7aed.fsf@tines.lan> <87zjze5udn.fsf@tines.lan> <1360412014.2172.231.camel@debian-box.lan> <87a9rd5xqa.fsf@tines.lan> <874nhl5wqc.fsf@tines.lan> <1360432628.2172.497.camel@debian-box.lan> <87zjzd2ahw.fsf@tines.lan> <1360494675.2172.770.camel@debian-box.lan> <87wqug18t7.fsf@tines.lan> <1360517094.2172.1582.camel@debian-box.lan> <87sj531uc7.fsf@tines.lan> <1360577152.2172.2010.camel@debian-box.lan> <1360588037.2172.2132.camel@debian-box.lan> <874nhi2363.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360674159 23045 80.91.229.3 (12 Feb 2013 13:02:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2013 13:02:39 +0000 (UTC) Cc: guile-user@gnu.org To: Mark H Weaver Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 12 14:03:00 2013 Return-path: Envelope-to: guile-user@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 1U5FVj-0002tV-C0 for guile-user@m.gmane.org; Tue, 12 Feb 2013 14:02:59 +0100 Original-Received: from localhost ([::1]:33915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5FVP-0008Dq-Sg for guile-user@m.gmane.org; Tue, 12 Feb 2013 08:02:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5FVB-0008De-RI for guile-user@gnu.org; Tue, 12 Feb 2013 08:02:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5FV9-0001Ti-0k for guile-user@gnu.org; Tue, 12 Feb 2013 08:02:25 -0500 Original-Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:47871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5FV8-0001Ta-QO for guile-user@gnu.org; Tue, 12 Feb 2013 08:02:22 -0500 Original-Received: by mail-we0-f175.google.com with SMTP id x8so36700wey.34 for ; Tue, 12 Feb 2013 05:02:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-proxyuser-ip:subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding:x-gm-message-state; bh=iDVi8u04XOI9RfWmRvnBmoIOv51oTOkf9gN7rLkW9EM=; b=bNwxndTdVVhCC3fP8Jr1u+/TkLuV1clqpXa52ST8IbTp4RVBOmzOxdSpgnIQGxNwyp Ss5dCVk+QbPrrLkKtM66oUy/nIB2F7QOsiA1uYAQfgc4XeEtUR0QzQT51Y5h078aPLKN bnIRafNqRkf2RIiCgnkhSIRysYjNCkTx7SSVgStj/OnVqaTsPIwDF4RsH2K/ftAibPVx ulMpXLcqmr7otS+g0BsGH7/myQfM8Mgkfl5S6uGkRV3cnZguW/FoMs3qqAx6IOqgdQhS iF+XDBIRo/m6B//ArX3o6JZ9EqzVpqoa/ZhZA3y2I8bXmA3UL5CCmVfLsMG6HJ6jfilC UeFQ== X-Received: by 10.194.216.5 with SMTP id om5mr30914635wjc.27.1360674141960; Tue, 12 Feb 2013 05:02:21 -0800 (PST) Original-Received: from (know-mailgateway-2.server.virginmedia.net. [62.254.26.101]) by mx.google.com with ESMTPS id q13sm37631014wie.0.2013.02.12.05.02.19 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 12 Feb 2013 05:02:20 -0800 (PST) Original-Received: from source ([146.90.136.35]) by smtp.virginmedia.com with SMTP; Tue, 12 Feb 2013 13:02:20 +0000 (GMT) X-ProxyUser-IP: 146.90.136.35 In-Reply-To: <874nhi2363.fsf@tines.lan> X-Mailer: Evolution 2.30.3 X-Gm-Message-State: ALoCoQmeygAbq2FLQBJbG/jux05Yf/Tdfjeoh6pJuBDoO5/DnHK8INu6glJCSBR7TkrtPnpebrfG X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22f X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10086 Archived-At: On Mon, 2013-02-11 at 12:03 -0500, Mark H Weaver wrote: > Richard Shann writes: > > configure:31783: checking for main in -lregex > > configure:31812: i686-pc-mingw32-gcc -o conftest.exe > > -Wno-unused-but-set-variable > > -I/home/rshann/mxe/usr/i686-pc-mingw32/include conftest.c -lregex > > -lgmp -lws2_32 -lm -lltdl -lunistring -lintl -liconv >&5 > > /home/rshann/mxe/usr/lib/gcc/i686-pc-mingw32/4.7.0/../../../../i686-pc-mingw32/bin/ld: cannot find -lregex > > > > probably in all cases. > > Can you find out where the 'regcomp' function is? Well, I tracked back from the GNU/LilyPond build system - it seems to originate in glibc, but in the GNU/LilyPond build system it has been extracted out as a separate library. http://lilypond.org/download/gub-sources/regex-2.3.90-1.tar.bz2 By building this with --disable-shared I have obtained a library which links to guile and ice-9/regex is now working inside Denemo. Thank you very much for your help. I don't know if there is anything that it would be good to do upstream as a result of this epic little voyage ... Richard > If you can find it, > you could pass LDFLAGS=-lfoobar to ./configure. My suspicion is that > it's missing from your MXE build. Another possibility is that 'regcomp' > is a preprocessor macro in one of the include files, which the current > tests would fail to detect. > > > I am a bit out of my depth here ... these seem to be the libraries that > > could plausibly provide regcomp(), ) > > (by running find . -name '*regex*' -print) > > > > ./usr/i686-pc-mingw32/lib/libboost_regex-mt.a > > ./usr/i686-pc-mingw32/lib/libwxregexu-2.8-i686-pc-mingw32.a > > ./usr/i686-pc-mingw32/lib/libwxregex-2.8-i686-pc-mingw32.a > > ./usr/i686-pc-mingw32/lib/libboost_regex-mt-d.a > > These aren't the droids you're looking for. Guile 1.8's ./configure > seems to be looking for either libregex or librx, though I confess that > my autoconf skills are weak. > > Mark