[MacPorts] #31983: grads2: build error on lion with clang (was: build errors grads2 on lion)
MacPorts
noreply at macports.org
Tue Nov 8 15:15:07 PST 2011
#31983: grads2: build error on lion with clang
---------------------------+------------------------------------------------
Reporter: kgh03@… | Owner: takeshi@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: clang | Port: grads2
---------------------------+------------------------------------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => takeshi@…
* keywords: => clang
* port: science/grads2 => grads2
Old description:
> grads2 build fails begining here:
>
> :info:build gagx.c:3882:40: error: unknown type name 'DBFFieldType'
> :info:build struct dbfld* newdbfld (char *fldname, DBFFieldType dbtype,
> gaint len, gaint prec,
> :info:build ^
> :info:build gagx.c:3889:37: error: invalid application of 'sizeof' to an
> incomplete type 'struct d
> bfld'
> :info:build newfld = (struct dbfld *) galloc (sizeof(struct
> dbfld),"dbfld");
> :info:build ^ ~~~~~~~~~~~~~~
> :info:build ./grads.h:857:8: note: forward declaration of 'struct dbfld'
> :info:build struct dbfld* parsedbfld (char *);
> :info:build ^
> :info:build gagx.c:3891:5: error: incomplete definition of type 'struct
> dbfld'
> :info:build strcpy(newfld->name,fldname);
> :info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> :info:build /usr/include/secure/_string.h:87:5: note: instantiated from:
> :info:build ((__darwin_obsz0 (dest) != (size_t) -1)
> \
> :info:build ^
New description:
grads2 build fails begining here:
{{{
:info:build gagx.c:3882:40: error: unknown type name 'DBFFieldType'
:info:build struct dbfld* newdbfld (char *fldname, DBFFieldType dbtype,
gaint len, gaint prec,
:info:build ^
:info:build gagx.c:3889:37: error: invalid application of 'sizeof' to an
incomplete type 'struct d
bfld'
:info:build newfld = (struct dbfld *) galloc (sizeof(struct
dbfld),"dbfld");
:info:build ^ ~~~~~~~~~~~~~~
:info:build ./grads.h:857:8: note: forward declaration of 'struct dbfld'
:info:build struct dbfld* parsedbfld (char *);
:info:build ^
:info:build gagx.c:3891:5: error: incomplete definition of type 'struct
dbfld'
:info:build strcpy(newfld->name,fldname);
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /usr/include/secure/_string.h:87:5: note: instantiated from:
:info:build ((__darwin_obsz0 (dest) != (size_t) -1)
\
:info:build ^
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/31983#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list