The Testing Area :: compile-3.3.5.uci



Thanks to Juanito for an update to:
Code Sample
Title:          compile-3.3.5.uci
Description:    compile environment for dsl
Version:        3.3.5
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: GPL/GPLv2/GPLv3
-----==[  Color = green     Filesize:   13.7MB  ]==-----
Extension by:   juanito
Comments:       Compile environment for dsl based on gcc-3.3.5
               The compile environment was itself compiled on dsl for i486 and the applications used
               (as far as was possible) are those used for the base version of dsl.
               ----------
               Since dsl has three versions of libpng a choice needs to be made as to which
               versions of headers/pkgconfig to use. Links have been placed in /tmp that point
               to the most recent version of libpng - modify these links if you wish to compile
               based on an older version of png.
               ----------
               To use this compile environment, do something like this:
               $ export CPPFLAGS=-I/opt/compile-3.3.5/include
               $ ./configure --prefix=...
               $ make
               # make install (you will need to do this from a separate aterm opened as root)
               Note that the above approach will not work when compiling the full kernel sources.
               You will have to manually link /usr/include -> /opt/compile-3.3.5/include and also
               add  #include <sys/param.h>  at the beginning of ../scripts/mkdep.c to be able to  make dep
               ----------
               Note also that the recommended version of gcc to use when compiling the kernel
               and/or modules for 2.4.26 or 2.4.31 is gcc-2.95.3
               This being said, I have not seen any problems compiling modules with gcc-3.3.5
               ----------
               If you see strange errors when compiling things like glib2, try this:
               $ cp -a /opt/compile-3.3.5/optional /opt
               $ export CPPFLAGS=-I/opt/include
               [thanks to ^thehatsrule^]
               ----------
               This extension contains (headers, some libs and some executables from):
               autoconf-2.62 - http://ftp.gnu.org/gnu/autoconf/
               automake-1.7 - http://ftp.gnu.org/gnu/automake/
               automake-1.85 - http://ftp.gnu.org/gnu/automake/
               automake-1.9 - http://ftp.gnu.org/gnu/automake/
               automake-1.10.1  -  http://ftp.gnu.org/gnu/automake/
               binutils-2.15 - http://ftp.gnu.org/gnu/binutils/
               bison-2.3 (1.875d required to compile xfree86-4.2.1) - http://ftp.gnu.org/gnu/bison/
               bzip2-1.0.2 - http://sources.redhat.com/bzip2
               curl-7.9.5 - http://curl.haxx.se
               expat-2.0.1 - http://expat.sourceforge.net/
               flex-2.5.35 (2.5.4 required to compile xfree86-4.2.1) - http://flex.sourceforge.net
               fontconfig-2.2.1 - http://www.fontconfig.org/
               freetype-2.1.5 - http://www.freetype.org/
               gcc-core-3.3.5 - http://ftp.gnu.org/gnu/gcc/
               gcc-g3.3.5 - http://ftp.gnu.org/gnu/gcc/
               gettext-0.14.4 - http://ftp.gnu.org/gnu/gettext/
               glib-1.2.10 - http://www.gtk.org/
               glibc-2.3.2-sscanf-1.patch - http://ftp.gnu.org/gnu/gettext/
               glibc-2.3.2 - http://ftp.gnu.org/gnu/gettext/
               glibc-linuxthreads-2.3.2 - http://ftp.gnu.org/gnu/gettext/
               gtk+-1.2.10 - http://www.gtk.org/
               linux-2.4.26 sources - http://kernel.org
               libpng-1.0.12 - http://www.libpng.org/
               libpng-1.0.15 - http://www.libpng.org/
               libpng-1.2.5 - http://www.libpng.org/
               libtool-1.5.6 - http://ftp.gnu.org/gnu/libtool/
               m4-1.4.11 - http://ftp.gnu.org/gnu/m4/
               make-3.81 - http://ftp.gnu.org/gnu/make/
               ncurses-5.4 - http://ftp.gnu.org/gnu/ncurses/
               openssl-0.9.7a - http://www.openssl.org/
               patch-2.5.9 - http://ftp.gnu.org/gnu/patch/
               pkg-config-0.23 - http://pkgconfig.freedesktop.org/
               popt-1.7-5 - ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/
               readline-4.3 (+patches 0-5) - http://ftp.gnu.org/gnu/readline/
               texinfo-4.9 - http://ftp.gnu.org/gnu/texinfo/
               tiff-v3.3.7 - ftp://ftp.sgi.com/graphics/tiff/
               xfree86-4.2.1 - http://www.xfree86.org
               zlib-1.1.4 - http://www.zlib.net/
Change-log:     first version 2007/10/31
               Added headers/libs for openssl & readline
               Removed executables in sbin
               Added symlinks in /opt/bin
               2007/11/22
               Added automake-1.9
               Removed /ramdisk from symlinks
               2007/12/02
               Added headers/libs for fontconfig
               Added symlink ../lib/libpng.so & libpng.so.2
               2007/12/15
               Moved ../X11R6/lib/libGL to ../lib
               Replaced Xlibs with symlink to base dsl libs
               Added headers/libs for popt-1.7 patched to popt-1.7-5
               2008/01/26
               Added back missing openssl headers & lib symlinks
               2008/02/10
               Removed /KNOPPIX from symlinks
               Added automake-1.7 & automake-1.10.1
               Updated autoconf, bison, expat, flex, m4, make, pkg-config & texinfo
               Added flex wrapper for lex
               2008/04/14
               Fixed libpopt symlink
               Added headers/libs for bzip2 & curl
Current:        2008/05/10

Still on the trail of tracking down the reason for some persistant erors when using compile-3.3.5, I've been trying to figure out exactly what's needed from glibc (apart from the headers) other than the files in the base dsl in order to be able to compile properly. Using a test from lfs on the compile-3.3.5 extension, I get this:
Code Sample
$ echo 'main(){}' > dummy.c
$ gcc dummy.c -Wl,--verbose 2>&1 | grep succeeded
attempt to open /usr/lib/crt1.o succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/../../../crti.o succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/crtbegin.o succeeded
attempt to open /tmp/cc1zWsiJ.o succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/libgcc.a succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/../../../libgcc_s.so succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/../../../libc.so succeeded [link to /usr/lib]
attempt to open /lib/libc.so.6 succeeded
attempt to open /usr/lib/libc_nonshared.a succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/libgcc.a succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/../../../libgcc_s.so succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/crtend.o succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/../../../crtn.o succeeded

Now if I remove the following files:

/opt/compile-3.3.5/lib/crti.o
/opt/compile-3.3.5/lib/crtn.o
/opt/compile-3.3.5/lib/libc.so [symlink to /usr/lib]

I get this:
Code Sample
$ gcc dummy.c -Wl,--verbose 2>&1 | grep succeeded
attempt to open /usr/lib/crt1.o succeeded
attempt to open /usr/lib/crti.o succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/crtbegin.o succeeded
attempt to open /tmp/ccE4Buk4.o succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/libgcc.a succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/../../../libgcc_s.so succeeded
attempt to open /usr/lib/libc.so succeeded
attempt to open /lib/libc.so.6 succeeded
attempt to open /usr/lib/libc_nonshared.a succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/libgcc.a succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/../../../libgcc_s.so succeeded
attempt to open /ramdisk/opt/compile-3.3.5/bin/../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/crtend.o succeeded
attempt to open /usr/lib/crtn.o succeeded

...which would tend to suggest that nothing from glibc (apart from the headers) other than what is already in the base dsl is required to compile. I'd appreciate it if anyone could comment on the correctness or otherwise of this statement  :)

Thanks to Juanito an update:
Code Sample
Title:          compile-3.3.5.uci
Description:    compile environment for dsl
Version:        3.3.5
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: GPL/GPLv2/GPLv3
-----==[  Color = green     Filesize:   13.7MB  ]==-----
Extension by:   juanito
Comments:       Compile environment for dsl based on gcc-3.3.5
               The compile environment was itself compiled on dsl for i486 and the applications used
               (as far as was possible) are those used for the base version of dsl.
               ----------
               Since dsl has three versions of libpng a choice needs to be made as to which
               versions of headers/pkgconfig to use. Links have been placed in /tmp that point
               to the most recent version of libpng - modify these links if you wish to compile
               based on an older version of png.
               ----------
               To use this compile environment, do something like this:
               $ export CPPFLAGS=-I/opt/compile-3.3.5/include
               $ ./configure --prefix=...
               $ make
               # make install (you will need to do this from a separate aterm opened as root)
               Note that the above approach will not work when compiling the full kernel sources.
               You will have to manually link /usr/include -> /opt/compile-3.3.5/include and also
               add  #include <sys/param.h>  at the beginning of ../scripts/mkdep.c to be able to "make dep"
               ----------
               Note also that the recommended version of gcc to use when compiling the kernel
               and/or modules for 2.4.26 or 2.4.31 is gcc-2.95.3
               This being said, I have not seen any problems compiling modules with gcc-3.3.5
               ----------
               If you see strange errors when compiling things like glib2, try this:
               $ cp -a /opt/compile-3.3.5/include /opt
               $ export CPPFLAGS=-I/opt/include
               [thanks to ^thehatsrule^]
               ----------
               This extension contains (headers, some libs and some executables from):
               autoconf-2.62 - http://ftp.gnu.org/gnu/autoconf/
               automake-1.7 - http://ftp.gnu.org/gnu/automake/
               automake-1.85 - http://ftp.gnu.org/gnu/automake/
               automake-1.9 - http://ftp.gnu.org/gnu/automake/
               automake-1.10.1  -  http://ftp.gnu.org/gnu/automake/
               binutils-2.15 - http://ftp.gnu.org/gnu/binutils/
               bison-2.3 (1.875d required to compile xfree86-4.2.1) - http://ftp.gnu.org/gnu/bison/
               bzip2-1.0.2 - http://sources.redhat.com/bzip2
               curl-7.9.5 - http://curl.haxx.se
               expat-2.0.1 - http://expat.sourceforge.net/
               flex-2.5.35 (2.5.4 required to compile xfree86-4.2.1) - http://flex.sourceforge.net
               fontconfig-2.2.1 - http://www.fontconfig.org/
               freetype-2.1.5 - http://www.freetype.org/
               gcc-core-3.3.5 - http://ftp.gnu.org/gnu/gcc/
               gcc-g3.3.5 - http://ftp.gnu.org/gnu/gcc/
               gettext-0.14.4 - http://ftp.gnu.org/gnu/gettext/
               glib-1.2.10 - http://www.gtk.org/
               glibc-2.3.2-sscanf-1.patch - http://ftp.gnu.org/gnu/gettext/
               glibc-2.3.2 - http://ftp.gnu.org/gnu/gettext/
               glibc-linuxthreads-2.3.2 - http://ftp.gnu.org/gnu/gettext/
               gtk+-1.2.10 - http://www.gtk.org/
               linux-2.4.26 sources - http://kernel.org
               libpng-1.0.12 - http://www.libpng.org/
               libpng-1.0.15 - http://www.libpng.org/
               libpng-1.2.5 - http://www.libpng.org/
               libtool-1.5.6 - http://ftp.gnu.org/gnu/libtool/
               m4-1.4.11 - http://ftp.gnu.org/gnu/m4/
               make-3.81 - http://ftp.gnu.org/gnu/make/
               ncurses-5.4 - http://ftp.gnu.org/gnu/ncurses/
               openssl-0.9.7a - http://www.openssl.org/
               patch-2.5.9 - http://ftp.gnu.org/gnu/patch/
               pkg-config-0.23 - http://pkgconfig.freedesktop.org/
               popt-1.7-5 - ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/
               readline-4.3 (+patches 0-5) - http://ftp.gnu.org/gnu/readline/
               texinfo-4.9 - http://ftp.gnu.org/gnu/texinfo/
               tiff-v3.3.7 - ftp://ftp.sgi.com/graphics/tiff/
               xfree86-4.2.1 - http://www.xfree86.org
               zlib-1.1.4 - http://www.zlib.net/
Change-log:     first version 2007/10/31
               Added headers/libs for openssl & readline
               Removed executables in sbin
               Added symlinks in /opt/bin
               2007/11/22
               Added automake-1.9
               Removed /ramdisk from symlinks
               2007/12/02
               Added headers/libs for fontconfig
               Added symlink ../lib/libpng.so & libpng.so.2
               2007/12/15
               Moved ../X11R6/lib/libGL to ../lib
               Replaced Xlibs with symlink to base dsl libs
               Added headers/libs for popt-1.7 patched to popt-1.7-5
               2008/01/26
               Added back missing openssl headers & lib symlinks
               2008/02/10
               Removed /KNOPPIX from symlinks
               Added automake-1.7 & automake-1.10.1
               Updated autoconf, bison, expat, flex, m4, make, pkg-config & texinfo
               Added flex wrapper for lex
               2008/04/14
               Fixed libpopt symlink
               Added headers/libs for bzip2 & curl
               2008/05/10
               Correct ^hats^ suggestion above and adjusted gcc specs file
Current:        2008/07/19

After adjusting the gcc specs file, I no longer get "PATH_MAX" or similar errors when compiling things like glib2 so hopefully this particular error has gone away...
Great!
Next Page...
original here.