Opened 11 years ago

Closed 11 years ago

#40858 closed defect (fixed)

gstreamer010 @0.10.30: /opt/local/include/glib-2.0/glib/gmessages.h:199:11: error: use of undeclared identifier 'g_log_domain_gstreamer'

Reported by: shaun.thomas.mccloud@… Owned by: rmstonecipher@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: joelburton (Joel Burton), MaddTheSane (C.W. Betts), kekeruus@…, essandess (Steve Smith), mike.c.wilding@…, hobbsilla
Port: gstreamer010

Description

After Installing MacPorts manually on Mavericks today I wanted to install wine-devel so I can hopefully require one less reboot for gaming. However, gstreamer010 will not install. I have attached the main.log for this attempt.

Attachments (4)

main.log (70.4 KB) - added by shaun.thomas.mccloud@… 11 years ago.
main.2.log (9.7 KB) - added by essandess (Steve Smith) 11 years ago.
sudo port install gstreamer010 +universal
patch-gstreamer010-Portfile.diff (392 bytes) - added by mike.c.wilding@… 11 years ago.
Portfile patch
patch-gst-gstdatetime.c.diff (328 bytes) - added by mike.c.wilding@… 11 years ago.
patch to gstdatetime.c

Download all attachments as: .zip

Change History (21)

Changed 11 years ago by shaun.thomas.mccloud@…

Attachment: main.log added

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Keywords: mavericks added
Owner: changed from macports-tickets@… to rmstonecipher@…

In the future, please Cc the port maintainers (port info --maintainers gstreamer010).

comment:2 Changed 11 years ago by joelburton (Joel Burton)

Cc: joel@… added

Cc Me!

comment:3 Changed 11 years ago by MaddTheSane (C.W. Betts)

Cc: computers57@… added

Cc Me!

comment:4 Changed 11 years ago by kekeruus@…

Cc: kekeruus@… added

Cc Me!

comment:5 Changed 11 years ago by essandess (Steve Smith)

Cc: s.t.smith@… added

Cc Me!

comment:6 Changed 11 years ago by essandess (Steve Smith)

And the install command "sudo port -d install gstreamer010 +universal" fails to compile:

  CC     libgstreamer_0.10_la-gstdatetime.lo
In file included from gstdatetime.c:24:
In file included from ./glib-compat-private.h:26:
In file included from /opt/local/include/glib-2.0/glib.h:64:
/opt/local/include/glib-2.0/glib/gmessages.h:199:11: error: use of undeclared identifier 'g_log_domain_gstreamer'
  g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
          ^
<command line>:4:22: note: expanded from here
#define G_LOG_DOMAIN g_log_domain_gstreamer
                     ^
In file included from gstdatetime.c:24:
In file included from ./glib-compat-private.h:26:
In file included from /opt/local/include/glib-2.0/glib.h:64:
/opt/local/include/glib-2.0/glib/gmessages.h:210:11: error: use of undeclared identifier 'g_log_domain_gstreamer'
  g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, args);
          ^
<command line>:4:22: note: expanded from here
#define G_LOG_DOMAIN g_log_domain_gstreamer
                     ^
In file included from gstdatetime.c:24:
In file included from ./glib-compat-private.h:26:
In file included from /opt/local/include/glib-2.0/glib.h:64:
/opt/local/include/glib-2.0/glib/gmessages.h:219:11: error: use of undeclared identifier 'g_log_domain_gstreamer'
  g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, format, args);
          ^
<command line>:4:22: note: expanded from here
#define G_LOG_DOMAIN g_log_domain_gstreamer
                     ^
In file included from gstdatetime.c:24:
In file included from ./glib-compat-private.h:26:
In file included from /opt/local/include/glib-2.0/glib.h:64:
/opt/local/include/glib-2.0/glib/gmessages.h:228:11: error: use of undeclared identifier 'g_log_domain_gstreamer'
  g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, format, args);
          ^
<command line>:4:22: note: expanded from here
#define G_LOG_DOMAIN g_log_domain_gstreamer
                     ^
In file included from gstdatetime.c:24:
In file included from ./glib-compat-private.h:26:
In file included from /opt/local/include/glib-2.0/glib.h:64:
/opt/local/include/glib-2.0/glib/gmessages.h:237:11: error: use of undeclared identifier 'g_log_domain_gstreamer'
  g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format, args);
          ^
<command line>:4:22: note: expanded from here
#define G_LOG_DOMAIN g_log_domain_gstreamer
                     ^
  CC     libgstreamer_0.10_la-gstdebugutils.lo
5 errors generated.
make[4]: *** [libgstreamer_0.10_la-gstdatetime.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36-x86_64/gst'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36-x86_64/gst'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36-x86_64/gst'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36-x86_64'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36-x86_64'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer010/gstreamer010/work/gstreamer-0.10.36-x86_64" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port gstreamer010 returned: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: command execution failed
    while executing
"proc-org.macports.build-build-0 org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
Warning: targets not executed for gstreamer010: org.macports.activate org.macports.build org.macports.destroot org.macports.install
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gstreamer010 failed

Changed 11 years ago by essandess (Steve Smith)

Attachment: main.2.log added

sudo port install gstreamer010 +universal

comment:7 Changed 11 years ago by MaddTheSane (C.W. Betts)

A similar problem is present in the gstreamer1 package.

comment:8 Changed 11 years ago by mike.c.wilding@…

Cc: mike.c.wilding@… added

Cc Me!

comment:9 Changed 11 years ago by mike.c.wilding@…

gmessages.h as mentioned in the compile log defines G_LOG_DOMAIN to a NULL character pointer if its value is not defined externally (line 143). It is defined somewhere to g_log_domain_gstreamer, which does not exist. As a workaround you can simply override the bad definition of G_LOG_DOMAIN by appending "-DG_LOG_DOMAIN=0" to the end of the "configure.cflags-append" in the Portfile (or rather a copy of the Portfile in a local Portfile repository). Alternatively try defining "g_log_domain_gstreamer" to 0 to avoid compiler warnings about macro re-definition of G_LOG_DOMAIN.

configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common -DG_LOG_DOMAIN=0

This allows gstreamer010 to build under Mavericks for me.

(According to http://lists.freedesktop.org/archives/gstreamer-bugs/2004-May/007234.html, g_log_domain_gstreamer used to exist in "gstlog.h". This file no longer exists in glib, but could be a clue to the location of the rogue definition.)

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

See also the ticket for gstreamer1: #40783

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

Keywords: mavericks removed
Summary: gstreamer010 will not install on Mavericksgstreamer010 @0.10.30: /opt/local/include/glib-2.0/glib/gmessages.h:199:11: error: use of undeclared identifier 'g_log_domain_gstreamer'

comment:12 in reply to:  9 Changed 11 years ago by essandess (Steve Smith)

Thanks -- this fix worked for me, allowing a successful build of wine-devel and winetricks on Mavericks.

For helpful specificity, the Portfile is at

./var/macports/sources/rsync.macports.org/release/tarballs/ports/gnome/gstreamer010/Portfile

Replying to mike.c.wilding@…:

gmessages.h as mentioned in the compile log defines G_LOG_DOMAIN to a NULL character pointer if its value is not defined externally (line 143). It is defined somewhere to g_log_domain_gstreamer, which does not exist. As a workaround you can simply override the bad definition of G_LOG_DOMAIN by appending "-DG_LOG_DOMAIN=0" to the end of the "configure.cflags-append" in the Portfile (or rather a copy of the Portfile in a local Portfile repository). Alternatively try defining "g_log_domain_gstreamer" to 0 to avoid compiler warnings about macro re-definition of G_LOG_DOMAIN.

configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common -DG_LOG_DOMAIN=0

This allows gstreamer010 to build under Mavericks for me.

(According to http://lists.freedesktop.org/archives/gstreamer-bugs/2004-May/007234.html, g_log_domain_gstreamer used to exist in "gstlog.h". This file no longer exists in glib, but could be a clue to the location of the rogue definition.)

comment:13 in reply to:  10 ; Changed 11 years ago by mike.c.wilding@…

The fix to gstdatetime.c from #40783 is also the appropriate fix for gstreamer010. I'm attaching a patch for gstdatetime.c and the necessary change to the Portfile to apply it.

Replying to ryandesign@…:

See also the ticket for gstreamer1: #40783

Changed 11 years ago by mike.c.wilding@…

Portfile patch

Changed 11 years ago by mike.c.wilding@…

patch to gstdatetime.c

comment:14 Changed 11 years ago by hobbsilla

Cc: hobbsilla@… added

Cc Me!

comment:15 in reply to:  13 ; Changed 11 years ago by hobbsilla

Replying to mike.c.wilding@…:

The fix to gstdatetime.c from #40783 is also the appropriate fix for gstreamer010. I'm attaching a patch for gstdatetime.c and the necessary change to the Portfile to apply it.

Replying to ryandesign@…:

See also the ticket for gstreamer1: #40783

I tried applying the patches and got " strip count O is not a number" and it failed to build afterwards.

comment:16 in reply to:  15 Changed 11 years ago by mike.c.wilding@…

Replying to hobbsilla@…:

There are working patches already in the trunk at https://trac.macports.org/browser/trunk/dports/gnome/gstreamer010 (r112463) submitted by toby.

Please disregard the patches attached to this ticket. Apologies. This ticket should be closed as this issue is already fixed.

Replying to mike.c.wilding@…:

The fix to gstdatetime.c from #40783 is also the appropriate fix for gstreamer010. I'm attaching a patch for gstdatetime.c and the necessary change to the Portfile to apply it.

Replying to ryandesign@…:

See also the ticket for gstreamer1: #40783

I tried applying the patches and got " strip count O is not a number" and it failed to build afterwards.

comment:17 Changed 11 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.