[MacPorts] #60508: gimp2: error: variable has incomplete type, error: use of undeclared identifier

MacPorts noreply at macports.org
Mon Jul 27 20:41:10 UTC 2020


#60508: gimp2: error: variable has incomplete type, error: use of undeclared
identifier
---------------------+----------------------
  Reporter:  iEFdev  |      Owner:  dbevans
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.6.2
Resolution:          |   Keywords:
      Port:  gimp2   |
---------------------+----------------------

Comment (by iEFdev):

 Replying to [comment:2 kencu]:
 > I pegged it
 <https://github.com/kencu/SnowLeopardPorts/tree/master/graphics/gimp2> at
 2.10.14_3 …

 I downloaded the `gimp`
 [changeset:"68e640f401ef759e587d74aff225918879802897/macports-ports"
 Portfile] as well.

 I got a config error about `mypaint-brushes` not being 1.0. Installing
 `mypaint-brushes1` solved it.

 But, I get this error… I don't know how to work around that. Tried with a
 few different compilers (clang{9,8,5}). All the same.

 {{{
 :info:build gimpdata.c:460:40: error: expected expression
 :info:build       else if (g_str_has_prefix (path, MYPAINT_BRUSHES_DIR))
 :info:build                                        ^
 :info:build <command line>:8:29: note: expanded from here
 :info:build #define MYPAINT_BRUSHES_DIR /opt/local/share/mypaint-
 data/1.0/brushes
 :info:build                             ^
 :info:build gimpdata.c:460:40: error: use of undeclared identifier 'opt'
 :info:build <command line>:8:30: note: expanded from here
 :info:build #define MYPAINT_BRUSHES_DIR /opt/local/share/mypaint-
 data/1.0/brushes
 :info:build                              ^
 :info:build gimpdata.c:460:40: error: use of undeclared identifier
 'local'; did you mean 'lockf'?
 :info:build <command line>:8:34: note: expanded from here
 :info:build #define MYPAINT_BRUSHES_DIR /opt/local/share/mypaint-
 data/1.0/brushes
 :info:build                                  ^
 :info:build /usr/include/unistd.h:609:6: note: 'lockf' declared here
 :info:build int      lockf(int, int, off_t) __DARWIN_ALIAS_C(lockf);
 :info:build          ^
 :info:build gimpdata.c:460:40: error: use of undeclared identifier 'share'
 :info:build       else if (g_str_has_prefix (path, MYPAINT_BRUSHES_DIR))
 :info:build                                        ^
 :info:build <command line>:8:40: note: expanded from here
 :info:build #define MYPAINT_BRUSHES_DIR /opt/local/share/mypaint-
 data/1.0/brushes
 :info:build                                        ^

 // ... //

 :info:build 16 errors generated
 }}}

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


More information about the macports-tickets mailing list