[MacPorts] #55009: gstreamer1-gst-plugins-bad @1.12.3: fatal error: 'openjpeg-2.2/openjpeg.h' file not found (was: gstreamer1-gst-plugins-bad 1.12.3 build fails on Sierra 10.12.6 with Xcode 9.0)

MacPorts noreply at macports.org
Thu Oct 5 22:51:12 UTC 2017


#55009: gstreamer1-gst-plugins-bad @1.12.3: fatal error: 'openjpeg-2.2/openjpeg.h'
file not found
-----------------------------------------+-----------------
  Reporter:  rbdavis                     |      Owner:
      Type:  defect                      |     Status:  new
  Priority:  Normal                      |  Milestone:
 Component:  ports                       |    Version:
Resolution:                              |   Keywords:
      Port:  gstreamer1-gst-plugins-bad  |
-----------------------------------------+-----------------
Changes (by ryandesign):

 * port:   => gstreamer1-gst-plugins-bad


Old description:

> I have two 10.12.6 systems, both with Xcode 9.0 (core and command-line
> tools). When doing 'port upgrade outdated', one fails on gstreamer1-gst-
> plugins-bad-1.12.3_0 and the other succeeds. The failing system is
> complaining about some inconsistency between a QuartzCore library and its
> stub file. Both the library and the stub file appear identical on both
> systems.
>
> Here are the error messages from the end of the logfile:
>
> '':info:build libtool: link: /usr/bin/clang  -o .libs/libgstopengl.so
> -bundle  .libs/libgstopengl_la-gstopengl.o .... [ very long command ]
> :info:build ld: warning: text-based stub file
> /System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd and
> library file /System/Library/Frameworks//QuartzCore.framework/QuartzCore
> are out of sync. Falling back to library file for linking.
> :info:build ld: warning: text-based stub file
> /System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd and
> library file /System/Library/Frameworks//QuartzCore.framework/QuartzCore
> are out of sync. Falling back to library file for linking.
> :info:build libtool: link: ( cd ".libs" && rm -f "libgstopengl.la" && ln
> -s "../libgstopengl.la" "libgstopengl.la" )
> :info:build make[3]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
> -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-
> bad-1.12.3/ext/gl'
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
> -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-
> bad-1.12.3/ext'
> :info:build make[1]: *** [all-recursive] Error 1
> :info:build make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
> -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-bad-1.12.3'
> :info:build make: *** [all] Error 2
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
> -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-bad-1.12.3'
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
> -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-bad-1.12.3"
> && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch x86_64"
> :info:build Exit code: 2
> :error:build Failed to build gstreamer1-gst-plugins-bad: command
> execution failed
> :debug:build Error code: CHILDSTATUS 40139 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/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
> -gst-plugins-bad/gstreamer1-gst-plugins-bad/main.log for details.
> ''
>
> Anyone have any idea why my build fails on one system but not the other?
>
> Thanks!

New description:

 I have two 10.12.6 systems, both with Xcode 9.0 (core and command-line
 tools). When doing 'port upgrade outdated', one fails on gstreamer1-gst-
 plugins-bad-1.12.3_0 and the other succeeds. The failing system is
 complaining about some inconsistency between a QuartzCore library and its
 stub file. Both the library and the stub file appear identical on both
 systems.

 Here are the error messages from the end of the logfile:

 {{{
 :info:build libtool: link: /usr/bin/clang  -o .libs/libgstopengl.so
 -bundle  .libs/libgstopengl_la-gstopengl.o .... [ very long command ]
 :info:build ld: warning: text-based stub file
 /System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd and
 library file /System/Library/Frameworks//QuartzCore.framework/QuartzCore
 are out of sync. Falling back to library file for linking.
 :info:build ld: warning: text-based stub file
 /System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd and
 library file /System/Library/Frameworks//QuartzCore.framework/QuartzCore
 are out of sync. Falling back to library file for linking.
 :info:build libtool: link: ( cd ".libs" && rm -f "libgstopengl.la" && ln
 -s "../libgstopengl.la" "libgstopengl.la" )
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
 -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-
 bad-1.12.3/ext/gl'
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
 -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-
 bad-1.12.3/ext'
 :info:build make[1]: *** [all-recursive] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
 -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-bad-1.12.3'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
 -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-bad-1.12.3'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
 -gst-plugins-bad/gstreamer1-gst-plugins-bad/work/gst-plugins-bad-1.12.3"
 && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch x86_64"
 :info:build Exit code: 2
 :error:build Failed to build gstreamer1-gst-plugins-bad: command execution
 failed
 :debug:build Error code: CHILDSTATUS 40139 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/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1
 -gst-plugins-bad/gstreamer1-gst-plugins-bad/main.log for details.
 }}}

 Anyone have any idea why my build fails on one system but not the other?

 Thanks!

--

Comment:

 The log shows the real error is:

 {{{
 :info:build In file included from gstopenjpegdec.c:27:
 :info:build In file included from ./gstopenjpegdec.h:29:
 :info:build ./gstopenjpeg.h:42:12: fatal error: 'openjpeg-2.2/openjpeg.h'
 file not found
 :info:build #  include <openjpeg-2.2/openjpeg.h>
 :info:build            ^~~~~~~~~~~~~~~~~~~~~~~~~
 }}}

 So it looks like the problems are that even though gstreamer1-gst-plugins-
 bad declares a dependency on openjpeg15, it actually uses openjpeg, and
 openjpeg was updated from 2.2 to 2.3 today, and gstreamer1-gst-plugins-bad
 does not support openjpeg 2.3.

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


More information about the macports-tickets mailing list