Opened 7 years ago

Closed 7 years ago

#55009 closed defect (fixed)

gstreamer1-gst-plugins-bad @1.12.3: fatal error: 'openjpeg-2.2/openjpeg.h' file not found

Reported by: rbdavis (Roger Davis) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gstreamer1-gst-plugins-bad

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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!

Attachments (1)

main.log (1.6 MB) - added by rbdavis (Roger Davis) 7 years ago.
main.log

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by rbdavis (Roger Davis)

Attachment: main.log added

main.log

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: gstreamer1-gst-plugins-bad added
Summary: gstreamer1-gst-plugins-bad 1.12.3 build fails on Sierra 10.12.6 with Xcode 9.0gstreamer1-gst-plugins-bad @1.12.3: fatal error: 'openjpeg-2.2/openjpeg.h' file not found

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.

comment:2 Changed 7 years ago by rbdavis (Roger Davis)

Nice catch, Ryan! My failed system is indeed using openjpeg 2.3, while the working system is at 2.2. I ran 'port update outdated' on the latter only moments before the former. I won't hit myself over the head too hard given that the jpeg error message occurred 200 lines in advance of the Quartzcore error messages. (Sure would be nice if doomed builds would exit sooner rather than later!)

I can figure out how to get the bad system back to 2.2, I'm sure, but how do I then run 'port update outdated' on that system without clobbering what I just did?

comment:3 Changed 7 years ago by rbdavis (Roger Davis)

Sorry, meant to say 'port UPGRADE outdated' above, not UPDATE.

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

wiki:howto/InstallingOlderPort shows how to install an older version of a port. If you have openjpeg 2.3 installed (but not activated) and openjpeg 2.2 installed and activated, then when you upgrade other ports, MacPorts will not attempt to reactivate openjpeg 2.3 and openjpeg 2.2 will be used.

comment:5 Changed 7 years ago by rbdavis (Roger Davis)

Thanks much, will try that!

comment:6 Changed 7 years ago by rbdavis (Roger Davis)

That worked fine, but I guess this is still a bonafide gstreamer1-gst-plugins-bad 1.12.3 bug (with regard to the openjpeg issue). Should I file a new bug report and close this one, or will someone pick this up here?

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

This ticket will do fine.

comment:8 Changed 7 years ago by Schamschula (Marius Schamschula)

Owner: set to Schamschula
Resolution: fixed
Status: newclosed

In 0a343625efff5e21ce6f5df6d52744c41d1bae7e/macports-ports:

gstreamer1-gst-plugins-bad: revision bump, patch for openjpeg 2.3

Closes: #55009

Note: See TracTickets for help on using tickets.