Opened 13 years ago

Closed 13 years ago

#31983 closed defect (fixed)

grads2: build error on lion with clang

Reported by: kgh03@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc:
Port: grads2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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     ^

Change History (2)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: clang added
Owner: changed from macports-tickets@… to takeshi@…
Port: grads2 added; science/grads2 removed
Summary: build errors grads2 on liongrads2: build error on lion with clang

comment:2 Changed 13 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Fixed in r87090. Thanks.

Note: See TracTickets for help on using tickets.