For Programmers: Free Programming Magazines  


Home > Archive > AWK > February 2007 > XML enhanced awk on windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author XML enhanced awk on windows
Janis

2007-01-30, 6:57 pm

I wanted to check out the XML enhanced gawk on the Windows platform.

Found a note about prebuild binaries for Cygwin, but Manuel Collados
page, while mentioning Cygwin, just seems to have downloadable
objects for MinGW (others "not yet available" since 2004?).

A ./configure on the sources left me with an error ("checking for C
compiler default output file name... configure: error: C compiler
cannot
create executables"), without having gone into deeper anylysis of
the configure/makefile files.

Anyone on Windows who found a comfortable way using xml-gawk?

Thanks.

Janis

Vassilis

2007-01-30, 6:57 pm


=CF/=C7 Janis =DD=E3=F1=E1=F8=E5:
> I wanted to check out the XML enhanced gawk on the Windows platform.
>
> Found a note about prebuild binaries for Cygwin, but Manuel Collados
> page, while mentioning Cygwin, just seems to have downloadable
> objects for MinGW (others "not yet available" since 2004?).
>
> A ./configure on the sources left me with an error ("checking for C
> compiler default output file name... configure: error: C compiler
> cannot
> create executables"), without having gone into deeper anylysis of
> the configure/makefile files.
>
> Anyone on Windows who found a comfortable way using xml-gawk?
>
> Thanks.
>
> Janis


Hi Janis,
To tell the truth, I tried compiling xmlgawk (for mingw) found here
(http://home.vrweb.de/~juergen.kahrs/gawk/XML), following notes found=20
in
Manuel Collados' site.
There's a Makefile.pc for various compilers, though I found out that
make kept breaking, and I had to adjust some things in source -=20
mainly,
I remember a typedef or two missing from random.c and maybe some other
in xml_puller.c.
It finally managed to compile and produce gawk and pgawk but when
I tried running, a windows popup showed, telling that gawk has=20
encountered
a problem and needs to shut (I guess it's either abort or sigseg).
YMMV

Andrew Schorr

2007-01-30, 6:57 pm

Hi Janis,

On Jan 30, 9:06 am, "Janis" <janis_papanag...@hotmail.com> wrote:
> I wanted to check out the XML enhanced gawk on the Windows platform.


I'm one of the xgawk maintainers. Unfortunately, I do not use any of
the windows
platforms myself, so I have no direct personal experience (I build
only on linux
and Solaris). But I can make a few comments:

1. Currently, xgawk CVS will not build on Cygwin. We have integrated
a lot of
patches in the Savannah gawk-stable tree, and it turns out that they
break compilation
on Cygwin (due to the use of the new getaddrinfo API). We are working
on fixing
this, but the CVS source tree will not build at the moment.

2. On the other hand, if you download the most recent distro, it
should build on Cygwin.
There are some comments about this in the release notes here (as well
as a link
to the download tarball):

http://sourceforge.net/forum/forum.php?forum_id=560539

In a nutshell, if you download the .tar.gz file, I think you should be
able to build
on Cygwin with this configure command:

../configure --enable-static-extensions --disable-mpfr

Then (as usual), run 'make all' and 'make check'. If you still have
trouble, you may
want to post to the xmlgawk mailing list: xmlgawk-
users@lists.sourceforge.net

Regards,
Andy



wzrlpy

2007-01-31, 9:57 pm

Hi,

I'm currently working on a GD graphics extension to xgawk, and I use
Cygwin for my builds.

One of my Cygwin machines compiled well xgawk-3.1.5-beta.20060401
(available at the previous sourceforge link)
with this:
../configure --enable-static --disable-shared --enable-static-
extensions

The xgawk extension mpfr seems a bit difficult to build, that machine
had the gmp-4.1.4-2.tar.bz2 package,
instead of the new one gmp-4.2.1-1.tar.bz2. This latest package lacks
the definition of gmp_free_func, and in my other
Cygwin box (more up to date) I need to add the --disable-mpfr as
otherwise building doesn't succeed.

The xgawk extension libpgsql compiles fine, you just need the libpq-
devel Cygwin package.

Regards,
V=EDctor Paesa

wzrlpy

2007-02-01, 7:57 am

Hi,

I have made available a Cygwin binary for xgawk-3.1.5-beta.20060401
at http://usuarios.arsystel.com/wzrlpy/xgawk/xgawk.zip,
together with some compilation steps.

Enjoy it,
V=EDctor Paesa

P=2ES. Please use an antivirus on it, as on any EXE coming from an
unknown person.

Janis

2007-02-01, 9:56 pm

On 1 Feb., 13:26, "wzrlpy" <victorpa...@googlemail.com> wrote:
> Hi,
>
> I have made available a Cygwin binary for xgawk-3.1.5-beta.20060401
> athttp://usuarios.arsystel.com/wzrlpy/xgawk/xgawk.zip,
> together with some compilation steps.
>
> Enjoy it,
> V=EDctor Paesa
>
> P.S. Please use an antivirus on it, as on any EXE coming from an
> unknown person.


I still had problems with non-existing dll's, so I reinstalled Cygwin
from scratch. Using your xgawk.exe file was then possible without
any error messages. Thank you.

Thanks also to the others in this thread for their assistance.

Janis

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com