[Nix-dev] generating a kernel .config

Lluís Batlle viriketo at gmail.com
Mon Jun 15 16:34:07 CEST 2009


The gcc command under nix should be a wrapper for it to work, and I
think the gcc in your path is no exception. It cooks the command line
for the usual gcc, considering nix paths. Sometimes I look at it to
refresh my memory regarding what it does. Some time take a look at it,
that's where the NIX_*FLAGS are used.

less `which gcc`

2009/6/15 Tony White <tonywhite100 at googlemail.com>:
> 2009/6/15 Lluís Batlle <viriketo at gmail.com>:
>> Add "-lncurses" to NIX_LDFLAGS. I think it's the library not being linked.
>> Regards,
>> Lluís.
>>
>> 2009/6/15 Tony White <tonywhite100 at googlemail.com>:
>>> 2009/6/15 Michael Raskin <7c6f434c at mail.ru>:
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Tony White wrote:
>>>>> Hi,
>>>>> Does anyone have a method to use to generate a .config using
>>>>> menuconfig? (The ncurses kernel config frontend.)
>>>>
>>>> nix-build /etc/nixos/nixpkgs -A ncurses -o $HOME/ncurses
>>>> export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$HOME/ncurses/include"
>>>> export NIX_LDFLAGS="$NIX_LDFLAGS -L$HOME/ncurses/lib"
>>>> cd linux-src
>>>> make menuconfig
>>>>
>>>> Replace $HOME with wherever you want your ncurses symlink
>>>> -----BEGIN PGP SIGNATURE-----
>>>> Version: GnuPG v2.0.11 (GNU/Linux)
>>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>>>
>>>> iQEcBAEBAgAGBQJKNkw1AAoJEE6tnN0aWvw35RUH/22YWXu2w7k28U2KQNuDjpni
>>>> GrUYVRBkMv/Uj1W4P/zBLrPgc17wIppytao8H+w8/UiO/0ttH71kx4JXGkSvsg/4
>>>> z9LlrLOG2FS/J24zKdxWaOeQ4ezet8CzFboAv8qxNDu68p5Wbmko3wumCrsr3Yhp
>>>> PVVijwq2+tQ4Dq5h7eouQKPTLkcSukHNmSqNeHQ65Mp/z+5nVKo3PUG/AzUd7S+H
>>>> gXB45Tziq/KsTEKSVsPVCKZF4kBY7IT+z6Z/yo9EqADsvBN3sOcYeRLAJkhyGzmG
>>>> nt45f0X1G/6Q18rexH7Y9aI0X3pG9A287/md4YJZUz1cAf0TLDILdWhuV/ftItc=
>>>> =bS8p
>>>> -----END PGP SIGNATURE-----
>>>>
>>>
>>> Thanks Michael,
>>>
>>> Thanks for the reply, I'm still not getting there yet, He's what I can see :
>>>
>>> nix-build /etc/nixos/nixpkgs -A ncurses -o $HOME/ncurses
>>> export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$HOME/ncurses/include"
>>> export NIX_LDFLAGS="$NIX_LDFLAGS -L$HOME/ncurses/lib"
>>> cd linux-2.6.30
>>> make menuconfig
>>>  HOSTLD  scripts/kconfig/mconf
>>> scripts/kconfig/mconf.o: In function `main':
>>> mconf.c:(.text+0x18d8): undefined reference to `stdscr'
>>> scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
>>> checklist.c:(.text+0x3d): undefined reference to `wmove'
>>> checklist.c:(.text+0x56): undefined reference to `acs_map'
>>> checklist.c:(.text+0x62): undefined reference to `waddch'
>>> checklist.c:(.text+0x7a): undefined reference to `waddnstr'
>>> checklist.c:(.text+0x8e): undefined reference to `wmove'
>>> checklist.c:(.text+0xb8): undefined reference to `acs_map'
>>> checklist.c:(.text+0xc4): undefined reference to `waddch'
>>> checklist.c:(.text+0xc9): undefined reference to `acs_map'
>>> checklist.c:(.text+0xd5): undefined reference to `waddch'
>>> checklist.c:(.text+0xda): undefined reference to `acs_map'
>>> checklist.c:(.text+0xe6): undefined reference to `waddch'
>>> checklist.c:(.text+0xeb): undefined reference to `acs_map'
>>> checklist.c:(.text+0x119): undefined reference to `acs_map'
>>> checklist.c:(.text+0x125): undefined reference to `waddch'
>>> checklist.c:(.text+0x12a): undefined reference to `acs_map'
>>> checklist.c:(.text+0x136): undefined reference to `waddch'
>>> checklist.c:(.text+0x13b): undefined reference to `acs_map'
>>> checklist.c:(.text+0x147): undefined reference to `waddch'
>>> checklist.c:(.text+0x14c): undefined reference to `acs_map'
>>> checklist.c:(.text+0x158): undefined reference to `waddch'
>>> checklist.c:(.text+0x171): undefined reference to `acs_map'
>>> checklist.c:(.text+0x17d): undefined reference to `waddch'
>>> scripts/kconfig/lxdialog/checklist.o: In function `print_item':
>>> checklist.c:(.text+0x1d5): undefined reference to `wmove'
>>> checklist.c:(.text+0x1f7): undefined reference to `waddch'
>>> checklist.c:(.text+0x214): undefined reference to `wmove'
>>> checklist.c:(.text+0x250): undefined reference to `wprintw'
>>> checklist.c:(.text+0x276): undefined reference to `wmove'
>>> checklist.c:(.text+0x28f): undefined reference to `waddch'
>>> checklist.c:(.text+0x2b7): undefined reference to `waddnstr'
>>> checklist.c:(.text+0x2cf): undefined reference to `wmove'
>>> checklist.c:(.text+0x2d7): undefined reference to `wrefresh'
>>> checklist.c:(.text+0x308): undefined reference to `waddnstr'
>>> scripts/kconfig/lxdialog/checklist.o: In function `print_buttons':
>>> checklist.c:(.text+0x3e3): undefined reference to `wmove'
>>> scripts/kconfig/lxdialog/checklist.o: In function `dialog_checklist':
>>> checklist.c:(.text+0x4c6): undefined reference to `stdscr'
>>> checklist.c:(.text+0x519): undefined reference to `COLS'
>>> checklist.c:(.text+0x52e): undefined reference to `LINES'
>>> checklist.c:(.text+0x557): undefined reference to `stdscr'
>>> checklist.c:(.text+0x57b): undefined reference to `newwin'
>>> checklist.c:(.text+0x58f): undefined reference to `keypad'
>>> checklist.c:(.text+0x5f4): undefined reference to `wmove'
>>> checklist.c:(.text+0x5fe): undefined reference to `acs_map'
>>> checklist.c:(.text+0x60e): undefined reference to `waddch'
>>> checklist.c:(.text+0x621): undefined reference to `acs_map'
>>> checklist.c:(.text+0x634): undefined reference to `waddch'
>>> checklist.c:(.text+0x649): undefined reference to `acs_map'
>>> checklist.c:(.text+0x655): undefined reference to `waddch'
>>> checklist.c:(.text+0x6d9): undefined reference to `subwin'
>>> checklist.c:(.text+0x6ed): undefined reference to `keypad'
>>> checklist.c:(.text+0x87c): undefined reference to `wnoutrefresh'
>>> checklist.c:(.text+0x888): undefined reference to `wnoutrefresh'
>>> checklist.c:(.text+0x88d): undefined reference to `doupdate'
>>> checklist.c:(.text+0x8b2): undefined reference to `wgetch'
>>> checklist.c:(.text+0x9d6): undefined reference to `wnoutrefresh'
>>> checklist.c:(.text+0x9e2): undefined reference to `wrefresh'
>>> checklist.c:(.text+0x9f9): undefined reference to `delwin'
>>> checklist.c:(.text+0xa05): undefined reference to `delwin'
>>> checklist.c:(.text+0xa89): undefined reference to `scrollok'
>>> checklist.c:(.text+0xa9d): undefined reference to `wscrl'
>>> checklist.c:(.text+0xab1): undefined reference to `scrollok'
>>> checklist.c:(.text+0xb16): undefined reference to `wnoutrefresh'
>>> checklist.c:(.text+0xb22): undefined reference to `wrefresh'
>>> checklist.c:(.text+0xbd1): undefined reference to `doupdate'
>>> checklist.c:(.text+0xc5f): undefined reference to `doupdate'
>>> checklist.c:(.text+0xcd3): undefined reference to `delwin'
>>> checklist.c:(.text+0xcdf): undefined reference to `delwin'
>>> checklist.c:(.text+0xd26): undefined reference to `delwin'
>>> checklist.c:(.text+0xd32): undefined reference to `delwin'
>>> checklist.c:(.text+0xd61): undefined reference to `doupdate'
>>> checklist.c:(.text+0xdcc): undefined reference to `scrollok'
>>> checklist.c:(.text+0xde0): undefined reference to `wscrl'
>>> checklist.c:(.text+0xdf4): undefined reference to `scrollok'
>>> checklist.c:(.text+0xe5f): undefined reference to `wnoutrefresh'
>>> checklist.c:(.text+0xe6b): undefined reference to `wrefresh'
>>> checklist.c:(.text+0xe96): undefined reference to `doupdate'
>>> checklist.c:(.text+0xef0): undefined reference to `wrefresh'
>>> checklist.c:(.text+0xef5): undefined reference to `doupdate'
>>> scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
>>> checklist.c:(.text+0x10b): undefined reference to `waddch'
>>> checklist.c:(.text+0x1a9): undefined reference to `waddnstr'
>>> scripts/kconfig/lxdialog/checklist.o: In function `print_buttons':
>>> checklist.c:(.text+0x403): undefined reference to `wrefresh'
>>> scripts/kconfig/lxdialog/util.o: In function `on_key_esc':
>>> util.c:(.text+0x806): undefined reference to `nodelay'
>>> util.c:(.text+0x816): undefined reference to `keypad'
>>> util.c:(.text+0x81e): undefined reference to `wgetch'
>>> util.c:(.text+0x828): undefined reference to `wgetch'
>>> util.c:(.text+0x834): undefined reference to `wgetch'
>>> util.c:(.text+0x849): undefined reference to `nodelay'
>>> util.c:(.text+0x859): undefined reference to `keypad'
>>> util.c:(.text+0x881): undefined reference to `ungetch'
>>> scripts/kconfig/lxdialog/util.o: In function `draw_box':
>>> util.c:(.text+0x9a7): undefined reference to `wmove'
>>> util.c:(.text+0x9d2): undefined reference to `acs_map'
>>> util.c:(.text+0x9de): undefined reference to `waddch'
>>> util.c:(.text+0xa50): undefined reference to `waddch'
>>> util.c:(.text+0xa7e): undefined reference to `acs_map'
>>> util.c:(.text+0xa8a): undefined reference to `waddch'
>>> util.c:(.text+0xaa6): undefined reference to `acs_map'
>>> util.c:(.text+0xab2): undefined reference to `waddch'
>>> util.c:(.text+0xac6): undefined reference to `acs_map'
>>> util.c:(.text+0xad2): undefined reference to `waddch'
>>> util.c:(.text+0xae6): undefined reference to `acs_map'
>>> util.c:(.text+0xaf2): undefined reference to `waddch'
>>> util.c:(.text+0xb06): undefined reference to `acs_map'
>>> util.c:(.text+0xb12): undefined reference to `waddch'
>>> util.c:(.text+0xb26): undefined reference to `acs_map'
>>> util.c:(.text+0xb32): undefined reference to `waddch'
>>> util.c:(.text+0xb46): undefined reference to `acs_map'
>>> util.c:(.text+0xb52): undefined reference to `waddch'
>>> scripts/kconfig/lxdialog/util.o: In function `draw_shadow':
>>> util.c:(.text+0xb84): undefined reference to `has_colors'
>>> util.c:(.text+0xbba): undefined reference to `wmove'
>>> util.c:(.text+0xbcf): undefined reference to `winch'
>>> util.c:(.text+0xbe0): undefined reference to `waddch'
>>> util.c:(.text+0xc07): undefined reference to `wmove'
>>> util.c:(.text+0xc0f): undefined reference to `winch'
>>> util.c:(.text+0xc20): undefined reference to `waddch'
>>> util.c:(.text+0xc28): undefined reference to `winch'
>>> util.c:(.text+0xc39): undefined reference to `waddch'
>>> scripts/kconfig/lxdialog/util.o: In function `print_title':
>>> util.c:(.text+0xcc0): undefined reference to `wmove'
>>> util.c:(.text+0xcd5): undefined reference to `waddch'
>>> util.c:(.text+0xce9): undefined reference to `wmove'
>>> util.c:(.text+0xcfe): undefined reference to `waddnstr'
>>> scripts/kconfig/lxdialog/util.o: In function `print_button':
>>> util.c:(.text+0xd77): undefined reference to `wmove'
>>> util.c:(.text+0xda6): undefined reference to `waddnstr'
>>> util.c:(.text+0xdf7): undefined reference to `waddch'
>>> util.c:(.text+0xe1e): undefined reference to `waddch'
>>> util.c:(.text+0xe3d): undefined reference to `waddnstr'
>>> util.c:(.text+0xe5d): undefined reference to `waddnstr'
>>> util.c:(.text+0xe9b): undefined reference to `waddch'
>>> util.c:(.text+0xeba): undefined reference to `waddnstr'
>>> scripts/kconfig/lxdialog/util.o: In function `print_autowrap':
>>> util.c:(.text+0xff1): undefined reference to `wmove'
>>> util.c:(.text+0x1010): undefined reference to `waddnstr'
>>> util.c:(.text+0x10f5): undefined reference to `wmove'
>>> util.c:(.text+0x1110): undefined reference to `waddnstr'
>>> scripts/kconfig/lxdialog/util.o: In function `end_dialog':
>>> util.c:(.text+0x1134): undefined reference to `stdscr'
>>> util.c:(.text+0x113c): undefined reference to `wmove'
>>> util.c:(.text+0x1141): undefined reference to `stdscr'
>>> util.c:(.text+0x1149): undefined reference to `wrefresh'
>>> scripts/kconfig/lxdialog/util.o: In function `init_one_color':
>>> util.c:(.text+0x1188): undefined reference to `init_pair'
>>> scripts/kconfig/lxdialog/util.o: In function `attr_clear':
>>> util.c:(.text+0x11f8): undefined reference to `wmove'
>>> util.c:(.text+0x1217): undefined reference to `waddch'
>>> scripts/kconfig/lxdialog/util.o: In function `dialog_clear':
>>> util.c:(.text+0x126e): undefined reference to `COLS'
>>> util.c:(.text+0x1277): undefined reference to `LINES'
>>> util.c:(.text+0x1280): undefined reference to `stdscr'
>>> util.c:(.text+0x129a): undefined reference to `stdscr'
>>> util.c:(.text+0x12bb): undefined reference to `wmove'
>>> util.c:(.text+0x12c5): undefined reference to `stdscr'
>>> util.c:(.text+0x12dd): undefined reference to `wmove'
>>> util.c:(.text+0x12e3): undefined reference to `COLS'
>>> util.c:(.text+0x12f1): undefined reference to `acs_map'
>>> util.c:(.text+0x12fd): undefined reference to `stdscr'
>>> util.c:(.text+0x1305): undefined reference to `waddch'
>>> util.c:(.text+0x130a): undefined reference to `COLS'
>>> util.c:(.text+0x1316): undefined reference to `stdscr'
>>> util.c:(.text+0x131e): undefined reference to `wnoutrefresh'
>>> util.c:(.text+0x133a): undefined reference to `stdscr'
>>> util.c:(.text+0x1342): undefined reference to `waddnstr'
>>> scripts/kconfig/lxdialog/util.o: In function `init_dialog':
>>> util.c:(.text+0x1377): undefined reference to `initscr'
>>> util.c:(.text+0x137d): undefined reference to `stdscr'
>>> util.c:(.text+0x139e): undefined reference to `endwin'
>>> util.c:(.text+0x177e): undefined reference to `has_colors'
>>> util.c:(.text+0x18b1): undefined reference to `stdscr'
>>> util.c:(.text+0x18c1): undefined reference to `keypad'
>>> util.c:(.text+0x18c6): undefined reference to `cbreak'
>>> util.c:(.text+0x18cb): undefined reference to `noecho'
>>> util.c:(.text+0x1911): undefined reference to `start_color'
>>> scripts/kconfig/lxdialog/util.o: In function `draw_shadow':
>>> util.c:(.text+0xc4d): undefined reference to `wnoutrefresh'
>>> scripts/kconfig/lxdialog/util.o: In function `print_title':
>>> util.c:(.text+0xd22): undefined reference to `waddch'
>>> scripts/kconfig/lxdialog/util.o: In function `print_button':
>>> util.c:(.text+0xe81): undefined reference to `wmove'
>>> scripts/kconfig/lxdialog/util.o: In function `end_dialog':
>>> util.c:(.text+0x1151): undefined reference to `endwin'
>>> scripts/kconfig/lxdialog/util.o: In function `attr_clear':
>>> util.c:(.text+0x124f): undefined reference to `wtouchln'
>>> scripts/kconfig/lxdialog/inputbox.o: In function `print_buttons':
>>> inputbox.c:(.text+0xc3): undefined reference to `wmove'
>>> scripts/kconfig/lxdialog/inputbox.o: In function `dialog_inputbox':
>>> inputbox.c:(.text+0x148): undefined reference to `stdscr'
>>> inputbox.c:(.text+0x186): undefined reference to `COLS'
>>> inputbox.c:(.text+0x19d): undefined reference to `LINES'
>>> inputbox.c:(.text+0x1e1): undefined reference to `newwin'
>>> inputbox.c:(.text+0x1f3): undefined reference to `keypad'
>>> inputbox.c:(.text+0x250): undefined reference to `wmove'
>>> inputbox.c:(.text+0x25a): undefined reference to `acs_map'
>>> inputbox.c:(.text+0x266): undefined reference to `waddch'
>>> inputbox.c:(.text+0x279): undefined reference to `acs_map'
>>> inputbox.c:(.text+0x288): undefined reference to `waddch'
>>> inputbox.c:(.text+0x299): undefined reference to `acs_map'
>>> inputbox.c:(.text+0x2a5): undefined reference to `waddch'
>>> inputbox.c:(.text+0x35d): undefined reference to `wmove'
>>> inputbox.c:(.text+0x3e7): undefined reference to `waddch'
>>> inputbox.c:(.text+0x404): undefined reference to `wmove'
>>> inputbox.c:(.text+0x40c): undefined reference to `wrefresh'
>>> inputbox.c:(.text+0x41d): undefined reference to `wgetch'
>>> inputbox.c:(.text+0x489): undefined reference to `delwin'
>>> inputbox.c:(.text+0x546): undefined reference to `wmove'
>>> inputbox.c:(.text+0x552): undefined reference to `waddch'
>>> inputbox.c:(.text+0x55e): undefined reference to `wrefresh'
>>> inputbox.c:(.text+0x620): undefined reference to `wmove'
>>> inputbox.c:(.text+0x657): undefined reference to `waddch'
>>> inputbox.c:(.text+0x6e1): undefined reference to `delwin'
>>> inputbox.c:(.text+0x784): undefined reference to `waddnstr'
>>> inputbox.c:(.text+0x7dd): undefined reference to `wmove'
>>> inputbox.c:(.text+0x7e5): undefined reference to `wrefresh'
>>> inputbox.c:(.text+0x804): undefined reference to `delwin'
>>> inputbox.c:(.text+0x82b): undefined reference to `delwin'
>>> inputbox.c:(.text+0x8b4): undefined reference to `delwin'
>>> inputbox.c:(.text+0x911): undefined reference to `wmove'
>>> inputbox.c:(.text+0x926): undefined reference to `waddch'
>>> inputbox.c:(.text+0x93a): undefined reference to `wmove'
>>> inputbox.c:(.text+0x942): undefined reference to `wrefresh'
>>> inputbox.c:(.text+0x972): undefined reference to `flash'
>>> inputbox.c:(.text+0x99b): undefined reference to `wmove'
>>> inputbox.c:(.text+0x9c7): undefined reference to `waddch'
>>> scripts/kconfig/lxdialog/inputbox.o: In function `print_buttons':
>>> inputbox.c:(.text+0xe3): undefined reference to `wrefresh'
>>> scripts/kconfig/lxdialog/textbox.o: In function `print_line':
>>> textbox.c:(.text+0x175): undefined reference to `wmove'
>>> textbox.c:(.text+0x185): undefined reference to `waddch'
>>> textbox.c:(.text+0x1a5): undefined reference to `waddnstr'
>>> textbox.c:(.text+0x1ad): undefined reference to `wclrtoeol'
>>> scripts/kconfig/lxdialog/textbox.o: In function `print_position':
>>> textbox.c:(.text+0x1ec): undefined reference to `wbkgdset'
>>> textbox.c:(.text+0x22d): undefined reference to `wmove'
>>> textbox.c:(.text+0x241): undefined reference to `wprintw'
>>> scripts/kconfig/lxdialog/textbox.o: In function `refresh_text_box':
>>> textbox.c:(.text+0x2bf): undefined reference to `wnoutrefresh'
>>> textbox.c:(.text+0x2e4): undefined reference to `wmove'
>>> scripts/kconfig/lxdialog/textbox.o: In function `dialog_textbox':
>>> textbox.c:(.text+0x309): undefined reference to `stdscr'
>>> textbox.c:(.text+0x39f): undefined reference to `delwin'
>>> textbox.c:(.text+0x3a7): undefined reference to `delwin'
>>> textbox.c:(.text+0x3b2): undefined reference to `stdscr'
>>> textbox.c:(.text+0x3fe): undefined reference to `COLS'
>>> textbox.c:(.text+0x412): undefined reference to `LINES'
>>> textbox.c:(.text+0x458): undefined reference to `newwin'
>>> textbox.c:(.text+0x46a): undefined reference to `keypad'
>>> textbox.c:(.text+0x498): undefined reference to `subwin'
>>> textbox.c:(.text+0x4b9): undefined reference to `wbkgdset'
>>> textbox.c:(.text+0x4cd): undefined reference to `keypad'
>>> textbox.c:(.text+0x52a): undefined reference to `wmove'
>>> textbox.c:(.text+0x534): undefined reference to `acs_map'
>>> textbox.c:(.text+0x540): undefined reference to `waddch'
>>> textbox.c:(.text+0x551): undefined reference to `acs_map'
>>> textbox.c:(.text+0x560): undefined reference to `waddch'
>>> textbox.c:(.text+0x57f): undefined reference to `wbkgdset'
>>> textbox.c:(.text+0x584): undefined reference to `acs_map'
>>> textbox.c:(.text+0x590): undefined reference to `waddch'
>>> textbox.c:(.text+0x5ff): undefined reference to `wnoutrefresh'
>>> textbox.c:(.text+0x67e): undefined reference to `wgetch'
>>> textbox.c:(.text+0x738): undefined reference to `delwin'
>>> textbox.c:(.text+0x740): undefined reference to `delwin'
>>> textbox.c:(.text+0x7c6): undefined reference to `scrollok'
>>> textbox.c:(.text+0x7da): undefined reference to `wscrl'
>>> textbox.c:(.text+0x7ee): undefined reference to `scrollok'
>>> textbox.c:(.text+0x80b): undefined reference to `wnoutrefresh'
>>> textbox.c:(.text+0x82a): undefined reference to `wmove'
>>> textbox.c:(.text+0x832): undefined reference to `wrefresh'
>>> textbox.c:(.text+0x932): undefined reference to `scrollok'
>>> textbox.c:(.text+0x946): undefined reference to `wscrl'
>>> textbox.c:(.text+0x95a): undefined reference to `scrollok'
>>> textbox.c:(.text+0x98f): undefined reference to `wnoutrefresh'
>>> textbox.c:(.text+0x9e9): undefined reference to `wmove'
>>> textbox.c:(.text+0x9f1): undefined reference to `wrefresh'
>>> textbox.c:(.text+0xb14): undefined reference to `delwin'
>>> textbox.c:(.text+0xb1c): undefined reference to `delwin'
>>> scripts/kconfig/lxdialog/textbox.o: In function `refresh_text_box':
>>> textbox.c:(.text+0x2f8): undefined reference to `wrefresh'
>>> scripts/kconfig/lxdialog/yesno.o: In function `print_buttons':
>>> yesno.c:(.text+0xc6): undefined reference to `wmove'
>>> scripts/kconfig/lxdialog/yesno.o: In function `dialog_yesno':
>>> yesno.c:(.text+0x124): undefined reference to `stdscr'
>>> yesno.c:(.text+0x15d): undefined reference to `COLS'
>>> yesno.c:(.text+0x170): undefined reference to `LINES'
>>> yesno.c:(.text+0x1b8): undefined reference to `newwin'
>>> yesno.c:(.text+0x1ca): undefined reference to `keypad'
>>> yesno.c:(.text+0x224): undefined reference to `wmove'
>>> yesno.c:(.text+0x22e): undefined reference to `acs_map'
>>> yesno.c:(.text+0x23a): undefined reference to `waddch'
>>> yesno.c:(.text+0x251): undefined reference to `acs_map'
>>> yesno.c:(.text+0x260): undefined reference to `waddch'
>>> yesno.c:(.text+0x271): undefined reference to `acs_map'
>>> yesno.c:(.text+0x27d): undefined reference to `waddch'
>>> yesno.c:(.text+0x2ea): undefined reference to `wgetch'
>>> yesno.c:(.text+0x331): undefined reference to `delwin'
>>> yesno.c:(.text+0x379): undefined reference to `delwin'
>>> yesno.c:(.text+0x3ec): undefined reference to `wrefresh'
>>> yesno.c:(.text+0x419): undefined reference to `delwin'
>>> yesno.c:(.text+0x42d): undefined reference to `delwin'
>>> yesno.c:(.text+0x481): undefined reference to `delwin'
>>> scripts/kconfig/lxdialog/yesno.o: In function `print_buttons':
>>> yesno.c:(.text+0xe6): undefined reference to `wrefresh'
>>> scripts/kconfig/lxdialog/menubox.o: In function `do_scroll':
>>> menubox.c:(.text+0x21): undefined reference to `scrollok'
>>> menubox.c:(.text+0x2d): undefined reference to `wscrl'
>>> menubox.c:(.text+0x3d): undefined reference to `scrollok'
>>> menubox.c:(.text+0x47): undefined reference to `wrefresh'
>>> scripts/kconfig/lxdialog/menubox.o: In function `print_arrows':
>>> menubox.c:(.text+0xac): undefined reference to `wmove'
>>> menubox.c:(.text+0xc5): undefined reference to `acs_map'
>>> menubox.c:(.text+0xd1): undefined reference to `waddch'
>>> menubox.c:(.text+0xe9): undefined reference to `waddnstr'
>>> menubox.c:(.text+0xfd): undefined reference to `wmove'
>>> menubox.c:(.text+0x105): undefined reference to `wrefresh'
>>> menubox.c:(.text+0x129): undefined reference to `acs_map'
>>> menubox.c:(.text+0x135): undefined reference to `waddch'
>>> menubox.c:(.text+0x13a): undefined reference to `acs_map'
>>> menubox.c:(.text+0x146): undefined reference to `waddch'
>>> menubox.c:(.text+0x14b): undefined reference to `acs_map'
>>> menubox.c:(.text+0x157): undefined reference to `waddch'
>>> menubox.c:(.text+0x15c): undefined reference to `acs_map'
>>> menubox.c:(.text+0x168): undefined reference to `waddch'
>>> menubox.c:(.text+0x180): undefined reference to `wmove'
>>> menubox.c:(.text+0x1a1): undefined reference to `acs_map'
>>> menubox.c:(.text+0x1ad): undefined reference to `waddch'
>>> menubox.c:(.text+0x1b2): undefined reference to `acs_map'
>>> menubox.c:(.text+0x1be): undefined reference to `waddch'
>>> menubox.c:(.text+0x1c3): undefined reference to `acs_map'
>>> menubox.c:(.text+0x1cf): undefined reference to `waddch'
>>> menubox.c:(.text+0x1d4): undefined reference to `acs_map'
>>> menubox.c:(.text+0x1e0): undefined reference to `waddch'
>>> menubox.c:(.text+0x1f9): undefined reference to `acs_map'
>>> menubox.c:(.text+0x205): undefined reference to `waddch'
>>> menubox.c:(.text+0x21d): undefined reference to `waddnstr'
>>> scripts/kconfig/lxdialog/menubox.o: In function `do_print_item':
>>> menubox.c:(.text+0x2b3): undefined reference to `wmove'
>>> menubox.c:(.text+0x2bb): undefined reference to `wclrtoeol'
>>> menubox.c:(.text+0x2e5): undefined reference to `wmove'
>>> menubox.c:(.text+0x2fe): undefined reference to `waddnstr'
>>> menubox.c:(.text+0x333): undefined reference to `wmove'
>>> menubox.c:(.text+0x358): undefined reference to `wmove'
>>> menubox.c:(.text+0x384): undefined reference to `waddch'
>>> scripts/kconfig/lxdialog/menubox.o: In function `print_buttons':
>>> menubox.c:(.text+0x484): undefined reference to `wmove'
>>> scripts/kconfig/lxdialog/menubox.o: In function `dialog_menu':
>>> menubox.c:(.text+0x4a9): undefined reference to `stdscr'
>>> menubox.c:(.text+0x530): undefined reference to `COLS'
>>> menubox.c:(.text+0x541): undefined reference to `LINES'
>>> menubox.c:(.text+0x56a): undefined reference to `stdscr'
>>> menubox.c:(.text+0x592): undefined reference to `newwin'
>>> menubox.c:(.text+0x5a6): undefined reference to `keypad'
>>> menubox.c:(.text+0x60b): undefined reference to `wmove'
>>> menubox.c:(.text+0x615): undefined reference to `acs_map'
>>> menubox.c:(.text+0x625): undefined reference to `waddch'
>>> menubox.c:(.text+0x639): undefined reference to `acs_map'
>>> menubox.c:(.text+0x64c): undefined reference to `waddch'
>>> menubox.c:(.text+0x672): undefined reference to `wbkgdset'
>>> menubox.c:(.text+0x677): undefined reference to `acs_map'
>>> menubox.c:(.text+0x687): undefined reference to `waddch'
>>> menubox.c:(.text+0x706): undefined reference to `subwin'
>>> menubox.c:(.text+0x71a): undefined reference to `keypad'
>>> menubox.c:(.text+0x885): undefined reference to `wnoutrefresh'
>>> menubox.c:(.text+0x8eb): undefined reference to `wmove'
>>> menubox.c:(.text+0x8f7): undefined reference to `wrefresh'
>>> menubox.c:(.text+0xa30): undefined reference to `wnoutrefresh'
>>> menubox.c:(.text+0xa3c): undefined reference to `wrefresh'
>>> menubox.c:(.text+0xa53): undefined reference to `wgetch'
>>> menubox.c:(.text+0xbc2): undefined reference to `wrefresh'
>>> menubox.c:(.text+0xbf2): undefined reference to `delwin'
>>> menubox.c:(.text+0xbfe): undefined reference to `delwin'
>>> menubox.c:(.text+0xfa8): undefined reference to `scrollok'
>>> menubox.c:(.text+0x1102): undefined reference to `delwin'
>>> menubox.c:(.text+0x110e): undefined reference to `delwin'
>>> menubox.c:(.text+0x1210): undefined reference to `delwin'
>>> menubox.c:(.text+0x121c): undefined reference to `delwin'
>>> menubox.c:(.text+0x12a5): undefined reference to `delwin'
>>> scripts/kconfig/lxdialog/menubox.o:menubox.c:(.text+0x12b1): more
>>> undefined references to `delwin' follow
>>> scripts/kconfig/lxdialog/menubox.o: In function `dialog_menu':
>>> menubox.c:(.text+0x12b7): undefined reference to `stdscr'
>>> scripts/kconfig/lxdialog/menubox.o: In function `print_arrows':
>>> menubox.c:(.text+0x190): undefined reference to `wrefresh'
>>> scripts/kconfig/lxdialog/menubox.o: In function `do_print_item':
>>> menubox.c:(.text+0x370): undefined reference to `wrefresh'
>>> scripts/kconfig/lxdialog/menubox.o: In function `print_buttons':
>>> menubox.c:(.text+0x494): undefined reference to `wrefresh'
>>> collect2: ld returned 1 exit status
>>> make[1]: *** [scripts/kconfig/mconf] Error 1
>>> make: *** [menuconfig] Error 2
>>>
>>> So the linker is giving up because it needs a path? Any ideas?
>>>
>>> Thanks,
>>> Tony
>>> _______________________________________________
>>> nix-dev mailing list
>>> nix-dev at cs.uu.nl
>>> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>>>
>>
>
> Hi Michael,
> Yes! That's exactly it. Thank you!
>
> export NIX_LDFLAGS="$NIX_LDFLAGS -L$HOME/ncurses/lib -lncurses"
>
> Works great.
>
> Once again many thanks; You've really helped me out.
>
> Thanks,
> Tony
>



More information about the nix-dev mailing list