DSL-N :: Error trying to compile in DSL-N



I have been trying to set things up in DSL-N to compile binaries rather than load Debian packages.

I unpacked the 2.6.12 kernel sources, loaded the DSL-N version of gnu-utils.dsl, and installed the Debian gcc-2.95 and make packages, but:

Code Sample
# ./configure
...
error - c compiler not able to create executables

According to Google, the binutils & libgcc1 packages are also required, but the error remains, even with these loaded.

I'm sure I'm missing something simple - but what?

Is there anything else relevant in the configure output?

You could always open up the script, search for that exact error message, then see what causes the script to fail.

Thanks for the hint - I'd been looking at the config.log file - it seems the relevent error was the following:

configure:3068: checking for C compiler default output file name
configure:3095: /usr/bin/gcc-2.95    conftest.c  >&5
ld: crt1.o: No such file: No such file or directory

After some searching, I found the file crt1.o in the package libc6-dev which is dependent on the linux-kernel-headers package. The following script (using Debian stable) seems to set up an environment that has allowed me to compile from some binaries:

Code Sample
#!/bin/bash
#
# Requires dsl-dpkg.dsl & gnu-utils.dsl (DSL-N version)
#
dpkg -i /path-to-deb/libc6_2.3.2.ds1-22sarge5_i386.deb
dpkg -i /path-to-deb/libgcc1_3.4.3-13sarge1_i386.deb
dpkg -i /path-to-deb/libdb4.2_4.2.52-18_i386.deb
dpkg -i /path-to-deb/libgdbm3_1.8.3-2_i386.deb
dpkg -i /path-to-deb/perl-base_5.8.4-8sarge5_i386.deb
dpkg -i --force-all /path-to-deb/perl-modules_5.8.4-8sarge5_all.deb
dpkg -i /path-to-deb/perl_5.8.4-8sarge5_i386.deb
dpkg -i /path-to-deb/m4_1.4.2-1_i386.deb
dpkg -i /path-to-deb/make_3.80-9_i386.deb
dpkg -i /path-to-deb/autoconf_2.59a-3_all.deb
dpkg -i /path-to-deb/autotools-dev_20050422.1_all.deb
dpkg -i /path-to-deb/automake1.8_1.8.5-3_all.deb
dpkg -i /path-to-deb/binutils_2.15-6_i386.deb
dpkg -i /path-to-deb/cpp-2.95_2.95.4-22_i386.deb
dpkg -i /path-to-deb/gcc-2.95_2.95.4-22_i386.deb
#
dpkg -i /path-to-deb/linux-kernel-headers_2.5.999-test7-bk-17_i386.deb
dpkg -i /path-to-deb/libc6-dev_2.3.2.ds1-22sarge5_i386.deb
#
ln -s /usr/bin/gcc-2.95 /usr/bin/cc
ln -s /usr/bin/gcc-2.95 /usr/bin/gcc
dpkg -i /path-to-deb/libtool_1.5.6-6_i386.deb
#
# EOF

While trying to compile cpufrequtils, I get an error that sysfs/libsysfs.h cannot be found - the makefile has an option "Use the sysfs-based interface which is included in all 2.6 kernels" - kind of odd that it is not in linux-kernel-headers, the Knoppix 4.0.2 CD or the full kernel sources but I guess that's another story (later tracked to libsysfs-dev)  :)


original here.