Solved

make zImage errors

Posted on 1997-11-14
2
251 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to virtualise a remote Linux server 2 66
CSVDE Novell Directory -a password option isn't working keeps prompting 2 31
Choosing CentOS 16 79
centos linux 65 125
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

776 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