#5912: BUG: gv 3.5.8 will not compile -----------------------------------------------------+---------------------- Reporter: kyle-opendarwinbugzilla@memoryhole.net | Owner: toby@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.0 Resolution: worksforme | Keywords: Port: gv | -----------------------------------------------------+---------------------- Changes (by ryandesign@macports.org): * port: => gv * milestone: => Port Bugs Old description:
I get this error:
[kyle@tunican kyle]$ sudo port install gv ---> Fetching gv ---> Attempting to fetch gv-3.5.8.tar.gz from ftp://ftpthep.physik.uni- mainz.de/pub/gv/unix/ ---> Verifying checksum(s) for gv ---> Extracting gv ---> Applying patches to gv ---> Configuring gv ---> Building gv with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_print_gv/work/ gv-3.5.8" && make all" returned error 2 Command output: Button.c:320: error: request for member 'set' in something not a structure or union Button.c:320: warning: statement with no effect Button.c:321: error: dereferencing pointer to incomplete type Button.c:321: error: request for member 'command' in something not a structure or union Button.c:321: error: request for member 'set' in something not a structure or union Button.c:321: warning: statement with no effect Button.c:323: error: dereferencing pointer to incomplete type Button.c:323: error: request for member 'command' in something not a structure or union Button.c:323: error: request for member 'set' in something not a structure or union Button.c:323: warning: statement with no effect Button.c: In function 'ButtonSet': Button.c:337: error: dereferencing pointer to incomplete type Button.c:337: error: request for member 'command' in something not a structure or union Button.c:337: error: request for member 'set' in something not a structure or union Button.c:338: error: dereferencing pointer to incomplete type Button.c:338: error: request for member 'command' in something not a structure or union Button.c:338: error: request for member 'set' in something not a structure or union Button.c:338: warning: statement with no effect Button.c: In function 'ButtonUnset': Button.c:354: error: dereferencing pointer to incomplete type Button.c:354: error: request for member 'command' in something not a structure or union Button.c:354: error: request for member 'set' in something not a structure or union Button.c:354: warning: statement with no effect Button.c: In function 'ButtonReset': Button.c:369: error: dereferencing pointer to incomplete type Button.c:369: error: request for member 'button' in something not a structure or union Button.c:369: error: request for member 'highlighted' in something not a structure or union Button.c:369: warning: statement with no effect make[1]: *** [Button.o] Error 1 make: *** [all] Error 2
The line it's referring to is this:
set = bw->command.set;
And I checked, command is a CommandPart, as defined in ButtonP.h, but CommandPart isn't defined anywhere, and that's why it's failing.
New description: I get this error: {{{ [kyle@tunican kyle]$ sudo port install gv ---> Fetching gv ---> Attempting to fetch gv-3.5.8.tar.gz from ftp://ftpthep.physik.uni- mainz.de/pub/gv/unix/ ---> Verifying checksum(s) for gv ---> Extracting gv ---> Applying patches to gv ---> Configuring gv ---> Building gv with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_print_gv/work/ gv-3.5.8" && make all" returned error 2 Command output: Button.c:320: error: request for member 'set' in something not a structure or union Button.c:320: warning: statement with no effect Button.c:321: error: dereferencing pointer to incomplete type Button.c:321: error: request for member 'command' in something not a structure or union Button.c:321: error: request for member 'set' in something not a structure or union Button.c:321: warning: statement with no effect Button.c:323: error: dereferencing pointer to incomplete type Button.c:323: error: request for member 'command' in something not a structure or union Button.c:323: error: request for member 'set' in something not a structure or union Button.c:323: warning: statement with no effect Button.c: In function 'ButtonSet': Button.c:337: error: dereferencing pointer to incomplete type Button.c:337: error: request for member 'command' in something not a structure or union Button.c:337: error: request for member 'set' in something not a structure or union Button.c:338: error: dereferencing pointer to incomplete type Button.c:338: error: request for member 'command' in something not a structure or union Button.c:338: error: request for member 'set' in something not a structure or union Button.c:338: warning: statement with no effect Button.c: In function 'ButtonUnset': Button.c:354: error: dereferencing pointer to incomplete type Button.c:354: error: request for member 'command' in something not a structure or union Button.c:354: error: request for member 'set' in something not a structure or union Button.c:354: warning: statement with no effect Button.c: In function 'ButtonReset': Button.c:369: error: dereferencing pointer to incomplete type Button.c:369: error: request for member 'button' in something not a structure or union Button.c:369: error: request for member 'highlighted' in something not a structure or union Button.c:369: warning: statement with no effect make[1]: *** [Button.o] Error 1 make: *** [all] Error 2 }}} The line it's referring to is this: {{{ set = bw->command.set; }}} And I checked, command is a CommandPart, as defined in ButtonP.h, but CommandPart isn't defined anywhere, and that's why it's failing. -- -- Ticket URL: <http://trac.macports.org/ticket/5912#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS