Solved

make zImage errors

Posted on 1997-11-14
2
250 Views
Last Modified: 2013-12-15
I'm trying to make a new kernel that supports IP aliasing, but the process keeps generating an error about 20 minutes into the process. The machine is a 486DX/100 compiling with kernel 2.0.29 (Slackware) from a Walnut Creek CD-ROM.

I ran 'make dep' and there were no errors that I could see, but I wasn't watching the screen real close. The first time I attempted compiling, I also ran 'make clean' which seemed to inspire an error in 'make zImage' very soon into the process (just long enough to fill the coffee cup).

Here's all the messages I could get from the screen (I added extra line returns to make it easier to see each line)...

gcc -D __KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS -C misc.c -0 misc.o

ld -qmagic -Ttext 0xfe0 -o vmlinux head.o misc.o piggy.o

ld: warning: cannot find entry symbol _start; defaulting to 0000000000000fe0

misc.o: In function 'fill_inbuf':

misc.o(.text+0x1c18):undefined reference to 'input_data'

misc.o(.text+0x1c1d):undefined reference to 'input_len'

misc.o(.text+0x1c33):undefined reference to 'input_data'

make[2]: ***[vmlinux] Error 1

make[2]: Leaving directory 'usr/src/linux/arch/i386/boot/compressed'

make[1]: ***[compressed/vmlinux] Error 2

make[1]: Leaving directory '/usr/src/linux/arch/i386/boot'

make: ***[zImage] Error 2
0
Comment
Question by:darnell
2 Comments
 
LVL 1

Accepted Solution

by:
Belar earned 100 total points
Comment Utility
Uh, well, i need more info.

1) Did you downloader this need source tree or applied a patch to an older kernel? I mean did you untared this new kernel over /usr/src/linux?

2) You didn't specify if you did make config first. I guess you did but i have to ask.
 
3) Do this:      cd /usr/include
            rm -rf asm linux scsi
            ln -s /usr/src/linux/include/asm-i386 asm
            ln -s /usr/src/linux/include/linux linux
            ln -s /usr/src/linux/scsi scsi

This might remove and update stale links that might have appeared if you changed your source tree. They might appears correct but they are not.

4) I don't know which distribution version of slackware you have. You might have an older gcc that need to be upgraded. But i'm reaching with this so don't worry if you have slackware 3.X and up. (I think they have a good enough gcc in these dist.)

5) If this don't work can you redirect the std error to a file and make sure there is no other errors that you didn't mention.
0
 

Author Comment

by:darnell
Comment Utility
I found the problem to be a missing file. The source (linux-2.0.29.tar.gz) had a 'piggyback.c' and the make was looking for 'piggy.c'  I renamed the file and all went well.  Thanks for the help.

/s/Rick
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now