HELP: linux 2.1.x related compile errors.

HELP: linux 2.1.x related compile errors.

Post by Paul Jakm » Tue, 21 Oct 1997 04:00:00

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I'm trying to compile linux2.1.59 but I'm having no luck.

The compile always falls down at dquot.c - whether it's .56,.57 or .59.
I've tried copying dquot.c from 2.0.30 over the 2.1.5x dquot.c, but the
compile will break somewhere else. I have the same problem with other
linux 2.1 related programs - like procps and linux-nfs-0.41.21 - see the

I have upgraded to everything recommended in Documentation/Changes file.
I've recompiled my libc and gcc twice, but to no avail.

I can compile linux 2.0, gcc, libc no problem, and most other programs.
It's just 2.1 that's giving me these problems - it's driving me nuts!

What's the problem - gcc? My libc? My /usr/include header files?

If anybody out there could offer any ideas at all I'd be very grateful.


PS please cc a copy to me if you reply.
Paul Jakma
snip .no.spam from email address to reply.

01 5 * * * root find / -name windows -exec rm -rf {} \;
Content-Type: text/plain; charset=us-ascii; name="compile_errors"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="compile_errors"

Error in dquot.c during kernel compile:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=586  -c -o dquot.o dquot.c
dquot.c: In function `write_dquot':
dquot.c:233: warning: passing arg 1 from incompatible pointer type
dquot.c:233: warning: passing arg 2 makes integer from pointer without a
dquot.c:233: too many arguments to function
dquot.c: In function `read_dquot':
dquot.c:265: warning: passing arg 1 from incompatible pointer type
dquot.c:265: warning: passing arg 2 makes integer from pointer without a
dquot.c:265: too many arguments to function
make[2]: *** [dquot.o] Error 1
make[2]: Leaving directory /usr/src/linux/fs'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory /usr/src/linux/fs'
make: *** [linuxsubdirs] Error 2


Error in lockd.h while compiling linux-nfs-0.4.21:

gcc -D__KERNEL__ -I/usr/local/src/linux-nfs-0.4.21/kernel/include
-I/usr/local/src/linux-nfs-0.4.21/kernel/ksrc/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -DCPU=586
-DEXPORT_SYMTAB -c lockd_syms.c
/usr/local/src/linux-nfs-0.4.21/kernel/include/linux/lockd/lockd.h: In
function `nlmsvc_file_inode':
In file included from lockd_syms.c:25:
structure has no member named `f_inode'
make[3]: *** [lockd_syms.o] Error 1
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make: *** [all] Error 2



1. HELP:Unable to compile Linux 2.1 w/gcc 2.7 - no 386 inst 'rdtsc'

I installed Slackware Linux 1.2.13 then downloaded the source for
but the compiler broke!
I ran make clean, dep, zImage:
darkstar:/usr/src/linux# make zImage
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
rame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2
jumps=2 -malign-functions=2 -DCPU=586  -c -o init/main.o init/main.c
{standard input}: Assembler messages:
{standard input}:276: Error: no such 386 instruction: `rdtsc'
{standard input}:288: Error: no such 386 instruction: `rdtsc'
make: *** [init/main.o] Error 1

I played with the ".config" CPU entry starting from 686 to 386, but the

The source file was over 12 MB and I'd hate to download another beast of

this size! (e.g., v2.0).

Any constructive suggestions appreciated.

Please do not "Reply" as I added "NO_SPAM" to my Netscape Id,

Thanks, Art

2. what are CFLAGS and LFLAGS?

3. Error compiling PPP 2.1.2d

4. Digicom Connection 96+ Modem 'n Linux???

5. error compiling KDE 2.1 beta 1

6. floppy-based Linux system?

7. KDE2.2.1 + LAME compile error

8. Disaster! (overlapping partitions)

9. compiling kdebindings 2.1 - python error

10. Error compiling Kpackage1.2.1

11. svgalib-1.2.10 compile errors (help)

12. Floppy-related hangs under 2.1.9x

13. compile kernel 2.1.xx help!