X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/a83b6f466440987720492416f8091f2530a9ab41..4254b61a4e3d834da27cda46c142f2c2f56386ea:/README.beos diff --git a/README.beos b/README.beos index 7458672..0a01f50 100644 --- a/README.beos +++ b/README.beos @@ -4,56 +4,106 @@ designed to be readable as is. =head1 NAME -README.beos - Perl version 5 on BeOS +README.beos - Perl version 5.8+ on BeOS =head1 DESCRIPTION -Notes for building Perl under BeOS. +This file contains instructions how to build Perl under BeOS and lists +known problems. -=head2 General Issues with Perl on BeOS +=head1 BUILD AND INSTALL -To compile perl under BeOS R4 x86: +=head2 Requirements - ./Configure -d +I have built and tested Perl 5.8.6 and 5.9.1 under BeOS R5 x86 net server. +I can't say anything with regard to PPC. Since Perl 5.8.0 had been released +for BeOS BONE, I suspect, there is a good chance, that it still compiles on +a BONE system. The only change I've made, that affects BONE systems is the +recognition of whether it is a BONE system or not in C. Now +network socket support should remain enabled on BONE systems. This might +as well break the build, though. -and hit ^C when it asks you if you want to make changes to config.sh; -edit config.sh and do the following: -change d_socket='define' to ='undef'; -remove SDBM, Errno, and Socket from dynamic_ext= and nonxs_ext=; -add '#define bool short' to x2p/a2p.h; +As more recent versions of autoconf require flock() support, I wrote a flock() +emulation (flock_server) and released it on BeBits: - ../Configure -S; make; make install + http://www.bebits.com/app/4030 - cd ~/config/lib; ln -s 5.00502/BeOS-BePC/CORE/libperl.so . +If you want to build a Perl with flock() support, you have to install this +package first. -(substitute 5.00502 with the appropriate filename) +=head2 Configure -=head2 BeOS Release-specific Notes +With flock() support: + + CFLAGS=-I/path/to/flock/server/headers ./configure.gnu \ + --prefix=/boot/home/config + +Replace C with the path to the directory +containing the C header. + +Without flock() support: + + ./configure.gnu --prefix=/boot/home/config + +=head2 Build + +With flock() support: + + make LDLOADLIBS="-lnet -lflock" + +Without flock() support: + + make LDLOADLIBS="-lnet" + +C<-lnet> is needed on net server systems only and if the compiler doesn't +add it automatically (Be's R5 gcc does, Oliver Tappe's gcc 2.95.3 does not). + +=head2 Install + +Install all perl files: + + make install + +Create a symlink for libperl: + + cd ~/config/lib; ln -s perl5/5.8.6/BePC-beos/CORE/libperl.so . + +Replace C<5.8.6> with your respective version of Perl. + +=head1 KNOWN PROBLEMS =over 4 -=item R4 x86 +=item * -Dynamic loading finally works! Yay! This means you can compile your -own modules into perl. However, Sockets and Errno still don't work. -(Hopefully, sockets will at least work by R5, if not sooner.) +Network socket support is disabled for BeOS R5 net server. I didn't dare yet +to try enabling it and see what problems occur. -=item R4 PPC +=item * -I have not tested this. I rather severely doubt that dynamic loading -will work. (My BeBox is in pieces right now, following a nasty disk -crash.) You may have to disable dynamic loading to get the thing to -compile at all. (use `./Configure` without -d, and say 'no' to 'Build -a shared libperl.so'.) +The LFS (large file support) tests (C and C) are +disabled as seeking beyond 2 GB is broken according to jhi@iki.fi who was the +last one checking the BeOS port and updating this file before me. Haven't +checked this myself. -=back +=item * + +The C test fails at #6. As far as I can tell, this is caused by +a bug in the BeOS pipes implementation that occurs when starting other child +processes. In the particular test case a C flushes the +stdout pipe of another child process. + +=item * -=head2 Contact Information +The C test fails at #1. After all child processes are +gone BeOS' waitpid(-1,...) returns 0 instead of -1 (as it should). No idea +how to fix this. + +=back -If you have comments, problem reports, or even patches or bugfixes (gasp!) -please email me. +=head1 CONTACT -28 Jan 1999 -Tom Spindler -dogcow@isi.net +For BeOS specifics problems feel free to mail to: +Ingo Weinhold +Last update: 2004-12-16