Building EROS (30 Jun 2002)
Ryan Lacky has written a long post about TCPA to the cypherpunks list. Ryan:
This feels rather unfulfilling. I even avoided posting it to other lists so as to limit the spread of crack and confine said crack to its standard resting place.
EROS doesn't exactly build cleanly and I don't know if my fixes break anything critial yet, but they do get the code to compile at least
(the EROS install page is here)
- get http://www.eros-os.org/~eros/pkg/eros-xenv-src.tgz
- get http://www.eros-os.org/~eros/pkg/eros.tgz
- cd
- tar xz < eros-xenv-src.tgz
- cd eros-xenv-src
- make
- make directions
- make xenv
- do not export EROS_TARGET
- wait for the build to fail
- apply patch one in the eros-xenv-src directory
- comment out line 46 of build/binutils-2.9.1/libiberty/dummy.c
- make xenv
- cd ~/eros-xenv/include
- apply patch two
- cd ; tar xz < eros.tgz ; cvs login
- The cvs password is cvs
- make update
- make
Patch One
--- Makefile Wed Jul 4 19:15:29 2001 +++ Makefile Sun Jun 30 18:36:31 2002 @@ -103,7 +103,8 @@ XENV_LIBXML2 = libxml2-2.3.13 XENV_LIBXSLT = libxslt-0.13.0 -XENV_TOOLS = xenv-make xenv-binutils xenv-gcc xenv-libxml2 xenv-libxslt +#XENV_TOOLS = xenv-make xenv-binutils xenv-gcc xenv-libxml2 xenv-libxslt +XENV_TOOLS = xenv-binutils xenv-gcc xenv-libxml2 xenv-libxslt xenv: $(XENV_TOOLS) @@ -120,12 +121,6 @@ -rm -rf build xenv-binutils: - -rm -rf build - -mkdir build - cat pieces/$(XENV_BINUTILS)/tgz-part.* | $(ZCAT) - | (cd build; tar xf -) - (cd build/$(XENV_BINUTILS); ./configure \ - --prefix=$(EROS_XENV) \ - --target=$(EROS_TARGET)-unknown-linux) $(MAKE) -C build/$(XENV_BINUTILS) all install @echo @echo "BUILD SUCCEEDED... removing build subdir"
Patch Two
--- bfd.h Sun Jun 30 19:16:33 2002 +++ bfd.h Sun Jun 30 19:16:21 2002 @@ -98,7 +98,7 @@ #define TRUE_FALSE_ALREADY_DEFINED #endif /* MPW */ #ifndef TRUE_FALSE_ALREADY_DEFINED -typedef enum bfd_boolean {false, true} boolean; +typedef enum bfd_boolean {FALSE, TRUE} boolean; #define BFD_TRUE_FALSE #else /* Use enum names that will appear nowhere else. */