Solved

make zImage errors

Posted on 1997-11-14
2
252 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
ID: 1630606
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
ID: 1630607
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

856 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