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)
Change History (21)
Changed 11 years ago by shaun.thomas.mccloud@…
comment:1 Changed 11 years ago by mf2k (Frank Schima)
Keywords: | mavericks added |
---|---|
Owner: | changed from macports-tickets@… to rmstonecipher@… |
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:9 follow-up: 12 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 follow-up: 13 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 Mavericks → gstreamer010 @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 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=0This 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 follow-up: 15 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@…
Attachment: | patch-gstreamer010-Portfile.diff added |
---|
Portfile patch
Changed 11 years ago by mike.c.wilding@…
Attachment: | patch-gst-gstdatetime.c.diff added |
---|
patch to gstdatetime.c
comment:15 follow-up: 16 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 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: | new → closed |
In the future, please Cc the port maintainers (
port info --maintainers gstreamer010
).