[MacPorts] #62524: gstreamer010 @0.10.36_1: error: implicit declaration of function 'gst_init' is invalid in C99
MacPorts
noreply at macports.org
Mon Mar 22 19:40:14 UTC 2021
#62524: gstreamer010 @0.10.36_1: error: implicit declaration of function 'gst_init'
is invalid in C99
-----------------------------+--------------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: bigsur catalina | Port: gstreamer010
-----------------------------+--------------------------
Another victim of `-Werror=implicit-function-declaration` being on by
default now:
{{{
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36/gst
/tmp-introspectnisw2ize/Gst-0.10.c:602:3: error: implicit declaration of
function 'gst_init' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
gst_init(NULL, NULL);
^
1 error generated.
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py",
line 117, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py",
line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/spawn.py",
line 87, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/bin/clang' failed with
exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/local/bin/g-ir-scanner", line 99, in <module>
sys.exit(scanner_main(sys.argv))
File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py",
line 579, in scanner_main
shlibs = create_binary(transformer, options, args)
File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py",
line 415, in create_binary
binary = compile_introspection_binary(options,
File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line
309, in compile_introspection_binary
return dc.run()
File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line
163, in run
introspection_obj = self._compile(c_path)
File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line
189, in _compile
return self._compiler.compile(cflags,
File "/opt/local/lib/gobject-introspection/giscanner/ccompiler.py", line
314, in compile
return self.compiler.compile(sources=source,
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py",
line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py",
line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/clang' failed with exit
code 1
make[4]: *** [Gst-0.10.gir] Error 1
make[4]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36/gst'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36/gst'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36/gst'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36'
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36"
&& /usr/bin/make -j16 -w all
CFLAGS="-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
LDFLAGS="-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
Exit code: 2
Error: Failed to build gstreamer010: command execution failed
DEBUG: Error code: CHILDSTATUS 10629 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62524>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list