[MacPorts] #61842: opendx @4.4.4_10: y.tab.c:1107:16: error: implicit declaration of function '_dxfcclex' is invalid in C99 [-Werror, -Wimplicit-function-declaration]

MacPorts noreply at macports.org
Fri Jul 30 17:41:16 UTC 2021


#61842: opendx @4.4.4_10: y.tab.c:1107:16: error: implicit declaration of function
'_dxfcclex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
----------------------+-----------------------------
  Reporter:  abitees  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.4
Resolution:           |   Keywords:  catalina bigsur
      Port:  opendx   |
----------------------+-----------------------------

Comment (by bernstei):

 It's a terrible hack, but you can get opendx to build with the following
 additional patch file.  It just forces the compiler to stop complaining
 about implicitly defined functions everyplace they happen to occur.

 {{{
 --- src/exec/dxmods/Makefile.am.orig    2021-07-30 13:29:31.000000000
 -0400
 +++ src/exec/dxmods/Makefile.am 2021-07-30 13:29:31.000000000 -0400
 @@ -111,4 +111,6 @@
         $(SOURCES6) \
         $(SOURCES7)

 +AM_CFLAGS = -Wno-error=implicit-function-declaration
 +
  @LOCALMAKE@
 --- src/uipp/dxuilib/Makefile.am.orig   2021-07-30 13:29:31.000000000
 -0400
 +++ src/uipp/dxuilib/Makefile.am        2021-07-30 13:29:31.000000000
 -0400
 @@ -426,4 +426,6 @@

  libDXUI_a_SOURCES = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4) $(SRCS5)

 +AM_CFLAGS = -Wno-error=implicit-function-declaration
 +
  @LOCALMAKE@
 --- src/uipp/widgets/Makefile.am.orig   2021-07-30 13:29:31.000000000
 -0400
 +++ src/uipp/widgets/Makefile.am        2021-07-30 13:29:31.000000000
 -0400
 @@ -84,3 +84,5 @@
         stepb.bm                        \
         stepf.bm                        \
         stop.bm
 +
 +AM_CFLAGS = -Wno-error=implicit-function-declaration
 --- src/exec/dpexec/Makefile.am.orig    2021-07-30 13:29:31.000000000
 -0400
 +++ src/exec/dpexec/Makefile.am 2021-07-30 13:29:31.000000000 -0400
 @@ -39,6 +39,8 @@

  DISTCLEANFILES = compile.h

 +AM_CFLAGS = -Wno-error=implicit-function-declaration
 +
  @LOCALMAKE@

  command.o : compile.h
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61842#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list