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