HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   2.4.17 system needed (http://www.howtoforge.com/forums/showthread.php?t=12796)

modul8r 18th May 2007 17:52

2.4.17 system needed
 
Hi there,

I need to get a Linux system up that's running a 2.4.17 kernel.

Anyone know a particular distribution I can download that already has that kernel?

If not, would someone please give me instructions on what distribution I should download, then tips on getting a 2.4.17 kernel compiled on that system, i.e. pointing me to a good how-to.

The distribution doesn't matter. It just has to be Linux (not BSD, etc.).

Thanks in advance!

falko 19th May 2007 15:04

You could try Debian Sarge. 2.4 is the default kernel for Sarge, but I don't know if it's 2.4.17. If it isn't, you can then compile a 2.4.17 kernel yourself: http://www.howtoforge.com/howto_linu...compile_debian

modul8r 21st May 2007 20:56

I downloaded Debian "Sarge" (3.1) here:
http://cudlug.cudenver.edu/debian-cd...6-binary-1.iso

It installed fine, although it gave an error during the package installation portion, whether or not I had "desktop" checked.

I followed your HOWto but ran into a problem. I hope you, or someone, can help.

Minor problems:

1. My folder is "linux" after doing the tar xjf, where yours is "linux-2.4.23". Maybe not a big deal, but I wanted to let you know. The file I downloaded was "linux-2.4.17.tar.bz2" from kernel.org.

2. My "make menuconfig" shows "arch/i386/debconfig" when I go to load an alternate configuration file. (Yours shows "/boot/config-2.4.18-bf2.4".) Not sure if that's a problem, or if that's OK. I ended up leaving what mine was by default.

Major problem:

make dep - OK
make-kpkg clean - OK
the fakeroot command ends up giving me an error

I don't know how to export that text so I can paste it here, so I just took a picture (click for larger image):


http://incognito.org/blog/wp-content....thumbnail.jpg

Hopefully it's something simple.

Again, my project specifically requires I have a 2.4.17 kernel, so that's why I downloaded that version.

Thanks in advance for any help you can provide!

falko 22nd May 2007 17:48

Your picture doesn't show the first error which is the most important one.

You can connect to your system with an SSH client such PuTTY. PuTTY lets you copy&paste to and from the shell. :)

modul8r 22nd May 2007 18:27

Part 1:

d-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ wanmain.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/wanmain.ver.tmp
mv /usr/src/linux/include/linux/modules/wanmain.ver.tmp /usr/src/linux/include/linux/modules/wanmain.ver
/usr/src/linux/scripts/mkdep -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -- af_wanpipe.c wanmain.c wanproc.c > .depend
make[6]: Leaving directory `/usr/src/linux/net/wanrouter'
/usr/bin/make -C x25 fastdep
make[6]: Entering directory `/usr/src/linux/net/x25'
/usr/src/linux/scripts/mkdep -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -- af_x25.c sysctl_net_x25.c x25_dev.c x25_facilities.c x25_in.c x25_link.c x25_out.c x25_route.c x25_subr.c x25_timer.c > .depend
make[6]: Leaving directory `/usr/src/linux/net/x25'
make[5]: Leaving directory `/usr/src/linux/net'
make[4]: Leaving directory `/usr/src/linux/net'
/usr/bin/make -C ipc fastdep
make[4]: Entering directory `/usr/src/linux/ipc'
/usr/src/linux/scripts/mkdep -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -- msg.c sem.c shm.c util.c util.h > .depend
make[4]: Leaving directory `/usr/src/linux/ipc'
/usr/bin/make -C lib fastdep
make[4]: Entering directory `/usr/src/linux/lib'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ cmdline.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/cmdline.ver.tmp
mv /usr/src/linux/include/linux/modules/cmdline.ver.tmp /usr/src/linux/include/linux/modules/cmdline.ver
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ dec_and_lock.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/dec_and_lock.ver.tmp
mv /usr/src/linux/include/linux/modules/dec_and_lock.ver.tmp /usr/src/linux/include/linux/modules/dec_and_lock.ver
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ rwsem-spinlock.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/rwsem-spinlock.ver.tmp
mv /usr/src/linux/include/linux/modules/rwsem-spinlock.ver.tmp /usr/src/linux/include/linux/modules/rwsem-spinlock.ver
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ rwsem.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/rwsem.ver.tmp
mv /usr/src/linux/include/linux/modules/rwsem.ver.tmp /usr/src/linux/include/linux/modules/rwsem.ver
/usr/src/linux/scripts/mkdep -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -- brlock.c bust_spinlocks.c cmdline.c ctype.c dec_and_lock.c errno.c inflate.c rbtree.c rwsem.c rwsem-spinlock.c string.c vsprintf.c > .depend
make[4]: Leaving directory `/usr/src/linux/lib'
/usr/bin/make -C arch/i386/kernel fastdep
make[4]: Entering directory `/usr/src/linux/arch/i386/kernel'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ mca.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/mca.ver.tmp
mv /usr/src/linux/include/linux/modules/mca.ver.tmp /usr/src/linux/include/linux/modules/mca.ver
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ mtrr.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/mtrr.ver.tmp
mv /usr/src/linux/include/linux/modules/mtrr.ver.tmp /usr/src/linux/include/linux/modules/mtrr.ver
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ msr.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/msr.ver.tmp
mv /usr/src/linux/include/linux/modules/msr.ver.tmp /usr/src/linux/include/linux/modules/msr.ver
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ cpuid.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/cpuid.ver.tmp
mv /usr/src/linux/include/linux/modules/cpuid.ver.tmp /usr/src/linux/include/linux/modules/cpuid.ver
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ microcode.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/microcode.ver.tmp
mv /usr/src/linux/include/linux/modules/microcode.ver.tmp /usr/src/linux/include/linux/modules/microcode.ver
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -E -D__GENKSYMS__ i386_ksyms.c
| /sbin/genksyms -p smp_ -k 2.4.17 > /usr/src/linux/include/linux/modules/i386_ksyms.ver.tmp
In file included from i386_ksyms.c:22:
/usr/src/linux/include/asm/checksum.h:72:30: missing terminating " character
/usr/src/linux/include/asm/checksum.h:90:13: missing terminating " character
/usr/src/linux/include/asm/checksum.h:105:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h:108:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h:121:13: missing terminating " character
/usr/src/linux/include/asm/checksum.h:126:9: missing terminating " character
/usr/src/linux/include/asm/checksum.h:161:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h:173:17: missing terminating " character
mv /usr/src/linux/include/linux/modules/i386_ksyms.ver.tmp /usr/src/linux/include/linux/modules/i386_ksyms.ver
/usr/src/linux/scripts/mkdep -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -- acpitable.c acpitable.h apic.c apm.c bluesmoke.c cpuid.c dmi_scan.c entry.S head.S i386_ksyms.c i387.c i8259.c init_task.c io_apic.c ioport.c irq.c ldt.c mca.c microcode.c mpparse.c msr.c mtrr.c nmi.c pci-dma.c pci-i386.c pci-i386.h pci-irq.c pci-pc.c pci-visws.c process.c ptrace.c semaphore.c setup.c signal.c smpboot.c smp.c sys_i386.c time.c trampoline.S traps.c visws_apic.c vm86.c > .depend

modul8r 22nd May 2007 18:29

Part 2:

make[4]: Leaving directory `/usr/src/linux/arch/i386/kernel'
/usr/bin/make -C arch/i386/mm fastdep
make[4]: Entering directory `/usr/src/linux/arch/i386/mm'
/usr/src/linux/scripts/mkdep -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -- extable.c fault.c init.c ioremap.c > .depend
make[4]: Leaving directory `/usr/src/linux/arch/i386/mm'
/usr/bin/make -C arch/i386/lib fastdep
make[4]: Entering directory `/usr/src/linux/arch/i386/lib'
/usr/src/linux/scripts/mkdep -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -- checksum.S dec_and_lock.c delay.c getuser.S iodebug.c memcpy.c mmx.c old-checksum.c strstr.c usercopy.c > .depend
make[4]: Leaving directory `/usr/src/linux/arch/i386/lib'
make[3]: Leaving directory `/usr/src/linux'
/usr/bin/make update-modverfile
make[3]: Entering directory `/usr/src/linux'
/usr/src/linux/include/linux/modversions.h was updated
make[3]: Leaving directory `/usr/src/linux'
make[2]: Leaving directory `/usr/src/linux'
make[1]: Leaving directory `/usr/src/linux'
/usr/bin/make \
ARCH=i386 clean
make[1]: Entering directory `/usr/src/linux'
make[2]: Entering directory `/usr/src/linux/arch/i386/boot'
rm -f tools/build
rm -f setup bootsect zImage compressed/vmlinux.out
rm -f bsetup bbootsect bzImage compressed/bvmlinux.out
make[3]: Entering directory `/usr/src/linux/arch/i386/boot/compressed'
rm -f vmlinux bvmlinux _tmp_*
make[3]: Leaving directory `/usr/src/linux/arch/i386/boot/compressed'
make[2]: Leaving directory `/usr/src/linux/arch/i386/boot'
find . \( -name '*.[oas]' -o -name core -o -name '.*.flags' \) -type f -print \
| grep -v lxdialog/ | xargs rm -f
rm -f kernel/ksyms.lst include/linux/compile.h vmlinux System.map .tmp* drivers/char/consolemap_deftbl.c drivers/video/promcon_tbl.c drivers/char/conmakehash drivers/char/drm/*-mod.c drivers/pci/devlist.h drivers/pci/classlist.h drivers/pci/gen-devlist drivers/zorro/devlist.h drivers/zorro/gen-devlist drivers/sound/bin2hex drivers/sound/hex2hex drivers/atm/fore200e_mkfirm drivers/atm/{pca,sba}*{.bin,.bin1,.bin2} drivers/scsi/aic7xxx/aicasm/aicasm_gram.c drivers/scsi/aic7xxx/aicasm/aicasm_scan.c drivers/scsi/aic7xxx/aicasm/y.tab.h drivers/scsi/aic7xxx/aicasm/aicasm drivers/scsi/53c700-mem.c net/khttpd/make_times_h net/khttpd/times.h submenu*
rm -rf modules
/usr/bin/make -C Documentation/DocBook clean
make[2]: Entering directory `/usr/src/linux/Documentation/DocBook'
rm -f core *~
rm -f wanbook.sgml z8530book.sgml mcabook.sgml videobook.sgml kernel-api.sgml parportbook.sgml kernel-hacking.sgml kernel-locking.sgml via-audio.sgml mousedrivers.sgml sis900.sgml deviceiobook.sgml procfs-guide.sgml tulip-user.sgml
rm -f wanbook.dvi z8530book.dvi mcabook.dvi videobook.dvi kernel-api.dvi parportbook.dvi kernel-hacking.dvi kernel-locking.dvi via-audio.dvi mousedrivers.dvi sis900.dvi deviceiobook.dvi procfs-guide.dvi tulip-user.dvi wanbook.aux z8530book.aux mcabook.aux videobook.aux kernel-api.aux parportbook.aux kernel-hacking.aux kernel-locking.aux via-audio.aux mousedrivers.aux sis900.aux deviceiobook.aux procfs-guide.aux tulip-user.aux wanbook.tex z8530book.tex mcabook.tex videobook.tex kernel-api.tex parportbook.tex kernel-hacking.tex kernel-locking.tex via-audio.tex mousedrivers.tex sis900.tex deviceiobook.tex procfs-guide.tex tulip-user.tex wanbook.log z8530book.log mcabook.log
videobook.log kernel-api.log parportbook.log kernel-hacking.log kernel-locking.log via-audio.log mousedrivers.log sis900.log deviceiobook.log procfs-guide.log tulip-user.log wanbook.out z8530book.out mcabook.out videobook.out kernel-api.out parportbook.out kernel-hacking.out kernel-locking.out via-audio.out mousedrivers.out sis900.out deviceiobook.out procfs-guide.out tulip-user.out
rm -f parport-share.png parport-multi.png parport-structure.png parport-share.eps parport-multi.eps parport-structure.eps
rm -f procfs_example.sgml
make[2]: Leaving directory `/usr/src/linux/Documentation/DocBook'
make[1]: Leaving directory `/usr/src/linux'
echo done > debian/stamp-kernel-conf
====== making target CONFIG-indep [new prereqs: conf.vars stamp-kernel-conf]======
This is kernel package version 10.067.
====== making target CONFIG/linux-source-2.4.17 [new prereqs: CONFIG-indep]======

====== making target CONFIG/linux-doc-2.4.17 [new prereqs: CONFIG-indep]======

====== making target CONFIG/linux-manual-2.4.17 [new prereqs: CONFIG-indep]======

====== making target stamp-configure-indep [new prereqs: linux-source-2.4.17 linux-doc-2.4.17 linux-manual-2.4.17]======
====== making target configure-indep [new prereqs: stamp-configure-indep]======
====== making target stamp-configure [new prereqs: configure-arch configure-indep]======
====== making target debian/stamp-build-kernel [new prereqs: sanity_check stamp-kernel-conf]======
This is kernel package version 10.067.
/usr/bin/make ARCH=i386 \
bzImage
make[1]: Entering directory `/usr/src/linux'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o init/main.o init/main.c
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c
/usr/bin/make CFLAGS="-D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 " -C kernel
make[2]: Entering directory `/usr/src/linux/kernel'
/usr/bin/make all_targets
make[3]: Entering directory `/usr/src/linux/kernel'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -fno-omit-frame-pointer -c -o sched.o sched.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o dma.o dma.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o fork.o fork.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c exec_domain.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o panic.o panic.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c printk.c

modul8r 22nd May 2007 18:30

Part 3:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o module.o module.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o exit.o exit.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o itimer.o itimer.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o info.o info.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o time.o time.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o softirq.o softirq.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o resource.o resource.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o sysctl.o sysctl.c
sysctl.c: In function `do_proc_dointvec':
sysctl.c:843: warning: use of cast expressions as lvalues is deprecated
sysctl.c: In function `proc_dointvec_minmax':
sysctl.c:996: warning: use of cast expressions as lvalues is deprecated
sysctl.c: In function `do_proc_doulongvec_minmax':
sysctl.c:1099: warning: use of cast expressions as lvalues is deprecated
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o acct.o acct.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o capability.o capability.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o ptrace.o ptrace.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o timer.o timer.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o user.o user.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c signal.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c sys.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c kmod.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c context.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o uid16.o uid16.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c ksyms.c
In file included from ksyms.c:50:
/usr/src/linux/include/asm/checksum.h:72:30: missing terminating " character
In file included from ksyms.c:50:
/usr/src/linux/include/asm/checksum.h: In function `ip_fast_csum':
/usr/src/linux/include/asm/checksum.h:73: error: syntax error before "movl"
/usr/src/linux/include/asm/checksum.h:75:17: invalid suffix "f" on integer constant
/usr/src/linux/include/asm/checksum.h:82:17: invalid suffix "b" on integer constant
/usr/src/linux/include/asm/checksum.h:90:13: missing terminating " character
/usr/src/linux/include/asm/checksum.h:105:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h: In function `csum_fold':
/usr/src/linux/include/asm/checksum.h:106: error: syntax error before "addl"
/usr/src/linux/include/asm/checksum.h:108:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h:121:13: missing terminating " character
/usr/src/linux/include/asm/checksum.h: In function `csum_tcpudp_nofold':
/usr/src/linux/include/asm/checksum.h:122: error: syntax error before "addl"
/usr/src/linux/include/asm/checksum.h:126:9: missing terminating " character
/usr/src/linux/include/asm/checksum.h:128: error: `__x' undeclared (first use in this function)
/usr/src/linux/include/asm/checksum.h:128: error: (Each undeclared identifier is reported only once
/usr/src/linux/include/asm/checksum.h:128: error: for each function it appears in.)
/usr/src/linux/include/asm/checksum.h: At top level:
/usr/src/linux/include/asm/checksum.h:128: error: syntax error before ')' token
/usr/src/linux/include/asm/checksum.h:161:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h: In function `csum_ipv6_magic':
/usr/src/linux/include/asm/checksum.h:162: error: syntax error before "addl"
/usr/src/linux/include/asm/checksum.h:173:17: missing terminating " character
/usr/src/linux/include/asm/checksum.h:176: error: `__x' undeclared (first use in this function)
/usr/src/linux/include/asm/checksum.h:176: warning: no return statement in function returning non-void
/usr/src/linux/include/asm/checksum.h: At top level:
/usr/src/linux/include/asm/checksum.h:176: error: syntax error before ')' token
/usr/src/linux/include/asm/checksum.h:176: error: syntax error before "__u32"
make[3]: *** [ksyms.o] Error 1
make[3]: Leaving directory `/usr/src/linux/kernel'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/kernel'
make[1]: *** [_dir_kernel] Error 2
make[1]: Leaving directory `/usr/src/linux'
make: *** [debian/stamp-build-kernel] Error 2
debian:/usr/src/linux#

falko 23rd May 2007 13:02

Quote:

Originally Posted by modul8r
In file included from ksyms.c:50:
/usr/src/linux/include/asm/checksum.h:72:30: missing terminating " character
In file included from ksyms.c:50:
/usr/src/linux/include/asm/checksum.h: In function `ip_fast_csum':
/usr/src/linux/include/asm/checksum.h:73: error: syntax error before "movl"

It seems to be a problem with your gcc version:
http://mirror.hamakor.org.il/archive...2003/2265.html
http://lists.debian.org/debian-user/.../msg02196.html
You can either try another gcc version or edit the /usr/src/linux/include/asm/checksum.h file.

modul8r 23rd May 2007 19:06

I tried both suggestions but neither are helping.

1. Regarding the suggestion to modify the checksum.h file, I did that and got further. I then had to also modify a floppy.h file the same way. Again, I got further until I ended up with a different error:

/usr/bin/make -C ide
make[3]: Entering directory `/usr/src/linux/drivers/ide'
/usr/bin/make all_targets
make[4]: Entering directory `/usr/src/linux/drivers/ide'
ld -m elf_i386 -r -o ide-mod.o ide.o ide-features.o cmd640.o ide-adma.o ide-dma.o ide-pci.o piix.o rz1000.o ide-proc.o
ld -m elf_i386 -r -o ide-probe-mod.o ide-probe.o ide-geometry.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o ide-cd.o ide-cd.c
In file included from ide-cd.c:318:
ide-cd.h:438: error: long, short, signed or unsigned used invalidly for `slot_tablelen'
make[4]: *** [ide-cd.o] Error 1
make[4]: Leaving directory `/usr/src/linux/drivers/ide'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux/drivers/ide'
make[2]: *** [_subdir_ide] Error 2
make[2]: Leaving directory `/usr/src/linux/drivers'
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory `/usr/src/linux'
make: *** [debian/stamp-build-kernel] Error 2

Not sure how to proceed here, as far as this "manually modify the files" route is concerned.

For what it's worth, here's the section in ide-cd.h that it's referring to:

#if defined(__BIG_ENDIAN_BITFIELD)
__u8 mech_state : 3;
__u8 door_open : 1;
__u8 reserved1 : 4;
#elif defined(__LITTLE_ENDIAN_BITFIELD)
__u8 reserved1 : 4;
__u8 door_open : 1;
__u8 mech_state : 3;
#else
#error "Please fix <asm/byteorder.h>"
#endif

byte curlba[3];
byte nslots;
__u8 short slot_tablelen;
};

2. It seems that using an older version of GCC would be easier, but I don't understand exactly how to do so. The suggestions on that mailing list aren't specific enough for a novice such as myself.

First example: "I think prepending "CC=gcc-2.95" to the command line ought to be enough."

Second example: "make bzImage CC=gcc-2.95"

Examples of syntax? I don't understand.

How exactly do I incorporate "use old GCC 2.95" with my command that's giving problems (fakeroot make-kpkg --revision=custom.1.0 kernel_image)?

Thanks again for all of your help. I appreciate it very much.

falko 24th May 2007 18:11

What's the output of
Code:

apt-cache search gcc
?


All times are GMT +2. The time now is 12:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.