DSL Tips and Tricks :: easier way to compile stuff for DSL



Doing this seemed to solve the problem (using the knoppix-3.4 .config):
Code Sample
$ cd /usr/src/linux-2.4.26
$ make mrproper
$ make include/linux/version.h
$ make symlinks
$ make menuconfig

This made /include/linux/autoconf.h in addition to all the other headers

Hmm - compiling libfreetype6   "2.1.2-9" as per "dsl packages" gives libfreetype.so.6.3.1 whereas dsl-3.4.4 contains libfreetype.so.6.3.4, which (after some experimentation) equates to freetype-2.1.5

I guess some of the libs have been updated since the packages list was made?

Also, although libexpat is not mentioned in "dsl packages", dsl-3.4.4 contains libexpat.so.1.0.0 - expat-1.95.8 gives libexpat.so.0.5.0 and expat-2.0.1 gives libexpat.so.1.5.2

Does anybody know where libexpat in dsl came from?

A hacked Debian one?
'should've thought of that - oldstable libexpat1 (1.95.8-3) contains libexpat.so.1.0.0...
It looks like the /opt/compile extension is working reasonably well to compile applications, but I seem to have a problem in compiling the kernel:
Code Sample
$ make mrproper
$ make include/linux/version.h
$ make symlinks
$ make menuconfig
$ make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: error: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:221: error: (Each undeclared identifier is reported only once
scripts/mkdep.c:221: error: for each function it appears in.)
scripts/mkdep.c:221: warning: unused variable `resolved_path'
make: *** [scripts/mkdep] Error 1

../include/linux/limits.h has PATH_MAX set, but ../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/include/limits.h does not. Is it possible gcc is using this file instead of /include/linux/limits.h?

The only other thing I can find about this is "some toolchains don't have PATH_MAX in <limits.h>, use an additional #include <sys/params.h>", whatever than means...

Next Page...
original here.