Strange swap problem in 1.3.25 and 1.3.30

Raghunath K. Rao (rrao@vision.iit.edu)
Wed, 11 Oct 1995 12:39:54 -0500


Hi,

I have a Pentium 100 MHz with 16 MB Ram, AHA 2940 SCSI-II + 2.1
GB HD, Soundblaster 16 + Teac CDROM with Slackware 2.3 installed.

Since AHA 294X support is not on the standard 1.2.8 kernel, I had to make a
bootdisk with 1.3.25 (on another Pentium running Slak 2.3 + Linux 1.2.8).

Installation worked fine. However, the swap partition (or file, I have
tried both) refuses to allocate space over the 16MB *if* the code
has static allocation. The same code rewritten with dynamic allocation
seems OK! However, the swapping seems a bit slower compared to my
older 486DX66 running Slak 2.1 and Linux 1.1.18.

I tried 1.3.30, but no help.

I also tried moving my swap partition/file to < 1GB, and also to
a primary partition (<4). But of no avail.

My other Pentium, which is identical, except that it does not have
SCSI, and runs on 1.2.8, is perfectly OK!

I tried reading up previous Usenet articles and the FAQ and found no
mention of this. Can someone please explain? How do I fix this?

Could it be a compiler problem? I have the standard gcc 2.6.3 released
with Slak 2.3. I do notice a strange problem with this compiler:
If you compile with BOTH, the debug option and the math library:
gcc -g vote_rhash.c -lm

then I get this error:
ld: Output file requires shared library `libc.so.4'
gcc: Internal compiler error: program ld got fatal signal 6

Anyone know why this happens? Could it be part of my problem?

Thanks,
Raghu

PS: By the way, the 1.3.31 kernel I got from sunsite does not compile
out of the box! Everything is OK, but during linking it misses a
function: "_IOC_TYPE"