I kept getting:
---> Building gstreamer1-gst-plugins-bad
Error: Failed to build gstreamer1-gst-plugins-bad: command execution failed
Error: 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.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port meld failed
And the log had:
:info:build libtool: compile: /usr/bin/clang -arch x86_64
-DHAVE_CONFIG_H -I. -I../../.. -I/opt/local/include -L/opt/local/lib
-I../../../gst-libs -I../../../gst-libs -DGST_USE_UNSTABLE_API
-D_REENTRANT -I/opt/local/include/gstreamer-1.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-DGST_USE_UNSTABLE_API -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS
-Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
-Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self
-Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs -g
-pipe -Os -std=c99 -funroll-loops -fstrict-aliasing -arch x86_64 -MT
libgstmpegts_1.0_la-gst-dvb-descriptor.lo -MD -MP -MF
.deps/libgstmpegts_1.0_la-gst-dvb-descriptor.Tpo -c
gst-dvb-descriptor.c -fno-common -DPIC -o
.libs/libgstmpegts_1.0_la-gst-dvb-descriptor.o
:info:build clang: warning: argument unused during compilation:
'-L/opt/local/lib' [-Wunused-command-line-argument]
:info:build /usr/include/signal.h:79: syntax error, unexpected
identifier, expecting ')' in 'void (* _Nullable bsd_signal(int, void
(* _Nullable)(int)))(int);' at 'bsd_signal'
:info:build /usr/include/signal.h:79: syntax error, unexpected ')',
expecting ',' or ';' in 'void (* _Nullable bsd_signal(int, void (*
_Nullable)(int)))(int);' at ')'
:info:build /usr/include/signal.h:99: syntax error, unexpected
identifier, expecting ')' in 'void (* _Nullable sigset(int, void (*
_Nullable)(int)))(int);' at 'sigset'
:info:build /usr/include/signal.h:99: syntax error, unexpected ')',
expecting ',' or ';' in 'void (* _Nullable sigset(int, void (*
_Nullable)(int)))(int);' at ')'
:info:build /usr/include/pthread/qos.h:113: syntax error, unexpected
RESTRICT, expecting ')' or ',' in ' qos_class_t * _Nullable restrict
__qos_class,' at 'restrict'
:info:build /usr/include/pthread/qos.h:114: syntax error, unexpected
INT, expecting identifier or '(' or '*' in ' int * _Nullable restrict
__relative_priority);' at 'int'
:info:build /usr/include/pthread/qos.h:114: syntax error, unexpected
')', expecting ',' or ';' in ' int * _Nullable restrict
__relative_priority);' at ')'
:info:build /usr/include/pthread/qos.h:185: syntax error, unexpected
RESTRICT, expecting ')' or ',' in ' qos_class_t * _Nullable restrict
__qos_class,' at 'restrict'
:info:build /usr/include/pthread/qos.h:186: syntax error, unexpected
INT, expecting identifier or '(' or '*' in ' int * _Nullable restrict
__relative_priority);' at 'int'
:info:build /usr/include/pthread/qos.h:186: syntax error, unexpected
')', expecting ',' or ';' in ' int * _Nullable restrict
__relative_priority);' at ')'
:info:build /usr/include/pthread/pthread.h:243: syntax error,
unexpected '*', expecting ')' or ',' in ' void * _Nullable * _Nonnull
restrict, size_t * restrict);' at '*'
:info:build /usr/include/pthread/pthread.h:243: syntax error,
unexpected ')', expecting identifier or '(' in ' void * _Nullable *
_Nonnull restrict, size_t * restrict);' at ')'
:info:build /usr/include/pthread/pthread.h:247: syntax error,
unexpected '*', expecting ')' or ',' in ' void * _Nullable * _Nonnull
restrict);' at '*'
:info:build /usr/include/pthread/pthread.h:295: syntax error,
unexpected RESTRICT, expecting ')' or ',' in ' const
pthread_condattr_t * _Nullable restrict)' at 'restrict'
:info:build /usr/include/pthread/pthread.h:304: syntax error,
unexpected RESTRICT, expecting ')' or ',' in ' const struct timespec
* _Nullable restrict)' at 'restrict'
:info:build /usr/include/pthread/pthread.h:326: syntax error,
unexpected '*', expecting ')' or ',' in 'int pthread_create(pthread_t
_Nullable * _Nonnull restrict,' at '*'
:info:build /usr/include/pthread/pthread.h:327: syntax error,
unexpected ',', expecting identifier or '(' or '*' or ';' in ' const
pthread_attr_t * _Nullable restrict,' at ','
:info:build /usr/include/pthread/pthread.h:328: syntax error,
unexpected '*' in ' void * _Nullable (* _Nonnull)(void * _Nullable),'
at '*'
:info:build /usr/include/pthread/pthread.h:328: syntax error,
unexpected ')', expecting ',' or ';' in ' void * _Nullable (*
_Nonnull)(void * _Nullable),' at ')'
:info:build /usr/include/pthread/pthread.h:329: syntax error,
unexpected ')', expecting identifier or '(' or '*' or ';' in ' void *
_Nullable restrict);' at ')'
:info:build /usr/include/pthread/pthread.h:349: syntax error,
unexpected RESTRICT, expecting ')' or ',' in 'int
pthread_getschedparam(pthread_t , int * _Nullable restrict,' at 'restrict'
:info:build /usr/include/pthread/pthread.h:350: syntax error,
unexpected ')', expecting identifier or '(' or '*' or ';' in ' struct
sched_param * _Nullable restrict);' at ')'
:info:build /usr/include/pthread/pthread.h:353: syntax error,
unexpected identifier, expecting ',' or ';' in 'void* _Nullable
pthread_getspecific(pthread_key_t);' at 'pthread_getspecific'
:info:build /usr/include/pthread/pthread.h:356: syntax error,
unexpected '*', expecting ')' or ',' in 'int pthread_join(pthread_t ,
void * _Nullable * _Nullable)' at '*'
:info:build /usr/include/pthread/pthread.h:374: syntax error,
unexpected RESTRICT, expecting ')' or ',' in ' const
pthread_mutexattr_t * _Nullable restrict);' at 'restrict'
:info:build /usr/include/pthread/pthread.h:432: syntax error,
unexpected RESTRICT, expecting ')' or ',' in ' const
pthread_rwlockattr_t * _Nullable restrict)' at 'restrict'
:info:build /usr/include/pthread/pthread.h:529: syntax error,
unexpected '*', expecting ')' or ',' in ' pthread_t _Nullable *
_Nonnull, const pthread_attr_t * _Nullable,' at '*'
:info:build /usr/include/pthread/pthread.h:530: syntax error,
unexpected VOID, expecting identifier or '(' or '*' in ' void *
_Nullable (* _Nonnull)(void * _Nullable), void * _Nullable);' at 'void'
:info:build /usr/include/pthread/pthread.h:530: syntax error,
unexpected '*' in ' void * _Nullable (* _Nonnull)(void * _Nullable),
void * _Nullable);' at '*'
:info:build /usr/include/pthread/pthread.h:530: syntax error,
unexpected ')', expecting ',' or ';' in ' void * _Nullable (*
_Nonnull)(void * _Nullable), void * _Nullable);' at ')'
:info:build /usr/include/pthread/pthread.h:530: syntax error,
unexpected ')', expecting ',' or ';' in ' void * _Nullable (*
_Nonnull)(void * _Nullable), void * _Nullable);' at ')'
:info:build /usr/include/pthread/pthread.h:540: syntax error,
unexpected identifier in '_Nullable pthread_t
pthread_from_mach_thread_np(mach_port_t);' at '_Nullable'
and then proceeds to ignore this error, do a bunch more building, and
then failing again later with other similar errors and:
:info:build ./gstopenjpeg.h:42:12: fatal error:
'openjpeg-2.1/openjpeg.h' file not found
and finally
:error:build Failed to build gstreamer1-gst-plugins-bad: command
execution failed