bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can't compile grub with network support


From: Patrick HARMEL
Subject: can't compile grub with network support
Date: Thu, 01 Sep 2005 16:04:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.10) Gecko/20050802 Debian/1.7.10-1

I'm trying to set up a boot floppy able to load a linux kernel and an initrd by the network (for installation purpose).
I get the sources (version 0.97), read the doc, and do.
at the top of the source tree, i first type:
./configure --enable-eepro100
then:
make
and get an error.

I check the required software but didn't noticed any problem.
I am using a Debian Sid distro

Here is information about required software

# dpkg -l |grep gcc
ii gcc 4.0.1-3 The GNU C compiler ii gcc-2.95 2.95.4-22 The GNU C compiler ii gcc-3.0 3.0.4-7 The GNU C compiler. ii gcc-3.0-base 3.0.4-16 The GNU Compiler Collection (base package) ii gcc-3.3 3.3.6-9 The GNU C compiler ii gcc-3.3-base 3.3.6-9 The GNU Compiler Collection (base package) ii gcc-3.4 3.4.4-8 The GNU C compiler ii gcc-3.4-base 3.4.4-8 The GNU Compiler Collection (base package) ii gcc-4.0 4.0.1-6 The GNU C compiler ii gcc-4.0-base 4.0.1-6 The GNU Compiler Collection (base package) ii libgcc1 4.0.1-6 GCC support library
/# dpkg -l |grep make
ii automake1.4 1.4-p6-9 A tool for generating GNU Standards-complian ii dh-make 0.40 tool that converts source archives into Debi ii make 3.80-11 The GNU version of the "make" utility. ii makedev 2.3.1-78 creates device files in /dev
/# dpkg -l |grep binutils
ii binutils 2.16.1-3 The GNU assembler, linker and binary utiliti

And the output of the try:

$ ./configure --enable-eepro100
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking whether optimization for size works... yes
checking whether gcc has -fno-stack-protector... no
checking whether -Wundef works... yes
checking whether -falign-loops works... yes
checking for objcopy... objcopy
checking if C symbols get an underscore after compilation... no
checking whether objcopy works for absolute addresses... yes
checking whether addr32 must be in the same line as the instruction... yes
checking for .code16 addr32 assembler support... yes
checking whether an absolute indirect call/jump must not be prefixed with an asterisk... no
checking if start is defined by the compiler... no
checking if _start is defined by the compiler... yes
checking if __bss_start is defined by the compiler... yes
checking if _edata is defined by the compiler... yes
checking if edata is defined by the compiler... yes
checking if end is defined by the compiler... yes
checking if _end is defined by the compiler... yes
checking for opendisk in -lutil... no
checking for wgetch in -lncurses... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating stage1/Makefile
config.status: creating stage2/Makefile
config.status: creating docs/Makefile
config.status: creating lib/Makefile
config.status: creating util/Makefile
config.status: creating grub/Makefile
config.status: creating netboot/Makefile
config.status: creating util/grub-image
config.status: creating util/grub-install
config.status: creating util/grub-md5-crypt
config.status: creating util/grub-terminfo
config.status: creating util/grub-set-default
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

$ make
make  all-recursive
make[1]: Entering directory `/home/pharmel/download/grub/grub-0.97'
Making all in netboot
make[2]: Entering directory `/home/pharmel/download/grub/grub-0.97/netboot'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage2 -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -Os -fno-builtin -nostdinc -DFSYS_TFTP=1 -DINCLUDE_EEPRO100=1 -DCONGESTED=1 -DNE_SCAN=0x280,0x300,0x320,0x340 -DWD_DEFAULT_MEM=0xCC000 -g -MT libdrivers_a-config.o -MD -MP -MF ".deps/libdrivers_a-config.Tpo" -c -o libdrivers_a-config.o `test -f 'config.c' || echo './'`config.c; \ then mv -f ".deps/libdrivers_a-config.Tpo" ".deps/libdrivers_a-config.Po"; else rm -f ".deps/libdrivers_a-config.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage2 -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -Os -fno-builtin -nostdinc -DFSYS_TFTP=1 -DINCLUDE_EEPRO100=1 -DCONGESTED=1 -DNE_SCAN=0x280,0x300,0x320,0x340 -DWD_DEFAULT_MEM=0xCC000 -g -MT libdrivers_a-fsys_tftp.o -MD -MP -MF ".deps/libdrivers_a-fsys_tftp.Tpo" -c -o libdrivers_a-fsys_tftp.o `test -f 'fsys_tftp.c' || echo './'`fsys_tftp.c; \ then mv -f ".deps/libdrivers_a-fsys_tftp.Tpo" ".deps/libdrivers_a-fsys_tftp.Po"; else rm -f ".deps/libdrivers_a-fsys_tftp.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage2 -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -Os -fno-builtin -nostdinc -DFSYS_TFTP=1 -DINCLUDE_EEPRO100=1 -DCONGESTED=1 -DNE_SCAN=0x280,0x300,0x320,0x340 -DWD_DEFAULT_MEM=0xCC000 -g -MT libdrivers_a-main.o -MD -MP -MF ".deps/libdrivers_a-main.Tpo" -c -o libdrivers_a-main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/libdrivers_a-main.Tpo" ".deps/libdrivers_a-main.Po"; else rm -f ".deps/libdrivers_a-main.Tpo"; exit 1; fi main.c:57: error: static declaration of 'bootp_data' follows non-static declaration
./etherboot.h:534: error: previous declaration of 'bootp_data' was here
main.c:59: error: static declaration of 'end_of_rfc1533' follows non-static declaration
./etherboot.h:536: error: previous declaration of 'end_of_rfc1533' was here
main.c: In function 'udp_transmit':
main.c:231: warning: pointer targets in passing argument 1 of 'eth_transmit' differ in signedness main.c:276: warning: pointer targets in passing argument 1 of 'eth_transmit' differ in signedness main.c:290: warning: pointer targets in passing argument 1 of 'eth_transmit' differ in signedness
main.c: In function 'tftp':
main.c:462: warning: pointer targets in passing argument 1 of 'fnc' differ in signedness
main.c: In function 'rarp':
main.c:509: warning: pointer targets in passing argument 1 of 'eth_transmit' differ in signedness
main.c: In function 'await_reply':
main.c:893: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness main.c:895: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness main.c:925: warning: pointer targets in passing argument 1 of 'decode_rfc1533' differ in signedness
main.c: In function 'decode_rfc1533':
main.c:973: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness main.c:973: warning: pointer targets in passing argument 2 of 'grub_memcmp' differ in signedness main.c:984: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness main.c:984: warning: pointer targets in passing argument 2 of 'grub_memcmp' differ in signedness main.c:1057: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness main.c:1057: warning: pointer targets in passing argument 2 of 'grub_memcmp' differ in signedness
make[2]: *** [libdrivers_a-main.o] Erreur 1
make[2]: Leaving directory `/home/pharmel/download/grub/grub-0.97/netboot'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/pharmel/download/grub/grub-0.97'
make: *** [all] Erreur 2


Thank you for help

Attachment: p.harmel.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]