Opened 7 months ago

Last modified 7 months ago

#68301 reopened defect

GIMP-Lensfun @0.2.4_6 - Unable to build on Lion and Mtn Lion - Undefined symbols - Exiv2::ImageFactory::open - Exiv2::ExifKey::ExifKey - Exiv2::ExifData::operator

Reported by: RobK88 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: lion mountainlion Cc:
Port: GIMP-lensfun

Description

I am unable to build and install GIMP-lensfun. The compiler complains about undefined symbols for:

Exiv2::ImageFactory::open
Exiv2::ExifKey::ExifKey
Exiv2::ExifData::operator

But the exiv2 and gexiv2 ports are installed. See below.

bash-3.2$ sudo port -v install gimp-lensfun
Password:
--->  Computing dependencies for GIMP-Lensfun.
--->  Fetching archive for GIMP-Lensfun
--->  GIMP-Lensfun-0.2.4_6.darwin_11.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch GIMP-Lensfun-0.2.4_6.darwin_11.x86_64.tbz2 from http://packages.macports.org/GIMP-Lensfun
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch GIMP-Lensfun-0.2.4_6.darwin_11.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/GIMP-Lensfun
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch GIMP-Lensfun-0.2.4_6.darwin_11.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/GIMP-Lensfun
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Building GIMP-Lensfun
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_GIMP-Lensfun/GIMP-Lensfun/work/GIMP-Lensfun-0.2.4" && /usr/bin/make -j4 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_GIMP-Lensfun/GIMP-Lensfun/work/GIMP-Lensfun-0.2.4'
/usr/bin/clang++ -o gimp-lensfun src/gimplensfun.o -L/opt/local/lib -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lbabl-0.1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lfontconfig -lfreetype -L/opt/local/lib -llensfun -lexiv2 -lstdc++
Undefined symbols for architecture x86_64:
  "Exiv2::ImageFactory::open(std::string const&, bool)", referenced from:
      __ZL3runPKciPK10_GimpParamPiPPS1_ in gimplensfun.o
  "Exiv2::ExifKey::ExifKey(std::string const&)", referenced from:
      __ZL3runPKciPK10_GimpParamPiPPS1_ in gimplensfun.o
  "Exiv2::ExifData::operator[](std::string const&)", referenced from:
      __ZL3runPKciPK10_GimpParamPiPPS1_ in gimplensfun.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [gimp-lensfun] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_GIMP-Lensfun/GIMP-Lensfun/work/GIMP-Lensfun-0.2.4'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_GIMP-Lensfun/GIMP-Lensfun/work/GIMP-Lensfun-0.2.4" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build GIMP-Lensfun: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_GIMP-Lensfun/GIMP-Lensfun/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port gimp-lensfun failed
bash-3.2$ 
bash-3.2$ 
bash-3.2$ port installed exiv2
The following ports are currently installed:
  exiv2 @0.27.6_0 (active)
bash-3.2$ 
bash-3.2$ port installed gexiv2
The following ports are currently installed:
  gexiv2 @0.14.2_0+python311 (active)
bash-3.2$

Attachments (1)

main.log (1.0 MB) - added by RobK88 7 months ago.

Download all attachments as: .zip

Change History (6)

Changed 7 months ago by RobK88

Attachment: main.log added

comment:1 Changed 7 months ago by RobK88

Workaround. I was able to build and install GIMP-Lensfun on Lion and Mtn Lion using a more modern compiler including clang-7.0 and clang-11. See below.

sudo port install GIMP-Lensfun configure.compiler=macports-clang-11
--->  Computing dependencies for GIMP-Lensfun
--->  Fetching archive for GIMP-Lensfun
--->  Attempting to fetch GIMP-Lensfun-0.2.4_6.darwin_11.x86_64.tbz2 from http://packages.macports.org/GIMP-Lensfun
--->  Attempting to fetch GIMP-Lensfun-0.2.4_6.darwin_11.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/GIMP-Lensfun
--->  Attempting to fetch GIMP-Lensfun-0.2.4_6.darwin_11.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/GIMP-Lensfun
--->  Fetching distfiles for GIMP-Lensfun
--->  Verifying checksums for GIMP-Lensfun
--->  Extracting GIMP-Lensfun
--->  Applying patches to GIMP-Lensfun
--->  Configuring GIMP-Lensfun
--->  Building GIMP-Lensfun
--->  Staging GIMP-Lensfun into destroot                 
--->  Installing GIMP-Lensfun @0.2.4_6
--->  Activating GIMP-Lensfun @0.2.4_6
--->  Cleaning GIMP-Lensfun
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  No broken ports found.
bash-3.2$

comment:2 Changed 7 months ago by RobK88

Keywords: lion mtn-lion added
Summary: GIMP-Lensfun @0.2.4_6 - Unable to build - Undefined symbols - Exiv2::ImageFactory::open - Exiv2::ExifKey::ExifKey - Exiv2::ExifData::operatorGIMP-Lensfun @0.2.4_6 - Unable to build on Lion and Mtn Lion - Undefined symbols - Exiv2::ImageFactory::open - Exiv2::ExifKey::ExifKey - Exiv2::ExifData::operator

comment:3 Changed 7 months ago by mascguy (Christopher Nielsen)

Cc: mascguy removed
Keywords: mountainlion added; mtn-lion removed
Owner: set to mascguy
Status: newassigned

comment:4 Changed 7 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 0a0d1308ef18121e51e887078163f53abd366856/macports-ports (master):

gimp-lensfun: request cxx 2011 compiler

Fixes: #68301

comment:5 Changed 7 months ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: closedreopened

Looks like buildbot builds still fail for 10.8 (and perhaps 10.7 and earlier), due to the following:

Undefined symbols for architecture x86_64:
  "Exiv2::ImageFactory::open(std::string const&, bool)", referenced from:
      run(char const*, int, _GimpParam const*, int*, _GimpParam**) in gimplensfun.o
  "Exiv2::ExifKey::ExifKey(std::string const&)", referenced from:
      run(char const*, int, _GimpParam const*, int*, _GimpParam**) in gimplensfun.o
  "Exiv2::ExifData::operator[](std::string const&)", referenced from:
      run(char const*, int, _GimpParam const*, int*, _GimpParam**) in gimplensfun.o
ld: symbol(s) not found for architecture x86_64

I'll take a closer look when I have some time.

Note: See TracTickets for help on using tickets.