Opened 11 years ago

Closed 11 years ago

#40783 closed defect (fixed)

gstreamer1 @1.0.9: /opt/local/include/glib-2.0/glib/gmessages.h:237:11: error: use of undeclared identifier 'g_log_domain_gstreamer'

Reported by: sarvi@… Owned by: rmstonecipher@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: skymoo (Adam Mercer), litlfred@…, petermisak (Peter Misak), takanori@…, whcordis@…, macports@…, captainproton1971 (Captain Proton), bonoba@…, fondacio@…, repollox@…, mail@…, razzfazz (Daniel Becker), hapaguy (Brian Kurt Fujikawa), hong@…
Port: gstreamer1

Description

I am trying to install gstreamer1 as part of installing xulrunner.

It errored out and logs show many errors, one of them being opt/local/include/glib-2.0/glib/gmessages.h:237:11: error: use of undeclared identifier 'g_log_domain_gstreamer'

Log file is attached

localhost:build sarvi$ sudo port install gstreamer1 +universal
--->  Computing dependencies for gstreamer1
--->  Fetching archive for gstreamer1
--->  Attempting to fetch gstreamer1-1.0.9_0+universal.darwin_12.i386-x86_64.tbz2 from http://packages.macports.org/gstreamer1
--->  Attempting to fetch gstreamer1-1.0.9_0+universal.darwin_12.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gstreamer1
--->  Attempting to fetch gstreamer1-1.0.9_0+universal.darwin_12.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/gstreamer1
--->  Fetching distfiles for gstreamer1
--->  Verifying checksums for gstreamer1
--->  Extracting gstreamer1
--->  Configuring gstreamer1
--->  Building gstreamer1
Error: org.macports.build for port gstreamer1 returned: command execution failed
Please see the log file for port gstreamer1 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gstreamer1/gstreamer1/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gstreamer1 failed
localhost:build sarvi$ 

Attachments (1)

main.log (116.6 KB) - added by sarvi@… 11 years ago.

Download all attachments as: .zip

Change History (32)

Changed 11 years ago by sarvi@…

Attachment: main.log added

comment:1 Changed 11 years ago by sarvi@…

Just wanted that the following works. So the problem seems to be with the default compiler. There is a dependency on gcc compiler

sudo port install gstreamer1 +universal configure.compiler=macports-gcc-4.8
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Owner: changed from macports-tickets@… to rmstonecipher@…
Summary: [gstreamer1] [1.0.9] opt/local/include/glib-2.0/glib/gmessages.h:237:11: error: use of undeclared identifier 'g_log_domain_gstreamer'gstreamer1 @1.0.9: /opt/local/include/glib-2.0/glib/gmessages.h:237:11: error: use of undeclared identifier 'g_log_domain_gstreamer'

Forcing the use of an FSF GCC compiler is not recommended and is not a solution we would accept.

gstreamer1 needs to be updated to be compatible with glib2 @2.38 and later. Homebrew has also noticed this.

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

comment:4 in reply to:  2 Changed 11 years ago by sarvi@…

Replying to ryandesign@…:

Forcing the use of an FSF GCC compiler is not recommended and is not a solution we would accept.

gstreamer1 needs to be updated to be compatible with glib2 @2.38 and later. Homebrew has also noticed this.

I was NOT suggesting that it should be accepted. Was just pointing out that the build worked with GCC for people who were looking for a way out. still don't know if it works or not for the runtime though.

Last edited 11 years ago by sarvi@… (previous) (diff)

comment:5 in reply to:  3 ; Changed 11 years ago by sarvi@…

Replying to ryandesign@…:

Updating gstreamer1 to version 1.2 may help.

How can I use the patch with the port build system to build and install with this patch? Can you point me to some how-to instructions on how I might be able to use the patch to make it build?

comment:6 in reply to:  5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to sarvi@…:

Replying to ryandesign@…:

Updating gstreamer1 to version 1.2 may help.

How can I use the patch with the port build system to build and install with this patch? Can you point me to some how-to instructions on how I might be able to use the patch to make it build?

http://guide.macports.org/#development.patches.applying

comment:7 Changed 11 years ago by skymoo (Adam Mercer)

This also seems to effect gstreamer010

comment:8 Changed 11 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

comment:9 Changed 11 years ago by skymoo (Adam Mercer)

Using configure.compiler=macports-llvm-gcc-4.2 allows gstreamer010 to build.

comment:10 Changed 11 years ago by tobypeterson

Looks like it may be as simple as fixing gstdatetime.c to include gst_private.h (which defines g_log_domain_gstreamer) before glib-compat-private.h

comment:11 Changed 11 years ago by litlfred@…

Cc: litlfred@… added

Cc Me!

comment:12 Changed 11 years ago by piotr@…

I confirm that adding the following patch allows gstreamer1 to compile:

--- gst/gstdatetime.c-orig      2013-10-23 18:13:07.000000000 -0700
+++ gst/gstdatetime.c   2013-10-23 18:13:18.000000000 -0700
@@ -21,8 +21,8 @@
 #include "config.h"
 #endif

-#include "glib-compat-private.h"
 #include "gst_private.h"
+#include "glib-compat-private.h"
 #include "gstdatetime.h"
 #include "gstvalue.h"
 #include <glib.h>
Last edited 11 years ago by piotr@… (previous) (diff)

comment:13 in reply to:  12 ; Changed 11 years ago by miken32 (Michael Newton)

Replying to piotr@…:

I confirm that adding the following patch allows gstreamer1 to compile:

--- gst/gstdatetime.c-orig      2013-10-23 18:13:07.000000000 -0700
+++ gst/gstdatetime.c   2013-10-23 18:13:18.000000000 -0700
@@ -21,8 +21,8 @@
 #include "config.h"
 #endif

-#include "glib-compat-private.h"
 #include "gst_private.h"
+#include "glib-compat-private.h"
 #include "gstdatetime.h"
 #include "gstvalue.h"
 #include <glib.h>

This works for me as well; I'm running 10.9. Applying the patch from ticket:40710 did not help, BTW.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:14 Changed 11 years ago by petermisak (Peter Misak)

Cc: peter.misak@… added

Cc Me!

comment:15 Changed 11 years ago by takanori@…

Cc: takanori@… added

Cc Me!

comment:16 Changed 11 years ago by whcordis@…

Cc: whcordis@… added

Cc Me!

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

Has duplicate #40927

See also the ticket for gstreamer010: #40858

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

Cc: macports@… added

Has duplicate #40963.

comment:19 Changed 11 years ago by macports@…

Cc: macports@… removed

Cc Me!

comment:20 Changed 11 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:21 Changed 11 years ago by captainproton1971 (Captain Proton)

Cc: captainproton1971@… added

Cc Me!

comment:22 Changed 11 years ago by bonoba@…

Cc: bonoba@… added

Cc Me!

comment:23 Changed 11 years ago by fondacio@…

Cc: fondacio@… added

Cc Me!

comment:24 Changed 11 years ago by repollox@…

Cc: repollox@… added

Cc Me!

comment:25 Changed 11 years ago by mail@…

Cc: mail@… added

Cc Me!

comment:26 Changed 11 years ago by razzfazz (Daniel Becker)

Cc: razzfazz@… added

Cc Me!

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

Has duplicate #40997.

comment:28 Changed 11 years ago by hapaguy (Brian Kurt Fujikawa)

Cc: brian.fujikawa@… added

Cc Me!

comment:29 Changed 11 years ago by hong@…

Cc: hong@… added

Cc Me!

comment:30 in reply to:  13 Changed 11 years ago by ziogas_chr@…

Replying to miken32@…:

Replying to piotr@…:

I confirm that adding the following patch allows gstreamer1 to compile:

--- gst/gstdatetime.c-orig      2013-10-23 18:13:07.000000000 -0700
+++ gst/gstdatetime.c   2013-10-23 18:13:18.000000000 -0700
@@ -21,8 +21,8 @@
 #include "config.h"
 #endif

-#include "glib-compat-private.h"
 #include "gst_private.h"
+#include "glib-compat-private.h"
 #include "gstdatetime.h"
 #include "gstvalue.h"
 #include <glib.h>

This works for me as well; I'm running 10.9. Applying the patch from ticket:40710 did not help, BTW.

This works for me on 10.9, too.

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

Resolution: fixed
Status: newclosed

Patch committed in r112623, openmaintainer.

Note: See TracTickets for help on using tickets.