[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'/inet' problem of gawk in CVS
From: |
Hirofumi Saito |
Subject: |
'/inet' problem of gawk in CVS |
Date: |
Thu, 19 Jun 2008 22:22:56 +0900 |
Hello.
I built gawk of latest CVS tree.
I did just like below:
$ ./configure && make
'make check' has been passed, but gawk cannot access '/inet' in Fedora 8.
I tested with simple script.
$ cat test.awk
#! /usr/bin/gawk -f
BEGIN {
RS = ORS = "\r\n";
HttpService = "/inet/tcp/0/www.yahoo.com/80";
print "GET http://www.yahoo.com" |& HttpService;
while ((HttpService |& getline) > 0) {
print $0;
}
close(HttpService);
}
$ LC_ALL=C ./gawk -f test.awk
sh: /inet/tcp/0/www.yahoo.com/80: No such file or directory
In Fedora 8, when I added the CFLAGS make option, gawk become able to
access '/inet'.
$ ./configure && make 'CFLAGS=-DHAVE_SOCKETS=1'
And Shigeharu Takano checked in Solaris 9 (Sparc).
In Solaris 9, he had to add CFLAGS and SOCKET_LIBS options.
$ ./configure && make 'SOCKET_LIBS=-lsocket' 'CFLAGS=-DHAVE_SOCKETS=1'
Regards,
Hirofumi.
- '/inet' problem of gawk in CVS,
Hirofumi Saito <=