[MacPorts] #21007: mp4v2 build fails on Tiger (libtool: more than one: -current_version option specified)
MacPorts
noreply at macports.org
Sun Nov 22 15:45:07 PST 2009
#21007: mp4v2 build fails on Tiger (libtool: more than one: -current_version option
specified)
---------------------------------+------------------------------------------
Reporter: vinc17@… | Owner: cedric.luthi@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: tiger | Port: mp4v2
---------------------------------+------------------------------------------
Comment(by myrrhlin@…):
I was able to build this port using the uploaded patch. For those who'd
like a little handholding to try the same, this comment describes what I
did.
On my iBook G4 running 10.4.11 with Xcode 2.5 dev tools (and Apple's X11)
installed, and it failed with a libtool error similar to those described
above.
{{{
---> Building mp4v2
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mp4v2/work/mp4v2-1.9.1"
&& /usr/bin/make -j1 all " returned error 2
[ . . snip . . ]
mkdir .libs
/usr/bin/g++-4.0 -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o
.libs/libmp4v2.1.9.1.dylib src/.libs/3gp.o src/.libs/atom_ac3.o
src/.libs/atom_amr.o src/.libs/atom_avc1.o src/.libs/atom_avcC.o
src/.libs/atom_chpl.o src/.libs/atom_colr.o src/.libs/atom_d263.o
src/.libs/atom_dac3.o src/.libs/atom_damr.o src/.libs/atom_dref.o
src/.libs/atom_elst.o src/.libs/atom_enca.o src/.libs/atom_encv.o
src/.libs/atom_free.o src/.libs/atom_ftyp.o src/.libs/atom_ftab.o
src/.libs/atom_gmin.o src/.libs/atom_hdlr.o src/.libs/atom_hinf.o
src/.libs/atom_hnti.o src/.libs/atom_href.o src/.libs/atom_mdat.o
src/.libs/atom_mdhd.o src/.libs/atom_meta.o src/.libs/atom_mp4s.o
src/.libs/atom_mp4v.o src/.libs/atom_mvhd.o src/.libs/atom_nmhd.o
src/.libs/atom_ohdr.o src/.libs/atom_pasp.o src/.libs/atom_root.o
src/.libs/atom_rtp.o src/.libs/atom_s263.o src/.libs/atom_sdp.o
src/.libs/atom_sdtp.o src/.libs/atom_smi.o src/.libs/atom_sound.o
src/.libs/atom_standard.o src/.libs/atom_stbl.o src/.libs/atom_stdp.o
src/.libs/atom_stsc.o src/.libs/atom_stsd.o src/.libs/atom_stsz.o
src/.libs/atom_stz2.o src/.libs/atom_text.o src/.libs/atom_tfhd.o
src/.libs/atom_tkhd.o src/.libs/atom_treftype.o src/.libs/atom_trun.o
src/.libs/atom_tx3g.o src/.libs/atom_udta.o src/.libs/atom_url.o
src/.libs/atom_urn.o src/.libs/atom_uuid.o src/.libs/atom_video.o
src/.libs/atom_vmhd.o src/.libs/cmeta.o src/.libs/descriptors.o
src/.libs/exception.o src/.libs/isma.o src/.libs/mp4.o src/.libs/mp4atom.o
src/.libs/mp4container.o src/.libs/mp4descriptor.o src/.libs/mp4file.o
src/.libs/mp4file_io.o src/.libs/mp4info.o src/.libs/mp4meta.o
src/.libs/mp4property.o src/.libs/mp4track.o src/.libs/mp4util.o
src/.libs/ocidescriptors.o src/.libs/odcommands.o
src/.libs/qosqualifiers.o src/.libs/rtphint.o src/.libs/text.o
src/bmff/.libs/typebmff.o src/itmf/.libs/CoverArtBox.o
src/itmf/.libs/Tags.o src/itmf/.libs/generic.o src/itmf/.libs/type.o
src/qtff/.libs/ColorParameterBox.o src/qtff/.libs/PictureAspectRatioBox.o
src/qtff/.libs/coding.o libplatform/io/.libs/File.o
libplatform/io/.libs/FileSystem.o libplatform/prog/.libs/option.o
libplatform/sys/.libs/error.o libplatform/time/.libs/time.o
libplatform/io/.libs/File_posix.o libplatform/io/.libs/FileSystem_posix.o
libplatform/number/.libs/random_posix.o
libplatform/process/.libs/process_posix.o
libplatform/time/.libs/time_posix.o libutil/.libs/Database.o
libutil/.libs/Timecode.o libutil/.libs/TrackModifier.o
libutil/.libs/Utility.o libutil/.libs/crc.o libutil/.libs/other.o
-L/opt/local/lib -arch ppc -Wl,-current_version -Wl,1.9.1
-Wl,-compatibility_version -Wl,1.0.0 -install_name
/opt/local/lib/libmp4v2.1.dylib -compatibility_version 11 -current_version
11.1 -Wl,-single_module
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: more than one:
-current_version option specified
[ . . snip . . ]
make: *** [libmp4v2.la] Error 1
}}}
As someone earlier commented here, first I tried:
{{{
$ port dir mp4v2
/opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/mp4v2
$ cd $(port dir mp4v2)
$ patch -p0 < ~/incoming/mp4v2-1.9.1-libversion.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru ../mp4v2-1.9.1-orig/GNUmakefile.in ./GNUmakefile.in
|--- ../mp4v2-1.9.1-orig/GNUmakefile.in 2009-07-14 02:25:44.000000000
+0300
|+++ ./GNUmakefile.in 2009-10-10 11:12:15.000000000 +0300
--------------------------
File to patch: ^C
}}}
To apply the patch, clearly I needed to find the file GNUmakefile.in, and
examining the directory structure, got there this way instead:
{{{
$ port work mp4v2
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mp4v2/work
$ cd $(port work mp4v2)
$ cd mp4v2-1.9.1
$ patch -p0 < ~/incoming/mp4v2-1.9.1-libversion.patch
patching file ./GNUmakefile.in
patching file ./configure
}}}
(Note: So when patching a file in the failed build, you want to patch the
work directory for the port, and not the directory containing the
Portfile.)
The port was then able to build and install (I would guess you only need
to type the third line below, and the other two steps will be completed
automatically):
{{{
$ sudo port build mp4v2
$ sudo port destroot mp4v2
$ sudo port install mp4v2
}}}
--
Ticket URL: <http://trac.macports.org/ticket/21007#comment:33>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list