Hello all,

I've receivnly received the TeX Live 5d CD-ROM and wanted to try building
teTeX-1.0 on BeOS R5 for x86.

BeOS is largely posix-compliant, and the x86 version of the OS uses GCC as
a compiler.  I also have an original BeBox but I'm not near it, and so
could not try building a PowerPC version.

The thing that sets BeOS apart from Unix versions (although BeOS is
definitely not a Unix, it looks and tastes like one for command line apps)
is the directory structure.  Luckily, with the --prefix and --datadir
switches, this is nothing of a problem.

So, I copied the texmf tree from the TeX Live CD onto my hard disk,
unpacked the sources as well, and fiddled with it for quite a while.

Notable problems:

The BeOS does not have a math library.  It is incorporated into another
system lib, hence -lm fails.  I found a titbit on this in PROBLEMS since
the Mac also lacks this lib.  I removed -lm from the programs.mk, as
suggested.

Further, to link shared libs (which I wanted for kpathsea), the BeOS
version of gcc wants "-nostart" instead of "-shared".  I modified
src/teTeX-1.0/texk/klibtool around line 324 to add:

      i586-*-beos*)
        shared_support=true;
        args_SHARED_archive='-nostart'
        ;;

I then ran the top level configure with:

./configure --enable-shared --without-xdvik --with-system-libpng
--with-system-zlib --prefix=/boot/apps --datadir=/boot/apps

(the --without-xdvik is because although there is a port of an X server
for the BeOS, it is not it's native GUI, and there is a native DVI viewer
available).

I am getting compile errors (missing header files or undefined constants)
in libwww (so I took it out of the makefile in an attempt to at least keep
going - what is it needed for?), but then also in ncurses (redefined
"bool").

I decided to go one level deeper and go into teTeX-1.0 to see what I could
make there.

Texinfo errored out on a missing "io.h".

I went into texk.  Kpathsea was compiled correctly, but something weird
happened after the linking stage.  Looking at the output from make:

cd ../kpathsea/SHARED && rm -f libkpathsea.so.3.3.2x
libkpathsea.so.3.3.2x* && gcc -nostart -o libkpathsea.so.3.3.2x [bunch of
.o files snipped] && rm -f libkpathsea.so.3.3.2x && ln -s
libkpathsea.so.3.3.2x libkpathsea.so.3.3.2x

If I link the objects by hand, I can make a libkpathsea.so.3.3.2x which
looks just fine to me.

I'll continue my experiments tomorrow; if any "configure" guru can help me
out, please advice.  I would like for this to be more of a "right out of
the box" for future BeOS TeXers.

Regards,
Sander Stoks

Reply via email to