bug-gawk
[Top][All Lists]
Advanced

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

Re: Extension packaging


From: Andrew J. Schorr
Subject: Re: Extension packaging
Date: Tue, 10 May 2022 10:49:37 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

On Tue, May 10, 2022 at 04:37:07PM +0300, Eli Zaretskii wrote:
> > Date: Tue, 10 May 2022 08:45:24 -0400
> > From: "Andrew J. Schorr" <aschorr@telemetry-investments.com>
> > Cc: pjfarley3@earthlink.net, bug-gawk@gnu.org
> > 
> > With gawkextlib, you say:
> > 
> >    wget 
> > https://sourceforge.net/projects/gawkextlib/files/gawk-mpfr-1.1.0.tar.gz
> >    tar xf gawk-mpfr-1.1.0.tar.gz
> >    cd gawk-mpfr-1.1.0
> >    ./configure && make && make check && make install
> 
> With MinGW, I get:
> 
>   checking for libintl.h... yes
>   checking for inline... inline
>   checking gawkextlib.h usability... no
>   checking gawkextlib.h presence... no
>   checking for gawkextlib.h... no
>   configure: error: Cannot find gawkextlib.h.  Please use --with-gawkextlib 
> to supply a location for your gawkextlib build.

Yes -- some of the packages have a dependency on the gawkextlib
library support package. The script would generally just install that
first if it hadn't already been installed. Actually, it could
read Makefile.am to see whether gawkextlib is in *_LIBADD.

> And after I overcome that obstacle, I get this from "make":
> 
>   /bin/sh ./libtool  --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H  -I.  
> -DLOCALEDIR='"d:/usr/share/locale"' -Id:/usr/include   -g -O2 -Wall -Wextra 
> -Wpointer-arith -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wshadow -MT 
> mpfr.lo -MD -MP -MF .deps/mpfr.Tpo -c -o mpfr.lo mpfr.c
>   libtool: compile:  gcc -DHAVE_CONFIG_H -I. 
> -DLOCALEDIR=\"d:/usr/share/locale\" -Id:/usr/include -g -O2 -Wall -Wextra 
> -Wpointer-arith -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wshadow -MT 
> mpfr.lo -MD -MP -MF .deps/mpfr.Tpo -c mpfr.c  -DDLL_EXPORT -DPIC -o 
> .libs/mpfr.o
>   mv -f .deps/mpfr.Tpo .deps/mpfr.Plo
>   /bin/sh ./libtool  --tag=CC    --mode=link gcc  -g -O2 -Wall -Wextra 
> -Wpointer-arith -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wshadow  
> -module -avoid-version -no-undefined  -o mpfr.la -rpath d:/usr/lib/gawk 
> mpfr.lo -lmpfr -lgmp -lgawkextlib -Ld:/usr/lib -lintl -Ld:/usr/lib -liconv 
> -Rd:/usr/lib
>   libtool: warning: '/d/usr/lib/libgmp.la' seems to be moved
> 
>   *** Warning: linker path does not have real file for library -lgawkextlib.
>   *** I have the capability to make that library automatically link in when
>   *** you link to this library.  But I can only do this if you have a
>   *** shared version of the library, which you do not appear to have
>   *** because I did check the linker path looking for a file starting
>   *** with libgawkextlib but no candidates were found. (...for file magic 
> test)
> 
>   *** Warning: libtool could not satisfy all declared inter-library
>   *** dependencies of module mpfr.  Therefore, libtool will create
>   *** a static module, that should work as long as the dlopening
>   *** application is linked with the -dlopen flag.
>   libtool: link: ar cru .libs/mpfr.a .libs/mpfr.o
>   libtool: link: ranlib .libs/mpfr.a
>   libtool: link: ( cd ".libs" && rm -f "mpfr.la" && cp -pR "../mpfr.la" 
> "mpfr.la" )
>   make[2]: Leaving directory `/d/gnu/gawkextlib/gawk-mpfr-1.1.0'
>   make[1]: Leaving directory `/d/gnu/gawkextlib/gawk-mpfr-1.1.0'
> 
> That sounds like trouble, right?

It does look concerning. I have not done any testing on MinGW, so I have no
idea how or if it works on that platform. How did you overcome the gawkextlib
obstacle? Maybe I should try setting up a MinGW build environment, but I
have zero experience with MinGW.

Regards,
Andy



reply via email to

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