Opened 13 years ago

Closed 13 years ago

#31547 closed defect (fixed)

mp4v2 fails to build in Lion

Reported by: chocolate.camera@… Owned by: 0xced (Cédric Luthi)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc: jens.is.located@…, rmstonecipher@…
Port: mp4v2

Description

With ports tree updated (2011/10/09) I cannot build mp4v2, which the port mp4ip depends on (which contains mp4creator, which is what I need).

Tried on Mac OS X 10.7.1 Lion. This was the command line and output:

$ sudo port -v install mp4v2
--->  Computing dependencies for mp4v2.
--->  Building mp4v2
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mp4v2/mp4v2/work/mp4v2-1.9.1'
/bin/sh ./libtool --tag=CXX --mode=compile /Developer/usr/bin/clang++ -DHAVE_CONFIG_H   -I./include -I./include -I. -I. -I/opt/local/include -Wall -Wformat -pipe -O2 -arch x86_64 -fvisibility=hidden -c -o src/bmff/typebmff.lo src/bmff/typebmff.cpp
/bin/sh ./libtool --tag=CXX --mode=compile /Developer/usr/bin/clang++ -DHAVE_CONFIG_H   -I./include -I./include -I. -I. -I/opt/local/include -Wall -Wformat -pipe -O2 -arch x86_64 -fvisibility=hidden -c -o src/itmf/type.lo src/itmf/type.cpp
 /Developer/usr/bin/clang++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -I/opt/local/include -Wall -Wformat -pipe -O2 -arch x86_64 -fvisibility=hidden -c src/itmf/type.cpp  -fno-common -DPIC -o src/itmf/.libs/type.o
 /Developer/usr/bin/clang++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -I/opt/local/include -Wall -Wformat -pipe -O2 -arch x86_64 -fvisibility=hidden -c src/bmff/typebmff.cpp  -fno-common -DPIC -o src/bmff/.libs/typebmff.o
src/itmf/type.cpp:39:43: error: definition or redeclaration of 'data' not in a namespace enclosing 'Enum<mp4v2::impl::itmf::BasicType, 255>'
const EnumBasicType::Entry EnumBasicType::data[] = {
                           ~~~~~~~~~~~~~~~^
src/bmff/typebmff.cpp:38:49: error: definition or redeclaration of 'data' not in a namespace enclosing 'Enum<mp4v2::impl::bmff::LanguageCode, 0>'
const EnumLanguageCode::Entry EnumLanguageCode::data[] = {
                              ~~~~~~~~~~~~~~~~~~^
src/itmf/type.cpp:67:43: error: definition or redeclaration of 'data' not in a namespace enclosing 'Enum<mp4v2::impl::itmf::GenreType, 0>'
const EnumGenreType::Entry EnumGenreType::data[] = {
                           ~~~~~~~~~~~~~~~^
src/itmf/type.cpp:203:41: error: definition or redeclaration of 'data' not in a namespace enclosing 'Enum<mp4v2::impl::itmf::StikType, 255>'
const EnumStikType::Entry EnumStikType::data[] = {
                          ~~~~~~~~~~~~~~^
1 error generated.
src/itmf/type.cpp:219:47: error: definition or redeclaration of 'data' not in a namespace enclosing 'Enum<mp4v2::impl::itmf::AccountType, 255>'
const EnumAccountType::Entry EnumAccountType::data[] = {
                             ~~~~~~~~~~~~~~~~~^
make: *** [src/bmff/typebmff.lo] Error 1
make: *** Waiting for unfinished jobs....
src/itmf/type.cpp:229:47: error: definition or redeclaration of 'data' not in a namespace enclosing 'Enum<mp4v2::impl::itmf::CountryCode, 0>'
const EnumCountryCode::Entry EnumCountryCode::data[] = {
                             ~~~~~~~~~~~~~~~~~^
src/itmf/type.cpp:259:51: error: definition or redeclaration of 'data' not in a namespace enclosing 'Enum<mp4v2::impl::itmf::ContentRating, 255>'
const EnumContentRating::Entry EnumContentRating::data[] = {
                               ~~~~~~~~~~~~~~~~~~~^
6 errors generated.
make: *** [src/itmf/type.lo] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mp4v2/mp4v2/work/mp4v2-1.9.1'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mp4v2/mp4v2/work/mp4v2-1.9.1" && /usr/bin/make -j2 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for mp4v2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for mp4v2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mp4v2/mp4v2/main.log
Error: Status 1 encountered during processing.

Change History (4)

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

Keywords: mp4 removed
Owner: changed from macports-tickets@… to mp4v2

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

Cc: jens.is.located@… added
Owner: changed from mp4v2 to cedric.luthi@…

Has duplicate #31704.

Try cleaning and building with llvm-gcc-4.2 instead of clang:

sudo port clean mp4v2
sudo port install mp4v2 configure.compiler=llvm-gcc-4.2

Let us know if that works.

comment:3 Changed 13 years ago by jens.is.located@…

Yes, that did the trick :)

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rmstonecipher@… added
Keywords: clang added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.