[MacPorts] #50270: digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage (was: digikam 4.9.0 fails to build)

MacPorts noreply at macports.org
Sun Jan 10 02:45:14 PST 2016


#50270: digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have
C++ linkage
---------------------------+--------------------------------
  Reporter:  till.paala@…  |      Owner:  macports-tickets@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.3.4
Resolution:                |   Keywords:
      Port:  digikam       |
---------------------------+--------------------------------
Changes (by ryandesign@…):

 * port:   => digikam


Old description:

> 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.

New description:

 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.

--

Comment:

 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).

-- 
Ticket URL: <https://trac.macports.org/ticket/50270#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list