Before compiling the XFree86 distribution you will have to make a few little adjustments to your system:
/lib/cpp as follows:
#!/bin/sh
/usr/lib/gcc-lib/i386-unknown-lynxos2.5/2.7-96q1/cpp \
-traditional "$@"
On other platforms than the AT the paths for the compiler support
programs are different. You may use
gcc -v
to find out the correct path. Set the file mode of /lib/cpp with
# chown root /lib/cpp
# chmod 755 /lib/cpp
/lib/liblynx.a. The X servers need the
smem_create() system call to map the frame buffer into their
address space. The system call is in liblynx library along
with other Lynx proprietary calls which (unfortunately) overlap
with calls in libc. To reduce confusion you should modify
liblynx as follows:
# mv /lib/liblynx.a /lib/liblynx.a.ORG
# mkdir /tmp/xx; cd /tmp/xx
# ar xv /lib/liblynx.a.ORG
# ar rv /lib/liblynx.a *smem*
# ranlib /lib/liblynx.a
/CYGNUS.bash to
apply the necessary changes to your environment./lib/cpp as follows:
#!/bin/sh
/cygnus/94q4-lynxos-x86/lib/gcc-lib/i386-lynx/2.6-94q4/cpp \
-traditional "$@"
It is possible that future releases use a different path for
the CYGNUS compiler support programs. You may use
gcc -v
to find out the correct path. Set the file mode of /lib/cpp with
# chown root /lib/cpp
# chmod 755 /lib/cpp
This has actually not been tested, but the steps for described for 2.4 should apply to 2.3 as well.
This has actually never been tested, be prepared that the build will fail somewhere!
/lib/cpp as follows:
#!/bin/sh
/usr/local/lib/gcc-cpp -traditional "$@"
# cd xc/programs/Xserver/hw/xfree/etc
# cc -o ld ld-wrapper.c
# mv /bin/ld /bin/ld.org
# mv ld /bin/ld
# chmod 511 /bin/ld
# chown root /bin/ld
/usr/include/uio.hsurrounded by
#ifndef _UIO_H
#define _UIO_H
...
#endif
/usr/include/utmp.hsurrounded by
#ifndef _UTMP_H
#define _UTMP_H
...
#endif
/usr/include/unistd.hadd
extern int read();