blob: 8138f7ac38a64be68b1dd2dd0a7c62d32c2451fa [file] [log] [blame]
Martin v. Löwisf90ae202002-06-11 06:22:31 +00001Python for AtheOS
2
3
4Before building:
5
6 Make sure you have shared versions of the libraries you want to use
7 with Python. You will have to compile them yourself, or download
8 precompiled packages.
9
10 Recommended libraries:
11
12 ncurses-4.2
13 readline-4.2a
14 zlib-1.1.4
15
16Build:
17
18 $ ./configure --prefix=/usr/python
19 $ make
20
21 Python is always built as a shared library, otherwise dynamic loading
22 would not work.
23
24Testing:
25
26 $ make test
27
28Install:
29
30 # make install
31 # pkgmanager -a /usr/python
32
33
34AtheOS issues:
35
36 - large file support: due to a stdio bug in glibc/libio, access to
37 large files may not work correctly.
38 fseeko() tries to seek to a negative offset.
39 ftello() returns a negative offset, it looks like a 32->64bit
40 sign-extension issue.
41 The lowlevel functions (open, lseek, etc) are OK.
42 - sockets: AF_UNIX is defined in the C library and in Python, but
43 not implemented in the system.
44 - select: poll is available in the C library, but does not work
45 (It does not return POLLNVAL for bad fds and hangs).
46 - posix: statvfs and fstatvfs always return ENOSYS.
47 -
48 - disabled modules:
49 - mmap: not yet implemented in AtheOS
50 - nis: broken (on an unconfigured system yp_get_default_domain()
51 returns junk instead of error)
52 - dl: dynamic loading doesn't work via dlopen()
53 - resource: getrimit and setrlimit are not yet implemented
54
55 - if you are getting segmentation faults, you probably are low on memory.
56 AtheOS doesn't handle very well an out-of-memory condition and
57 simply SEGVs the process.
58
59Tested on:
60
61 AtheOS-0.3.7
62 gcc-2.95
63 binutils-2.10
64 make-3.78
65
66
67--
68Octavian Cerna <tavy@ylabs.com>