Hi,

while doing emerge system, nano fails to link as it
uses /usr/include/curses.h, because configure does not find
"ncurses.h" (ncurses-5.5-r3 only installs "ncurses/ncurses.h"):

...
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
checking for initscr in -lncurses... yes
Using ncurses as the curses library
checking for use_default_colors in -lncurses... yes
...

Then at link time, it has undefined references to symbols:

...
browser.o: In function `browser_refresh':
browser.c:(.text+0x898): undefined reference to `w32attron'
browser.c:(.text+0x8b4): undefined reference to `w32attroff'
help.o: In function `do_help':
help.c:(.text+0x6fb): undefined reference to `w32attroff'
nano.o: In function `main':
nano.c:(.text+0x1a65): undefined reference to `initscr32'
prompt.o: In function `do_yesno_prompt':
prompt.c:(.text+0x13a): undefined reference to `w32attron'
prompt.c:(.text+0x192): undefined reference to `w32attroff'
prompt.o: In function `update_statusbar_line':
prompt.c:(.text+0x392): undefined reference to `w32attron'
prompt.c:(.text+0x3ee): undefined reference to `w32addch'
...


When I create this symlink, nano emerges successfully:
<prefix>/usr/include/ncurses.h -> ncurses/ncurses.h

Thoughts on how to fix this correctly ?

WTH does ncurses-5.5-r3 on native Gentoo Linux install itself
as /usr/include/curses.h ?

/haubi/
-- 
Michael Haubenwallner                    SALOMON Automation GmbH
Forschung & Entwicklung                  A-8114 Friesach bei Graz
mailto:[EMAIL PROTECTED]  http://www.salomon.at
No HTML/MIME please, see http://expita.com/nomime.html

-- 
[EMAIL PROTECTED] mailing list

Reply via email to