Opened 13 years ago

Last modified 12 years ago

#31860 closed defect

par2 build error. — at Version 1

Reported by: h_atac@… Owned by: julian@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: par2

Description (last modified by neverpanic (Clemens Lang))

It couldn't be compiled. It gives error in par2fileformat.h file.

:info:build ./par2fileformat.h./par2fileformat.h::8787::25./par2fileformat.h:: 25error: :flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'
:info:build  87:25:flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'error:  
:info:build   FILEVERIFICATIONENTRY entries[];
:info:build :                        ^error: 
:info:build  flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'error: 
:info:build   FILEVERIFICATIONENTRY entries[];
:info:build                         ^  FILEVERIFICATIONENTRY entries[];
:info:build 
:info:build flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'
:info:build flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'
:info:build 
:info:build                         ^
:info:build   FILEVERIFICATIONENTRY entries[];
:info:build                         ^  FILEVERIFICATIONENTRY entries[];
:info:build 
:info:build                         ^  FILEVERIFICATIONENTRY entries[];
:info:build 
:info:build                         ^

There are lots of other warnings but at least this error causes build to stop.

Change History (2)

Changed 13 years ago by h_atac@…

Attachment: main.log added

Build log

comment:1 Changed 13 years ago by neverpanic (Clemens Lang)

Description: modified (diff)
Keywords: par2 removed
Owner: changed from macports-tickets@… to julian@…

Please remember to Cc the maintainer. What version of Xcode are you using? Seems like a clang-issue to me, which could be easily resolved by the usual

if {${configure.compiler} == "clang"}{
   configure.compiler llvm-gcc-4.2
}
Note: See TracTickets for help on using tickets.