Opened 4 years ago

Closed 4 years ago

#62524 closed defect (fixed)

gstreamer010 @0.10.36_1: error: implicit declaration of function 'gst_init' is invalid in C99

Reported by: cooljeanius (Eric Gallager) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur catalina Cc:
Port: gstreamer010

Description

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

Attachments (1)

gstreamer010out.log (537.9 KB) - added by cooljeanius (Eric Gallager) 4 years ago.
terminal output from attempting to build gstreamer010

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by cooljeanius (Eric Gallager)

Attachment: gstreamer010out.log added

terminal output from attempting to build gstreamer010

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

Resolution: fixed
Status: acceptedclosed

In 553ec5cc09c409d2f766b20a9a7bbd141af9409f/macports-ports (master):

gstreamer010: Fix implicit declaration of function

Closes: #62524

Note: See TracTickets for help on using tickets.