source: trunk/essentials/sys-apps/gawk/README_d/README.beos

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 3.1 KB
Line 
1README for GNU awk under BeOS
2Last updated MCB, Tue Feb 6 10:15:46 GMT 2001
3
4BeOS port contact: Martin C Brown (mc@whoever.com)
5
6Building/Installing
7--------------------------
8
9Since BeOS DR9, all the tools that you should need to build gawk are now
10included with BeOS. The process is basically identical to the Unix process
11of running configure and then make. Full instructions are given below:
12
13You can compile gawk under BeOS by extracting the standard sources,
14and running the configure script. You MUST specify the location prefix
15for the installation directory. Under BeOS DR9 and beyond the best
16directory to use is /boot/home/config, so the configure command
17would be:
18
19$ configure --prefix=/boot/home/config
20
21This will install the compiled application into /boot/home/config/bin,
22which is already specified in the standard PATH.
23
24Once the configuration process has been completed, you can run make and
25then make install:
26
27$ make
28....
29$ make install
30
31Socket Notes
32----------------------
33
34Due to the socket implementation under BeOS not all of the features under
35gawk's socket implementation may work properly. In particular:
36
37 BeOS does not support a BSD SO_LINGER option, so sockets cannot remain
38 open after a close if data is still present on the incoming buffer.
39
40 BeOS does not allow data to be read from a socket without removing the data
41 from the buffer (peek). If you need to use this feature in gawk, create a
42 separate input buffer and peek into your own copy, rather than the OS version.
43
44 BeOS does not support RAW socket connections, only UDP or TCP.
45
46Note that these are BeOS Unix-layer compatibility problems, and only affect certain
47aspects of network communication. Most socket based gawk scripts, and any scripts
48that do not rely on sockets should work fine (excepting any other notes in this section).
49
50File Handle Notes
51---------------------------
52
53Expect the multiple file test (when running make check) to fail. The reason for this is
54explained in the email shown below:
55
56-------------------------------------------------------
57From mc@whoever.com Sun Jul 23 17:06:38 2000
58Date: Sun, 23 Jul 2000 07:23:49 +0100
59Subject: Re: gawk-3.0.5 results on BeOS
60From: Martin C Brown <mc@whoever.com>
61To: Aharon Robbins <arnold@skeeve.com>, <haible@ilog.fr>
62
63Arnold/Bruno,
64
65> This is a known BeOS problem. I am cc'ing the BeOS port person.
66> Sorry I don't have a fix.
67
68This problem is directly related to the FOPEN_MAX/OPEN_MAX parameter used in
69the stdio library by the BeOS. It seems that the BeOS strictly enforces this
70number to the point that opening the 128th file causes all previously opened
71files (except stdin/out/err) to be closed - hence the bad number.
72
73I've tried this outside of gawk and the same thing happens, so it's not a
74gawk problem.
75
76I've spent the past few days trying to find a suitable workaround, but it's
77obviously difficult trying to patch a kernel from the outside :))
78
79I'll be reporting this as a bug to Be shortly.
80
81MC
82
83--
84Martin 'MC' Brown, mc@mcslp.com http://www.mcwords.com
85Writer, Author, Consultant
86'Life is pain, anyone who says differently is selling something'
Note: See TracBrowser for help on using the repository browser.