This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: perl 5.14 ncursesw: calling getbegyx() crashes
- From: "D. Schüler" <admin at schueler dot homeip dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 08 Apr 2013 20:23:59 +0200
- Subject: Re: perl 5.14 ncursesw: calling getbegyx() crashes
- References: <51617A39 dot 9000901 at schueler dot homeip dot net> <516186D7 dot 20201 at cornell dot edu>
Am 07.04.2013 16:46, schrieb Ken Brown:
>> ~/Curses-1.28 $ export CURSES_LDFLAGS="-L/usr/lib/ncurses -lncurses"
>> ~/Curses-1.28 $ export CURSES_CFLAGS="-I/usr/include/ncurses"
>
> ...you need -L/usr/lib/ncursesw and -I/usr/include/ncursesw.
>
> Ken
I tried it even with that compiler options.
Today i tried to compile the test.c file from the Curses Package:
~/Curses-1.28 $ gcc-4 -I/usr/include/ncursesw -L/usr/lib/ncursesw
-lncursesw -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g
-fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -o testsym
testsym.c
/tmp/ccp3WxB0.o: In function `main':
/home/axnrl/Curses-1.28/testsym.c:5: undefined reference to `_initscr'
/home/axnrl/Curses-1.28/testsym.c:6: undefined reference to `_ncwrap_stdscr'
/home/axnrl/Curses-1.28/testsym.c:6: undefined reference to `_getcury'
/home/axnrl/Curses-1.28/testsym.c:6: undefined reference to `_ncwrap_stdscr'
/home/axnrl/Curses-1.28/testsym.c:6: undefined reference to `_getcurx'
collect2: ld returned 1 exit status
This looks like a linker error, which could not find the symbols for the
functions.
Here's the test.c:
===8<===
#include <ncurses.h>
main() {
int x,y;
initscr();
getyx(stdscr,y,x);
}
===>8===
So i suppose that something went wrong while compiling the ncurses
binary for cygwin.
Should i run "rebaseAll" on the ncurses library?
Regards,
David
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple