Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#16728 closed defect (fixed)

Error Installing exiv2

Reported by: jsnodgra@… Owned by: tcurdt@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: gale@…, mike@…
Port: exiv2

Description (last modified by mf2k (Frank Schima))

On Mac0S 10.4.11, I receive this error when attempting to install exiv2:

--->  Building exiv2 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_exiv2/work/exiv2-0.17.1" && make all " returned error 2
Command output: if test "x1" = "x1"; then cd xmpsdk/src && make xmpsdk; fi;
make[1]: Nothing to be done for `xmpsdk'.
cd src && make all

Any help is appreciated! Thanks.

Change History (23)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to tcurdt@…
Port: exiv2 added

Assigning to maintainer.

comment:2 Changed 16 years ago by tcurdt@…

Please do a self update to get the latest version (0.17.1) and then try again.

comment:3 Changed 16 years ago by jsnodgra@…

I did a selfupdate, and then did a clean --all on exiv2. I still receive the same error...

comment:4 Changed 16 years ago by tcurdt@…

Sorry, don't have a 10.4 machine available. Can only say building 0.17.1 on 10.5 worked just fine (for me).

Just to find the problem: can you download the exiv2 0.17.1 source and do a

./configure
make

just to see if that builds for you?

comment:5 in reply to:  4 Changed 16 years ago by tcurdt@…

(duplicate comment removed)

comment:6 Changed 16 years ago by gale@…

Also on 10.4.11, the upgrade to exiv2 0.17.1 fails to build. My error is far more verbose though. To avoid spamming the comments, I'll attach it as a file.

comment:7 in reply to:  6 Changed 16 years ago by gale@…

Replying to gale@…:

My error is far more verbose though. To avoid spamming the comments, I'll attach it as a file.

Sorry, trac seems to choke on this text file. I guess I'll just paste it:

$ sudo port upgrade exiv2
Password:
--->  Building exiv2 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_exiv2/work/exiv2-0.17.1" && make all " returned error 2
Command output: if test "x1" = "x1"; then cd xmpsdk/src && make xmpsdk; fi;
make[1]: Nothing to be done for `xmpsdk'.
cd src && make all
../libtool --mode=link /usr/bin/g++-4.0 -L/opt/local/lib  -L../xmpsdk/src -o libexiv2.la basicio.lo bmpimage.lo canonmn.lo convert.lo cr2image.lo crwimage.lo datasets.lo error.lo exif.lo futils.lo fujimn.lo gifimage.lo ifd.lo image.lo iptc.lo jp2image.lo jpgimage.lo makernote.lo makernote2.lo metadatum.lo minoltamn.lo mrwimage.lo nikonmn.lo olympusmn.lo orfimage.lo panasonicmn.lo pngimage.lo pngchunk.lo psdimage.lo rafimage.lo sigmamn.lo pentaxmn.lo sonymn.lo tags.lo tgaimage.lo tiffcomposite.lo tiffimage.lo tiffparser.lo tiffvisitor.lo types.lo value.lo version.lo properties.lo xmp.lo xmpsidecar.lo  -rpath /opt/local/lib -version-info 4:1:0 -L/opt/local/lib -lintl -L/opt/local/lib -liconv -lc -R/opt/local/lib -Wl,-framework -Wl,CoreFoundation -L/opt/local/lib -liconv -R/opt/local/lib -lz   -lexpat -lxmpsdk
/usr/bin/g++-4.0 -dynamiclib -single_module -flat_namespace -undefined suppress -o .libs/libexiv2.4.0.1.dylib  .libs/basicio.o .libs/bmpimage.o .libs/canonmn.o .libs/convert.o .libs/cr2image.o .libs/crwimage.o .libs/datasets.o .libs/error.o .libs/exif.o .libs/futils.o .libs/fujimn.o .libs/gifimage.o .libs/ifd.o .libs/image.o .libs/iptc.o .libs/jp2image.o .libs/jpgimage.o .libs/makernote.o .libs/makernote2.o .libs/metadatum.o .libs/minoltamn.o .libs/mrwimage.o .libs/nikonmn.o .libs/olympusmn.o .libs/orfimage.o .libs/panasonicmn.o .libs/pngimage.o .libs/pngchunk.o .libs/psdimage.o .libs/rafimage.o .libs/sigmamn.o .libs/pentaxmn.o .libs/sonymn.o .libs/tags.o .libs/tgaimage.o .libs/tiffcomposite.o .libs/tiffimage.o .libs/tiffparser.o .libs/tiffvisitor.o .libs/types.o .libs/value.o .libs/version.o .libs/properties.o .libs/xmp.o .libs/xmpsidecar.o -all_load  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_exiv2/work/exiv2-0.17.1/xmpsdk/src/.libs/libxmpsdk.a  -L/opt/local/lib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_exiv2/work/exiv2-0.17.1/xmpsdk/src /opt/local/lib/libintl.dylib -lc /opt/local/lib/libiconv.dylib -lz /opt/local/lib/libexpat.dylib  -Wl,-framework -Wl,CoreFoundation -install_name  /opt/local/lib/libexiv2.4.dylib -compatibility_version 5 -current_version 5.1
ld: multiple definitions of symbol ___floatdisf
/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc.a(_floatdisf.o) private external definition of ___floatdisf in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_floatdisf_s.o) definition of ___floatdisf
ld: multiple definitions of symbol ___floatdidf
/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc.a(_floatdidf.o) private external definition of ___floatdidf in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_floatdidf_s.o) definition of ___floatdidf
ld: multiple definitions of symbol ___divdi3
/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc.a(_divdi3.o) private external definition of ___divdi3 in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_divdi3_s.o) definition of ___divdi3
ld: multiple definitions of symbol ___udivdi3
/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc.a(_udivdi3.o) private external definition of ___udivdi3 in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_udivdi3_s.o) definition of ___udivdi3
ld: multiple definitions of symbol ___umoddi3
/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc.a(_umoddi3.o) private external definition of ___umoddi3 in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_umoddi3_s.o) definition of ___umoddi3
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed
make[1]: *** [lib] Error 1
make: *** [all] Error 2

comment:8 Changed 16 years ago by gale@…

grr. I'm really sorry, trac globbed everything into one paragraph. I guess I needed to use some wiki formatting.

Well, anyway, the point is that the link step complains about a lot of multiple symbol definitions.

comment:9 Changed 16 years ago by tcurdt@…

Could you please try a manual build from the source distribution and report back?

comment:10 Changed 16 years ago by gale@…

Cc: gale@… added

Cc Me!

comment:11 Changed 16 years ago by gale@…

Seems to compile OK, except for the following two issues:

exiv2 did not recognize expat.h (I have the expat 2.0.1 port installed), even when I explicitly pointed to its location using --with-expat=/opt/local/include. So I had to use --disable-xmp, which causes exiv2 not to require expat.

exiv2 did not find gettext, even though I have the gettext 0.17 port installed. So language support was disabled, and the build ended with

cd po && make
make[1]: Nothing to be done for `all'.

Other than that, it seemed to build OK.

comment:12 Changed 16 years ago by tcurdt@…

-- Exiv2 0.17.1 feature configuration summary
--
-- Build a shared library......... YES
-- PNG image support.............. YES
-- Native language support........ NO

gettext is required for native language support. Make sure the
gettext header files are installed. You can get gettext from
http://www.gnu.org/software/gettext/

-- Conversion of Windows XP tags.. YES
-- Nikon lens database............ YES
-- XMP metadata support........... YES

Is what I get on configure. And then a make runs through just fine for me on 10.5.

comment:13 in reply to:  description ; Changed 16 years ago by kraka40@…

Got exiv2 to compile on 10.4 by:

  1. port edit exiv2

add the following two lines to the bottom of the Portfile

configure.env MACOSX_DEPLOYMENT_TARGET=10.4
build.env MACOSX_DEPLOYMENT_TARGET=10.4 
  1. port build exiv2

comment:14 in reply to:  13 ; Changed 16 years ago by kraka40@…

(duplicate comment removed)

comment:15 in reply to:  14 Changed 16 years ago by dbueno@…

Replying to kraka40@…:

Got exiv2 to compile on 10.4 by:

  1. port edit exiv2

add the following two lines to the bottom of the Portfile

configure.env MACOSX_DEPLOYMENT_TARGET=10.4
build.env MACOSX_DEPLOYMENT_TARGET=10.4


  1. port build exiv2

I confirm that this works for me, too.

comment:16 Changed 16 years ago by blb@…

Could be the same bug as noticed in #15109?

comment:17 Changed 16 years ago by tcurdt@…

Hm. Sounds like it. Could someone provide a patch for it? Unfortunately I have no commit access myself.

comment:18 in reply to:  16 Changed 16 years ago by afb@…

Replying to blb@…:

Could be the same bug as noticed in #15109?

It's related, but not the same.

In the other bug, it failed to link due to too old MDT. In this bug, it is libtool that guess wrong due to too old MDT...

You can use the global variable macosx_deployment_target instead of setting environment, like in the generic workaround:

platform darwin 7 {
    macosx_deployment_target 10.3
}

platform darwin 8 {
    macosx_deployment_target 10.4
}

platform darwin 9 {
    macosx_deployment_target 10.5
}

Should be fixed in base trunk.

comment:19 Changed 16 years ago by mike@…

Cc: mike@… added

Cc Me!

comment:20 Changed 16 years ago by dbevans (David B. Evans)

This should now be fixed in MacPorts version 1.7.0. Updated to version 0.18 in r44178 and builds without problems on 10.4.11 ppc.

To upgrade from MacPorts 1.6.0 just

sudo port selfupdate

comment:21 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:22 in reply to:  20 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Replying to devans@…:

This should now be fixed in MacPorts version 1.7.0.

Then I think we can close this ticket.

comment:23 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #17630.

Note: See TracTickets for help on using tickets.