Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

make zImage errors

Posted on 1997-11-14
2
Medium Priority
?
265 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 300 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

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

877 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