Re: [code] Makefile cleanup... suggestions

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Thu, 22 Feb 2018 12:17:09 +0100

Hi

Trying to get some clarity, I have restarted with a clean github pull.
When trying to compile textadept-curses in Linux, I can't without this
patch:

diff -r 280da84f4e7b src/Makefile
--- a/src/Makefile Wed Feb 21 13:37:14 2018 -0500
+++ b/src/Makefile Thu Feb 22 12:10:57 2018 +0100
@@ -227,6 +227,7 @@
 $(gtdialog_objs): gtdialog_flags = $(plat_flag) -DNOHELP -DLIBRARY
 gtdialog.o: gtdialog_flags += $(GTK_CFLAGS)
 gtdialog-curses.o: gtdialog_flags += -Icdk $(CURSES_CFLAGS)
+$(termkey_unix_objs): termkey_flags += $(CURSES_CFLAGS)
 $(termkey_win32_objs): termkey_flags += $(CURSES_CFLAGS)
 # Lua 5.3 compatibility with LuaJIT.
 lbitlib.o linit.o: LUA_CFLAGS += -DLUA_COMPAT_BITLIB
-DLUA_COMPAT_APIINTCASTS

Best, /PA

On 22 February 2018 at 07:16, Pedro Andres Aranda Gutierrez <
paaguti.att.gmail.com> wrote:

> Hi Mitchell
>
> the patch doesn't solve the SIGWINCH problem in FreeBSD.
> It seems it doesn't like neither POSIX_C_SOURCE nor XOPEN_SOURCE.
> The rest of it doesn't have any negative impact.
>
> And the u_int typedef is definitely needed.
>
> In file included from textadept.c:22:
> /usr/include/sys/types.h:52:22: error: cannot combine with previous 'int'
> declaration specifier
> typedef unsigned int u_int;
>
> Best, /PA
>
> On 22 February 2018 at 04:39, Mitchell <m.att.foicica.com> wrote:
>
>> Hi Pedro,
>>
>> On Tue, 20 Feb 2018, Mitchell wrote:
>>
>> Hi Pedro,
>>>
>>> On Tue, 20 Feb 2018, Pedro Andres Aranda Gutierrez wrote:
>>>
>>> Hi Mitchell,
>>>>
>>>> this is a step in the right direction for FreeBSD.
>>>>
>>>> After applying this patch:
>>>>
>>>> [snip]
>>>>
>>>
>>> Thanks, but that causes build warnings on Linux. Will you try the
>>> attached
>>> patch and see if it allows you to build on FreeBSD? Thanks.
>>>
>>
>> I am also curious if the `u_int` typedef is still needed with the patch I
>> provided.
>>
>> Cheers,
>> Mitchell
>>
>> --
>> You are subscribed to code.att.foicica.com.
>> To change subscription settings, send an e-mail to code+help.att.foicica.com.
>> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
>>
>>
>
>
> --
> Fragen sind nicht da um beantwortet zu werden,
> Fragen sind da um gestellet zu werden
> Georg Kreisler
>

-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellet zu werden
Georg Kreisler
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 22 Feb 2018 - 06:17:09 EST

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2018 - 06:33:53 EST