Opened 13 years ago

Closed 12 years ago

#33434 closed defect (invalid)

vxl: error: invalid use of incomplete type ‘struct png_info_def’

Reported by: athundt@… Owned by: wiking@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: vxl

Description

installation of vxl failed with a compiler error. I will attach the error log and terminal session to the ticket.

Attachments (2)

main.log (73.4 KB) - added by athundt@… 13 years ago.
log of failed vxl build
failed vxl build terminal session.txt (1.2 KB) - added by athundt@… 13 years ago.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by athundt@…

Attachment: main.log added

log of failed vxl build

Changed 13 years ago by athundt@…

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

Keywords: compile failure vxl removed

Please clean and try again and attach that main.log.

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

Owner: changed from macports-tickets@… to wiking@…

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

Cc: ryandesign@… added
Summary: vxl fails to compilevxl: error: invalid use of incomplete type ‘struct png_info_def’

Your incomplete log says:

core/vil/file_formats/vil_png.cxx:192: error: invalid use of incomplete type ‘struct png_info_def’

This looks like upstream bug report 71 about incompatibility with libpng 1.5. This is strange because MacPorts has libpng 1.4, not 1.5, at least until we address #28385. Can you explain? Do you have a copy of libpng 1.5 on your system somewhere, perhaps in /usr/local? If you clean and try again and attach the new complete main.log it might provide more clues.

comment:4 in reply to:  3 ; Changed 12 years ago by jmroot (Joshua Root)

Replying to ryandesign@…:

This looks like upstream bug report 71 about incompatibility with libpng 1.5. This is strange because MacPorts has libpng 1.4, not 1.5, at least until we address #28385. Can you explain? Do you have a copy of libpng 1.5 on your system somewhere, perhaps in /usr/local? If you clean and try again and attach the new complete main.log it might provide more clues.

There's no mystery, the log clearly shows that the declaration comes from /Library/Frameworks/UnixImageIO.framework/Headers/png.h. A complete log would still be nice of course.

comment:5 in reply to:  4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Replying to jmr@…:

There's no mystery, the log clearly shows that the declaration comes from /Library/Frameworks/UnixImageIO.framework/Headers/png.h.

In that case, this was report was invalid; we don't support users installing third-party frameworks into /Library/Frameworks.

A complete log would still be nice of course.

Now that MacPorts has actually updated to libpng 1.5, a couple users have reported this problem again, and attached complete logs. See #36320.

Note: See TracTickets for help on using tickets.