Opened 8 years ago

Last modified 8 years ago

#50270 new defect

digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage — at Version 2

Reported by: till.paala@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: digikam

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

Tried to install digikam on a OS X 10.11 installation. I seem to have opencv 2 installed port outdated gives among others: opencv 2.4.11_0 < 3.1.0_1 so it seems #48081 doesn't apply to me. In the beginning I got a message about ecmconfig.cmake missing, but I could come around this by installing kde-extra-cmake-modules. Still have a failure in the compilation with following errors:

:info:build /opt/local/include/lensfun/lensfun.h:2506:5: error: templates must have C++ linkage
:info:build     template<typename T> static void ModifyColor_Vignetting_PA (
:info:build     ^~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/include/lensfun/lensfun.h:2508:5: error: templates must have C++ linkage
:info:build     template<typename T> static void ModifyColor_DeVignetting_PA (
:info:build     ^~~~~~~~~~~~~~~~~~~~
:info:build 2 errors generated.

See log file attached.

Change History (3)

Changed 8 years ago by till.paala@…

Attachment: digikam-main.log added

comment:1 Changed 8 years ago by till.paala@…

Sorry, the text from the log should look like this:

:info:build /opt/local/include/lensfun/lensfun.h:2506:5: error: templates must have C++ linkage
:info:build     template<typename T> static void ModifyColor_Vignetting_PA (
:info:build     ^~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/include/lensfun/lensfun.h:2508:5: error: templates must have C++ linkage
:info:build     template<typename T> static void ModifyColor_DeVignetting_PA (
:info:build     ^~~~~~~~~~~~~~~~~~~~
:info:build 2 errors generated.

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

Description: modified (diff)
Port: digikam added
Summary: digikam 4.9.0 fails to builddigikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage

digikam depends on opencv. If opencv is outdated, MacPorts should upgrade it before attempting to build digikam. The log you attached is incomplete (missing lots of the beginning, up to somewhere in the build phase).

Note: See TracTickets for help on using tickets.