X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=DUZ2F4fpgh/CvQpJVSWAStn9wRo/09bA3Cz8JzZM7n3
	ODoQoiUDX+yGl89F5KdAWqSNk7oS1Lfidm3z5UZsgYmo1YwytZPQG2uSca33DAEC
	uWVfGYQmI2rSzdwaF4XZq7XYTm2C+/1FOo54lwgqvhK2eVN+paptZJuMemhZgTbI
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=KPoV7Z7mMf2VC5v08J2iNbt0xX0=; b=pmKQt+27yU8QQZR/H
	Ugm11+k5BIVDhOAuZsDDvLmNsC9kH+JDPOYWhDKCCiIvm9sIXzZO9kx5mt1uyPD4
	HBOkGPWkr+Oxzn2hOMvaEyEVmljL5GGZkZm6hk7F+P0rgP9PD7uNSMKOyPYDIwJP
	zBrddYTbSwYDdlA0TFpoQtH8bM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=AWL,BAYES_40,KAM_STOCKTIP,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RCVD_IN_SEMBACKSCATTER,TW_LN,UNPARSEABLE_RELAY autolearn=no version=3.3.1
Message-ID: <51630B3F.2050003@schueler.homeip.net>
Date: Mon, 08 Apr 2013 20:23:59 +0200
From: =?ISO-8859-15?Q?=22D=2E_Sch=FCler=22?= <admin@schueler.homeip.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.3
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: perl 5.14 ncursesw: calling getbegyx() crashes
References: <51617A39.9000901@schueler.homeip.net> <516186D7.20201@cornell.edu>
In-Reply-To: <516186D7.20201@cornell.edu>
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

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

