[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NCURSES_CH_T definition and ncurses.h in toolchain sys-root include
From: |
Florian Fainelli |
Subject: |
Re: NCURSES_CH_T definition and ncurses.h in toolchain sys-root include path |
Date: |
Tue, 13 Dec 2016 12:01:50 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
On 09/20/2016 06:53 AM, Thomas Dickey wrote:
> On Mon, Sep 19, 2016 at 12:52:52PM -0700, Florian Fainelli wrote:
>> On 09/17/2016 01:50 PM, Thomas Dickey wrote:
>>> On Tue, Sep 13, 2016 at 05:31:14PM -0700, Florian Fainelli wrote:
>>>> Hi all,
>>>>
>>>> While debugging the following build failure encountered with building
>>>> libncursesw:
>>>>
>>>> arm-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I../ncurses -I.
>>>> -I/exp00/fainelli/openwrt/trunk/staging_dir/target-arm-linux-gnueabihf/usr/include
>>>> -I/exp00/fainelli/openwrt/trunk/staging_dir/target-arm-linux-gnueabihf/include
>>>> -I/opt/toolchains/stbgcc-4.8-1.5//usr/include
>>>> -I/opt/toolchains/stbgcc-4.8-1.5//include -D_GNU_SOURCE
>>>> -D_FILE_OFFSET_BITS=64 -DNDEBUG -I. -I../include -Os -pipe
>>>> -march=armv7-a -mtune=cortex-a15 -fno-caller-saves -mfloat-abi=hard
>>>> -fpic --param max-inline-insns-single=1200 -fPIC -c
>>>> ../ncurses/./tty/hashmap.c -o ../obj_s/hashmap.o
>>>
>>> I am puzzled by this: in the scenarios that I have considered, none of
>>> them insert these options between "-I." and "I../include":
>>>
>>>
>>> -I/exp00/fainelli/openwrt/trunk/staging_dir/target-arm-linux-gnueabihf/usr/include
>>>
>>> -I/exp00/fainelli/openwrt/trunk/staging_dir/target-arm-linux-gnueabihf/include
>>> -I/opt/toolchains/stbgcc-4.8-1.5//usr/include
>>> -I/opt/toolchains/stbgcc-4.8-1.5//include -D_GNU_SOURCE
>>> -D_FILE_OFFSET_BITS=64 -DNDEBUG
>>>
>>> rather, the options fall after the "-I../include".
>>>
>>> Which patchlevel of ncurses are you building, and what environment and
>>> command-line options are you using?
>>
>>
>> patchlevel: 5.9 w/ the following patches applied:
>>
>> http://git.openwrt.org/?p=15.05/openwrt.git;a=tree;f=package/libs/ncurses/patches;h=044ac197cc84d079b3df5dab43984553e5c3e8f6;hb=HEAD
>
> 5.9 is a little old (2011):
>
> http://invisible-island.net/ncurses/NEWS.html#t20110404
>
> Just looking at the NEWS file, I think this change in 2012 is where
> I fixed that:
>
> http://invisible-island.net/ncurses/NEWS.html#t20121110
>
> + modify configure macro CF_INCLUDE_DIRS to put $CPPFLAGS after the
> local -I include options in case someone has set conflicting -I
> options in $CPPFLAGS (prompted by patch for ncurses/Makefile.in by
> Vassili Courzakis).
>
> (the config.status was helpful)
Yeah, that definitively fixed it, I extracted the patch and used it
locally since my fork of OpenWrt is kind of stuck at the moment, thanks!
>
>> #define NCURSES_VERSION_STRING "5.9.20110404"
>
> The current release (6.0) is about a year old (also with fixes).
> Perhaps someone could update those patches on openwrt...
Sure, that's the plan, thanks a lot for your help, and sorry for getting
back to you several months after.
Cheers
--
Florian
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: NCURSES_CH_T definition and ncurses.h in toolchain sys-root include path,
Florian Fainelli <=