[Bug 6920] New: Compiling busybox (make menuconfig) if ncurses is in nonstandard path

bugzilla at busybox.net bugzilla at busybox.net
Mon Feb 24 13:37:25 UTC 2014


https://bugs.busybox.net/show_bug.cgi?id=6920

           Summary: Compiling busybox (make menuconfig) if ncurses is in
                    nonstandard path
           Product: Busybox
           Version: 1.22.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: dusan.halicky at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


I have ncurses installed in /opt/ncurses/5.9-1/, when I issue "make menuconfig"
in busybox 1.22.1, I get this error:

  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  In file included from scripts/kconfig/lxdialog/checklist.c:24:0:
  scripts/kconfig/lxdialog/dialog.h:31:20: fatal error: curses.h: No such file
or directory
  compilation terminated.
  make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
  make[1]: *** [menuconfig] Error 2
  make: *** [menuconfig] Error 2

I try to set CFLAGS but it had no effect:

  export CFLAGS="-I/opt/ncurses/5.9-1/include/ncurses -DCURSES_LOC=<ncurses.h>"
  make menuconfig
  ... same error

I changed busybox-1.22.1/scripts/kconfig/lxdialog/Makefile like this:

  HOST_EXTRACFLAGS += -DLOCALE -I/opt/ncurses/5.9-1/include/ncurses
  HOST_LOADLIBES   += -ltinfo -lncurses -L/opt/ncurses/5.9-1/lib/

And in dialog.h I have to change #include CURSES_LOC to:

  #include <ncurses.h>

Now it compiles lxdialog binary, and I can see busybox ncurses configuration
screens.

In busybox-1.22.1/scripts/kconfig/lxdialog/Makefile, there is -ccflags instead
of -cflags, I'm not sure if that is the problem, I tried to change it but it
didn't help. I don't know why -DCURSES_LOC=<ncurses.h> doesn't work either, I
have to change it in dialog.h.

Bug: "make menuconfig" should accept CFLAGS and LDFLAGS.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list