guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: statically linking in srfi modules


From: Richard Shann
Subject: Re: statically linking in srfi modules
Date: Tue, 12 Feb 2013 12:58:36 +0000

On Mon, 2013-02-11 at 12:03 -0500, Mark H Weaver wrote:
> Richard Shann <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]