compile error after adding applets
walter harms
wharms at bfs.de
Mon Mar 20 10:34:42 UTC 2006
Hi jyson,
you are trying to create an applet, right ?
your applet needs libncurses. You do not ship ncurses because its to
large for your floppy.
When linking the applet ld complains about not finding:
mvwprintw, right.
You use functions located in libncurses since you do not provide
ncurses, you can not link (or use it). So whats the problem ?
there are some older linux-floppy distributions out there (e.g.
mulinux). take a look at them. busybox can and will not provide a
libncurses replacement, sorry.
(perhaps using a shell script will help you out).
re,
walter
손지연 wrote:
> Hi dear.
>
>
>
> I'm tring to add my applets to busybox.
>
> I use busybox-0.60.5
>
> because I want to make a bootable floppy disk, so I need to reduce file size.
>
> my applet includes *ncurses.h* and It has to contain *libncurses.a* library in
> the bootable floppy.
>
> but due to size of libncurses I can't contain libncurses.a .
>
> so I compiled busybox with --static -DNCURSES-STATIC -lmenu -lncurses
>
> This is a part of Makefile.
>
>
>
> *# If you want a static binary, turn this on.
> DOSTATIC = true
> ....*
>
> *ifeq ($(strip $(DOSTATIC)),true)
> LDFLAGS += --static -DNCURSES_STATIC -lmenu -lncurses*
>
>
>
> I changed bellow files
>
> _Config.h, applets.h, usage.h, and Makefile_
>
> next, I typed "make"
>
> but so many error messages occure.
>
> during debugging I found if I simply remove the my applet in Config.h It's
> succeed !!
>
> what's the problem ?
>
> I can't solve this for a month!
>
> This is very important for me ! I have to solve this to this Wednesday.
>
> Please anybody help me
>
>
>
> This is the error messages.
>
> .................
>
> ede.o(.text+0x14f7): more undefined references to `mvwprintw' follow
> ede.o(.text+0x15e7): In function `ede_gui_status':
> : undefined reference to `werase'
> ede.o(.text+0x1605): In function `ede_gui_status':
> : undefined reference to `stdscr'
> ede.o(.text+0x160a): In function `ede_gui_status':
> : undefined reference to `wgetch'
> ede.o(.text+0x17d7): In function `ede_gui_status':
> : undefined reference to `mvwprintw'
> ede.o(.text+0x18ca): In function `ede_gui_status':
> : undefined reference to `wprintw'
> ede.o(.text+0x1a85): In function `ede_gui_status':
> : undefined reference to `wrefresh'
> ede.o(.text+0x1d9a): In function `ede_gui_select_focus_on':
> : undefined reference to `has_colors'
> ede.o(.text+0x1dae): In function `ede_gui_select_focus_on':
> : undefined reference to `wbkgdset'
> ede.o(.text+0x1dc0): In function `ede_gui_select_focus_on':
> : undefined reference to `wattr_on'
> ede.o(.text+0x1dc9): In function `ede_gui_select_focus_off':
> : undefined reference to `has_colors'
> : undefined reference to `wattr_on'
> ede.o(.text+0x1e72): In function `ede_gui_select_draw':
> : undefined reference to `werase'
> ede.o(.text+0x1e7d): In function `ede_gui_select_draw':
> : undefined reference to `werase'
> ede.o(.text+0x1e99): In function `ede_gui_select_draw':
> : undefined reference to `wrefresh'
> ede.o(.text+0x1eff): In function `ede_gui_select_draw':
> : undefined reference to `mvwprintw'
> ede.o(.text+0x20be): In function `ede_gui_method_draw':
> : undefined reference to `werase'
> ede.o(.text+0x20df): In function `ede_gui_method_draw':
> : undefined reference to `mvwprintw'
> ...............................
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
More information about the busybox
mailing list