Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

make zImage errors

Posted on 1997-11-14
2
Medium Priority
?
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

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). …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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

704 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