Friday, July 02, 2021

Re: OpenBSD ports: graywolf broken

Weekly ping!

Il 28 giugno 2021 14:02:31 CEST, Alessandro De Laurenzis <just22@atlantide.mooo.com> ha scritto:
>Hello Jasper,
>
>There are indeed some header files named "dialog.h" spread into the
>source code, causing a clash when /usr/local/include/dialog.h is
>present.
>
>I'm not an expert of the CMake ecosystem, but from a quick search on
>the
>net, the usual solution to this kind of issues is to explicitly add the
>
>current source and build directories to the include path, by mean of
>the
>CMAKE_INCLUDE_CURRENT_DIR variable.
>
>Please find enclosed a diff with bumped revision and re-based patches
>(while there, I also fixed some indentations in the port's Makefile).
>
>Of course, alternative approach suggestions are welcome.
>
>Copying ports@
>
>On 27/06/2021 13:38, Jasper Lievisse Adriaanse wrote:
>> Hello,
>>
>> I noticed that the cad/graywolf port doesn't build when misc/dialog
>is installed:
>>
>> [2/159] : && /usr/ports/pobj/graywolf-0.1.6/bin/cc -O2 -pipe
>-Wno-return-type -DSIZEOF_VOID_P=64 -Wno-implicit-function-declaration
>-DNDEBUG src/
>> date/CMakeFiles/getdate.dir/getdate.c.o -o src/date/getdate
>-L/usr/local/lib -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib && :
>> [3/159] /usr/ports/pobj/graywolf-0.1.6/bin/cc -I/usr/local/include
>-I/usr/ports/pobj/graywolf-0.1.6/graywolf-0.1.6/include -Iinclude
>-I/usr/ports/pobj/graywolf-0.1.6/graywolf-0.1.6/src/twmc/. -O2 -pipe
>-Wno-return-type -DSIZEOF_VOID_P=64 -Wno-implicit-function-declaration
>-DNDEBUG -MD -MT src
>> /twmc/CMakeFiles/TimberWolfMC.dir/graphics.c.o -MF
>src/twmc/CMakeFiles/TimberWolfMC.dir/graphics.c.o.d -o
>src/twmc/CMakeFiles/TimberWolfMC.dir/graph
>> ics.c.o -c
>/usr/ports/pobj/graywolf-0.1.6/graywolf-0.1.6/src/twmc/graphics.c
>> FAILED: src/twmc/CMakeFiles/TimberWolfMC.dir/graphics.c.o
>> /usr/ports/pobj/graywolf-0.1.6/bin/cc -I/usr/local/include
>-I/usr/ports/pobj/graywolf-0.1.6/graywolf-0.1.6/include -Iinclude
>-I/usr/ports/pobj/gray
>> wolf-0.1.6/graywolf-0.1.6/src/twmc/. -O2 -pipe -Wno-return-type
>-DSIZEOF_VOID_P=64 -Wno-implicit-function-declaration -DNDEBUG -MD -MT
>src/twmc/CMakeFiles/TimberWolfMC.dir/graphics.c.o -MF
>src/twmc/CMakeFiles/TimberWolfMC.dir/graphics.c.o.d -o
>src/twmc/CMakeFiles/TimberWolfMC.dir/graphics.c.o -c
>/usr/ports/pobj/graywolf-0.1.6/graywolf-0.1.6/src/twmc/graphics.c
>In file included from
>/usr/ports/pobj/graywolf-0.1.6/graywolf-0.1.6/src/twmc/graphics.c:137:
>> In file included from /usr/local/include/dialog.h:59:
>> /usr/include/ncurses.h:1216:32: error: expected identifier or '('
>> extern NCURSES_EXPORT_VAR(int) COLORS;
>> ^
>>
>> Could you have a look at this please?
>>
>> Cheers,
>> Jasper
>>
>
>--
>Alessandro De Laurenzis
>[mailto:just22@atlantide.mooo.com]
>Web: http://www.atlantide.mooo.com
>LinkedIn: http://it.linkedin.com/in/delaurenzis

--
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.

No comments:

Post a Comment