Re: [Etherboot-developers] Fwd: Error in make
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Ken Y. <ke...@nl...> - 2001-03-06 23:26:39
|
|later on we get: | | gcc -O2 -o bin/makerom makerom.c | ld -N -Ttext 0x94000 -e _start -o bin32/3c90x.tmp bin32/start32.o |bin32/config-3c90x.o bin32/3c90x.o bin32/pci.o bin32/bootlib.a | bin32/bootlib.a(ansiesc.o): In function `docommand': | /tmp/ROM12QbeH/ansiesc.c:172: undefined reference to `tftp' | make: *** [bin32/3c90x.tmp] Error 1 | make: Leaving directory `/tmp/ROM12QbeH' | |One structural thought I had was to perhaps put the tftp code that is |currently in main.c into its own file "tftp.c" much like the nfs code is |in "nfs.c", for modularity. We'd still need function prototypes, of |course. | |Anyway, the option "-DANSIESC" seemed to trigger the problem. Before I |get too deep into debugging it, does anybody else want to give it a go? This looks like my booboo, being too zealous in making functions static. In main.c, remove static from the tftp function. Add a function prototype for tftp() to etherboot.h. nfs() looks ok. If you want to go ahead and hack, send me the patches, or I'll do it tonight for the next release. |