Re: [MacPorts] #25942: aacgain 1.9 update

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #25942: aacgain 1.9 update

MacPorts
#25942: aacgain 1.9 update
-------------------------+--------------------------------
  Reporter:  ryandesign  |      Owner:  macports-tickets@…
      Type:  update      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  1.9.1
Resolution:              |   Keywords:
      Port:  aacgain     |
-------------------------+--------------------------------

Comment (by JacksonIsaac):

 Replying to [comment:8 macports@…]:
 > It looks like Miguel never created the 1.9 tar ball. Please consider
 using an alternative complete source like http://www.deb-
 multimedia.org/pool/main/a/aacgain/aacgain_1.9.orig.tar.gz or one of it's
 mirrors.

 I tried to update the port to v1.9 using your source but I get an error
 while building mp4v2 phase for some reason.

 {{{
 :msg:main --->  Computing dependencies for aacgain:debug:main Searching
 for dependency: mp4v2
 :debug:main Found Dependency: receipt exists for mp4v2
 :debug:main Searching for dependency: faad2
 :debug:main Didn't find receipt, going to depspec regex for: faad2
 :debug:main Changing to port directory: /Users/jacksonisaac/Development
 /macports-ports/audio/faad2
 :debug:main OS darwin/17.5.0 (Mac OS X 10.13) arch i386
 :debug:main adding the default universal variant
 :debug:main Reading variant descriptions from
 /Users/jacksonisaac/Development/macports-
 ports/_resources/port1.0/variant_descriptions.conf
 :debug:main Running callback
 portconfigure::add_automatic_compiler_dependencies
 :debug:main Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 :debug:main Running callback
 portbuild::add_automatic_buildsystem_dependencies
 :debug:main Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 :debug:main faad2 has no conflicts
 :debug:main Starting logging for faad2
 :debug:main Executing org.macports.main (aacgain)
 :debug:main dropping privileges: euid changed to 502, egid changed to 501.
 :debug:main Skipping completed org.macports.fetch (aacgain)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.checksum (aacgain)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.extract (aacgain)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.patch (aacgain)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.configure (aacgain)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:build build phase started at Sun Apr  8 17:14:51 IST 2018
 :notice:build --->  Building aacgain
 :debug:build Executing org.macports.build (aacgain)
 :debug:build Environment:
 :debug:build CC_PRINT_OPTIONS='YES'
 :debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/.CC_PRINT_OPTIONS'
 :debug:build CPATH='/opt/local/include'
 :debug:build LIBRARY_PATH='/opt/local/lib'
 :debug:build MACOSX_DEPLOYMENT_TARGET='10.13'
 :info:build Executing:  cd "/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9" && /usr/bin/make -j4 -w all
 :debug:build system:  cd "/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9" && /usr/bin/make -j4 -w all
 :info:build make: Entering directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9'
 :info:build Making all in mp3gain
 :info:build make[1]: Entering directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/mp3gain'
 :info:build Making all in mpglibDBL
 :info:build make[2]: Entering directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/mp3gain/mpglibDBL'
 :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-
 am
 :info:build make[3]: Entering directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/mp3gain/mpglibDBL'
 :info:build make[3]: Nothing to be done for `all-am'.
 :info:build make[3]: Leaving directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/mp3gain/mpglibDBL'
 :info:build make[2]: Leaving directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/mp3gain/mpglibDBL'
 :info:build make[2]: Entering directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/mp3gain'
 :info:build make[2]: Nothing to be done for `all-am'.
 :info:build make[2]: Leaving directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/mp3gain'
 :info:build make[1]: Leaving directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/mp3gain'
 :info:build Making all in aacgain
 :info:build make[1]: Entering directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/aacgain'
 :info:build /usr/bin/clang++ -DHAVE_CONFIG_H  -I../mp4v2/include
 -I../mp4v2 -I../faad2/libfaad -I../faad2/include -I../mp3gain
 -I/opt/local/include  -pipe -Os -stdlib=libc++ -arch x86_64 -MT aacgain.o
 -MD -MP -MF .deps/aacgain.Tpo -c -o aacgain.o aacgain.cpp
 :info:build /usr/bin/clang -DHAVE_CONFIG_H  -I../mp4v2/include -I../mp4v2
 -I../faad2/libfaad -I../faad2/include -I../mp3gain  -I/opt/local/include
 -pipe -Os -DHAS_LRINTF -arch x86_64 -MT decoder.o -MD -MP -MF
 .deps/decoder.Tpo -c -o decoder.o decoder.c
 :info:build /usr/bin/clang -DHAVE_CONFIG_H  -I../mp4v2/include -I../mp4v2
 -I../faad2/libfaad -I../faad2/include -I../mp3gain  -I/opt/local/include
 -pipe -Os -DHAS_LRINTF -arch x86_64 -MT syntax.o -MD -MP -MF
 .deps/syntax.Tpo -c -o syntax.o syntax.c
 :info:build /usr/bin/clang++ -DHAVE_CONFIG_H  -I../mp4v2/include
 -I../mp4v2 -I../faad2/libfaad -I../faad2/include -I../mp3gain
 -I/opt/local/include  -pipe -Os -stdlib=libc++ -arch x86_64 -MT
 MP4MetaFile.o -MD -MP -MF .deps/MP4MetaFile.Tpo -c -o MP4MetaFile.o
 MP4MetaFile.cpp
 :info:build make[1]: *** No rule to make target
 `../faad2/libfaad/libfaad.la', needed by `aacgain'.  Stop.
 :info:build make[1]: *** Waiting for unfinished jobs....
 :info:build In file included from decoder.c:In file included from
 39syntax.c:43:
 :info:build :
 :info:build ../faad2/libfaad/common.h../faad2/libfaad/common.h:39:12:
 fatal error: '../config.h' file not found
 :info:build :39:12: fatal error: '../config.h' file not found
 :info:build #  include "../config.h"#  include "../config.h"
 :info:build            ^~~~~~~~~~~~~
 :info:build            ^~~~~~~~~~~~~
 :info:build In file included from MP4MetaFile.cpp:20:
 :info:build In file included from ./MP4MetaFile.h:26:
 :info:build In file included from ../mp4v2/src/impl.h:6:
 :info:build In file included from ../mp4v2/src/src.h:6:
 :info:build In file included from ../mp4v2/libplatform/platform.h:24:
 :info:build ../mp4v2/libplatform/platform_posix.h:6:10: fatal error:
 'libplatform/config.h' file not found
 :info:build #include "libplatform/config.h"
 :info:build          ^~~~~~~~~~~~~~~~~~~~~~
 :info:build 1 error generated.
 :info:build 1 error generated.
 :info:build make[1]: *** [decoder.o] Error 1
 :info:build make[1]: *** [syntax.o] Error 1
 :info:build In file included from aacgain.cpp:43:
 :info:build In file included from ./MP4MetaFile.h:26:
 :info:build In file included from ../mp4v2/src/impl.h:6:
 :info:build In file included from ../mp4v2/src/src.h:6:
 :info:build In file included from ../mp4v2/libplatform/platform.h:24:
 :info:build ../mp4v2/libplatform/platform_posix.h:6:10: fatal error:
 'libplatform/config.h' file not found
 :info:build #include "libplatform/config.h"
 :info:build          ^~~~~~~~~~~~~~~~~~~~~~
 :info:build 1 error generated.
 :info:build make[1]: *** [MP4MetaFile.o] Error 1
 :info:build 1 error generated.
 :info:build make[1]: *** [aacgain.o] Error 1
 :info:build make[1]: Leaving directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9/aacgain'
 :info:build make: *** [all-recursive] Error 1
 :info:build make: Leaving directory `/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9'
 :info:build Command failed:  cd "/opt/local/var/macports/build
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/work/aacgain-1.9" && /usr/bin/make -j4 -w all
 :info:build Exit code: 2
 :error:build Failed to build aacgain: command execution failed
 :debug:build Error code: CHILDSTATUS 90219 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See /opt/local/var/macports/logs
 /_Users_jacksonisaac_Development_macports-
 ports_audio_aacgain/aacgain/main.log for details.
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/25942#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #25942: aacgain 1.9 update

MacPorts
#25942: aacgain 1.9 update
-------------------------+--------------------------------
  Reporter:  ryandesign  |      Owner:  macports-tickets@…
      Type:  update      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  1.9.1
Resolution:              |   Keywords:
      Port:  aacgain     |
-------------------------+--------------------------------

Comment (by RichieB2B):

 You will need to run "configure" and "make" inside the faad2 and mp4v2
 subdirs before building aacgain itself. Doing so I ran into this:

 {{{
 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
 -I./include -I./include -I. -I.  -Wall -Wformat -g -O2 -fvisibility=hidden
 -c -o src/bmff/typebmff.lo src/bmff/typebmff.cpp
 mkdir src/bmff/.libs
  g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2
 -fvisibility=hidden -c src/bmff/typebmff.cpp  -fno-common -DPIC -o
 src/bmff/.libs/typebmff.o
 src/bmff/typebmff.cpp:38:49: error: cannot define or redeclare 'data' here
 because namespace 'bmff' does not enclose namespace
 'Enum<mp4v2::impl::bmff::LanguageCode,
       mp4v2::impl::bmff::LanguageCode::ILC_UNDEFINED>'
 const EnumLanguageCode::Entry EnumLanguageCode::data[] = {
                               ~~~~~~~~~~~~~~~~~~^
 1 error generated.
 make: *** [src/bmff/typebmff.lo] Error 1
 }}}

 This can be fixed by adding these lines to mp4v2/src/src.h
 {{{
 #define _MSC_VER 2000
 #define strnicmp(x,y,z) strncasecmp(x,y,z)
 }}}

 After this aacgain is build just fine.

--
Ticket URL: <https://trac.macports.org/ticket/25942#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS