Altera_Forum
Honored Contributor
20 years agomake erro when port app
hi all:
I make a app.I got some erro information. /home/alex/buildroot/build_nios2/staging_dir/bin-ccache/../lib/gcc/nios2-linux-uclibc/3.4.5/../../../../nios2-linux-uclibc/bin/ld.real: warning: cannot find entry symbol _start; defaulting to 00000000 webs.elf2flt(.text+0x30): In function `main': /home/alex/gahwebserver/ws031202/LINUX/main.c:76: undefined reference to `signal' webs.elf2flt(.text+0xec): In function `initWebs': /home/alex/gahwebserver/ws031202/LINUX/main.c:152: undefined reference to `gethostname' webs.elf2flt(.text+0x128):/home/alex/gahwebserver/ws031202/LINUX/main.c:156: undefined reference to `gethostbyname' webs.elf2flt(.text+0x17c):/home/alex/gahwebserver/ws031202/LINUX/main.c:160: undefined reference to `memcpy' webs.elf2flt(.text+0x18c):/home/alex/gahwebserver/ws031202/LINUX/main.c:168: undefined reference to `getcwd' webs.elf2flt(.text+0x19c):/home/alex/gahwebserver/ws031202/LINUX/main.c:169: undefined reference to `strrchr' webs.elf2flt(.text+0xfe4):../asp.c:315: global pointer relative offset -146128 at address 0x00000000 out of range -32678 to 32767 + exit 1 collect2: ld returned 1 exit status make: *** [webs] 错误 1 [alex@localhost LINUX]$ I think maybe my makefile is worng, CFLAGS = -DWEBS -DUEMF -DOS="LINUX" -DLINUX -Dfork=vfork -D__uClinux__ $(UMSW) $(DASW) $(SSLSW) $(IFMODSW) OTHERS = -DB_STATS -DB_FILL -DDEBUG DEBUG = -g -Wall IFLAGS = -I.. LDFLAGS = $(SSLLIB) $(IFMODLIB) -nostdlib -Wl,-elf2flt="-s 16000" -Wl,-v -Wl,-d who can help me? thanks a lot.