After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 393796 - Fix GST_DEFINE_STATIC_PLUGIN for HP-UX 11.11 native compiler and Sun Forte
Fix GST_DEFINE_STATIC_PLUGIN for HP-UX 11.11 native compiler and Sun Forte
Status: RESOLVED DUPLICATE of bug 498924
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.11
Other HP-UX
: Normal enhancement
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-07 04:40 UTC by Ian Munro
Modified: 2007-12-16 20:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
debug output (368.36 KB, text/plain)
2007-01-08 15:19 UTC, Ian Munro
Details
debug log file (15.36 KB, text/plain)
2007-01-08 15:21 UTC, Ian Munro
Details
debug log file (8.45 KB, text/plain)
2007-01-08 15:22 UTC, Ian Munro
Details
make check output (3.58 KB, text/plain)
2007-01-17 01:05 UTC, Ian Munro
Details
make check output (1.28 KB, text/plain)
2007-01-17 01:05 UTC, Ian Munro
Details

Description Ian Munro 2007-01-07 04:40:20 UTC
Made the following changes to enable build:

diff -ur -X /work/scripts/exclude10.lst /tmp/gstreamer-0.10.11/libs/gst/check/Makefile.am /work/build/gstreamer-0.10.11/libs/gst/check/Makefile.am
--- /tmp/gstreamer-0.10.11/libs/gst/check/Makefile.am	2006-09-28 19:11:28.000000000 +0800
+++ /work/build/gstreamer-0.10.11/libs/gst/check/Makefile.am	2007-01-05 23:26:50.000000000 +0800
@@ -9,7 +9,6 @@
 libgstcheck_@GST_MAJORMINOR@_la_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
 libgstcheck_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) \
 	$(top_builddir)/gst/libgstreamer-@GST_MAJORMINOR@.la
-libgstcheck_@GST_MAJORMINOR@_la_LDFLAGS = -Wl,--export-dynamic \
 libgstbase_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
 
 libgstcheck_@GST_MAJORMINOR@includedir =		\
diff -ur -X /work/scripts/exclude10.lst /tmp/gstreamer-0.10.11/libs/gst/net/gstnettimepacket.c /work/build/gstreamer-0.10.11/libs/gst/net/gstnettimepacket.c
--- /tmp/gstreamer-0.10.11/libs/gst/net/gstnettimepacket.c	2006-09-05 16:35:20.000000000 +0800
+++ /work/build/gstreamer-0.10.11/libs/gst/net/gstnettimepacket.c	2007-01-05 23:25:12.000000000 +0800
@@ -34,7 +34,7 @@
 
 #include <glib.h>
 
-#ifdef __CYGWIN__
+#if defined (__CYGWIN__) || defined (HAVE_CPU_HPPA)
 # include <unistd.h>
 # include <fcntl.h>
 #endif
@@ -171,7 +171,7 @@
 gst_net_time_packet_send (const GstNetTimePacket * packet, gint fd,
     struct sockaddr * addr, socklen_t len)
 {
-#if defined __CYGWIN__
+#if defined (__CYGWIN__) || defined (HAVE_CPU_HPPA)
   gint fdflags;
 #elif defined G_OS_WIN32
   gulong flags;
@@ -182,7 +182,7 @@
 
   g_return_val_if_fail (packet != NULL, -EINVAL);
 
-#ifdef __CYGWIN__
+#if defined (__CYGWIN__) || defined (HAVE_CPU_HPPA)
   send_flags = 0;
   fdflags = fcntl (fd, F_GETFL);
   fcntl (fd, F_SETFL, fdflags | O_NONBLOCK);
@@ -201,7 +201,7 @@
   ret = sendto (fd, buffer, GST_NET_TIME_PACKET_SIZE, send_flags, addr, len);
 #endif
 
-#ifdef __CYGWIN__
+#if defined (__CYGWIN__) || defined (HAVE_CPU_HPPA)
   fcntl (fd, F_SETFL, fdflags);
 #endif
 
diff -ur -X /work/scripts/exclude10.lst /tmp/gstreamer-0.10.11/tests/check/gst/gstpad.c /work/build/gstreamer-0.10.11/tests/check/gst/gstpad.c
--- /tmp/gstreamer-0.10.11/tests/check/gst/gstpad.c	2006-10-10 00:33:29.000000000 +0800
+++ /work/build/gstreamer-0.10.11/tests/check/gst/gstpad.c	2007-01-05 23:46:11.000000000 +0800
@@ -310,7 +310,7 @@
   GstPadLinkReturn plr;
   GstCaps *caps;
   GstBuffer *buffer;
-  ulong id;
+  gulong id;
 
   /* setup */
   sink = gst_pad_new ("sink", GST_PAD_SINK);
diff -ur -X /work/scripts/exclude10.lst /tmp/gstreamer-0.10.11/tests/check/pipelines/parse-launch.c /work/build/gstreamer-0.10.11/tests/check/pipelines/parse-launch.c
--- /tmp/gstreamer-0.10.11/tests/check/pipelines/parse-launch.c	2006-10-10 01:15:39.000000000 +0800
+++ /work/build/gstreamer-0.10.11/tests/check/pipelines/parse-launch.c	2007-01-05 23:52:26.000000000 +0800
@@ -23,8 +23,10 @@
 #  include "config.h"
 #endif
 
+#if defined HAVE_VALGRIND
 #include <valgrind/valgrind.h>
 #include <valgrind/memcheck.h>
+#endif
 
 #include <gst/check/gstcheck.h>
 
@@ -329,7 +331,9 @@
     g_print ("Trying pipe: %s\n", *s);
     expected_fail_pipe (*s);
 #endif
+#if defined HAVE_VALGRIND
     VALGRIND_DO_LEAK_CHECK;
+#endif
   }
 }
 
MSG_DONTWAIT is not defined on HP-UX. HAVE_CPU_HPPA shoud probably be __hpux__, but this is not defined.

gmake  check-TESTS
gmake[3]: Entering directory `/work/build/gstreamer-0.10.11/tests/check'
Running suite(s): GstABI
No structure size list was generated for this architecture.
Run with GST_ABI environment variable set to output header.
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstabi
Running suite(s): GstBuffer
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstbuffer
Running suite(s): GstBus
100%: Checks: 3, Failures: 0, Errors: 0
PASS: gst/gstbus
Running suite(s): GstCaps
100%: Checks: 11, Failures: 0, Errors: 0
PASS: gst/gstcaps
Running suite(s): GstInfo
100%: Checks: 2, Failures: 0, Errors: 0
PASS: gst/gstinfo
Running suite(s): GstIterator
100%: Checks: 3, Failures: 0, Errors: 0
PASS: gst/gstiterator
Running suite(s): GstMessage
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstmessage
Running suite(s): GstMiniObject
100%: Checks: 6, Failures: 0, Errors: 0
PASS: gst/gstminiobject
Running suite(s): GstObject
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstobject
Running suite(s): GstPad
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstpad
Running suite(s): GstSegment
100%: Checks: 10, Failures: 0, Errors: 0
PASS: gst/gstsegment
Running suite(s): GstSystemClock
100%: Checks: 4, Failures: 0, Errors: 0
PASS: gst/gstsystemclock
Running suite(s): GstStructure
100%: Checks: 5, Failures: 0, Errors: 0
PASS: gst/gststructure
Running suite(s): GstTag
100%: Checks: 4, Failures: 0, Errors: 0
PASS: gst/gsttag
Running suite(s): GstTask
100%: Checks: 5, Failures: 0, Errors: 0
PASS: gst/gsttask
Running suite(s): GstValue
100%: Checks: 21, Failures: 0, Errors: 0
PASS: gst/gstvalue
Running suite(s): GstXML
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstxml
Running suite(s): states
100%: Checks: 1, Failures: 0, Errors: 0
PASS: generic/states
Running suite(s): Pipelines
0%: Checks: 2, Failures: 2, Errors: 0
pipelines/simple-launch-lines.c:32:F:linear:test_2_elements:0: Assertion 'GST_IS_PIPELINE (pipeline)' failed
pipelines/simple-launch-lines.c:162:F:linear:test_stop_from_app:0: Assertion 'fakesrc && fakesink && pipeline' failed
FAIL: pipelines/simple-launch-lines
Running suite(s): Pipeline cleanup


Unexpected critical/warning: file pipelines/cleanup.c: line 32: assertion `GST_IS_PIPELINE (pipeline)' failed
0%: Checks: 1, Failures: 1, Errors: 0
gstcheck.c:66:F:linear:test_pipeline_unref:0: Unexpected critical/warning: file pipelines/cleanup.c: line 32: assertion `GST_IS_PIPELINE (pipeline)' failed
FAIL: pipelines/cleanup
Running suite(s): Parse Launch syntax
40%: Checks: 5, Failures: 3, Errors: 0
pipelines/parse-launch.c:41:F:parselaunch:test_launch_lines:0: Error parsing pipeline filesrc location=music.mp3 ! identity silent=true ! fakesink silent=true: no element "filesrc"
pipelines/parse-launch.c:41:F:parselaunch:test_launch_lines2:0: Error parsing pipeline fakesrc: no element "fakesrc"
pipelines/parse-launch.c:41:F:parselaunch:delayed_link:0: Error parsing pipeline parsetestelement name=src ! fakesink silent=true name=sink: no element "parsetestelement"
FAIL: pipelines/parse-launch
Running suite(s): Gst


Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed
83%: Checks: 6, Failures: 1, Errors: 0
gstcheck.c:66:F:gst tests:test_new_fakesrc:0: Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed
FAIL: gst/gst
Running suite(s): GstBin
20%: Checks: 10, Failures: 8, Errors: 0
gst/gstbin.c:55:F:bin tests:test_interface:0: Could not create filesrc
gst/gstbin.c:521:F:bin tests:test_children_state_change_order_flagged_sink:0: Could not create fakesrc
gst/gstbin.c:624:F:bin tests:test_children_state_change_order_semi_sink:0: Could not create fakesrc
gst/gstbin.c:722:F:bin tests:test_children_state_change_order_two_sink:0: Could not create fakesrc
gst/gstbin.c:169:F:bin tests:test_message_state_changed_child:0: Could not create fakesrc
gst/gstbin.c:228:F:bin tests:test_message_state_changed_children:0: Could not create fakesrc
gst/gstbin.c:373:F:bin tests:test_watch_for_state_change:0: Could not create fakesrc
gst/gstbin.c:432:F:bin tests:test_add_linked:0: Could not create fakesrc
FAIL: gst/gstbin
Running suite(s): GstElement


Unexpected critical/warning: file gstelement.c: line 609: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gstelement.c: line 609: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gstelement.c: line 2774: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gstutils.c: line 1354: assertion `GST_IS_ELEMENT (src)' failed
16%: Checks: 6, Failures: 5, Errors: 0
gstcheck.c:66:F:element tests:test_add_remove_pad:0: Unexpected critical/warning: file gstelement.c: line 609: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:element tests:test_add_pad_unref_element:0: Unexpected critical/warning: file gstelement.c: line 609: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:element tests:test_error_no_bus:0: Unexpected critical/warning: file gstelement.c: line 2774: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:element tests:test_link:0: Unexpected critical/warning: file gstutils.c: line 1354: assertion `GST_IS_ELEMENT (src)' failed
gst/gstelement.c:176:F:element tests:test_class:0: Failure 'factory == NULL' occured
FAIL: gst/gstelement
Running suite(s): GstEvent
50%: Checks: 2, Failures: 1, Errors: 0
gst/gstevent.c:379:F:customevents:send_custom_events:0: Failure '(fakesrc = gst_element_factory_make ("fakesrc", NULL)) == NULL' occured
FAIL: gst/gstevent
Running suite(s): GstGhostPad


Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed
20%: Checks: 10, Failures: 7, Errors: 1
gstcheck.c:66:F:ghost pad tests:test_remove1:0: Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed
gst/gstghostpad.c:82:E:ghost pad tests:test_remove2:0: (after this point) Received signal 11 (Segmentation fault)
gstcheck.c:66:F:ghost pad tests:test_link:0: Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:ghost pad tests:test_ghost_pads:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:ghost pad tests:test_ghost_pads_bin:0: Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:ghost pad tests:test_ghost_pads_notarget:0: Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:ghost pad tests:test_ghost_pads_block:0: Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:ghost pad tests:test_ghost_pads_probes:0: Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed
FAIL: gst/gstghostpad
Running suite(s): GstPlugin
25%: Checks: 8, Failures: 5, Errors: 1
gst/gstplugin.c:94:F:general:test_load_coreelements:0: Failed to find coreelements plugin
gst/gstplugin.c:117:E:general:test_registry_get_plugin_list:0: (after this point) Received signal 11 (Segmentation fault)
gst/gstplugin.c:147:F:general:test_find_plugin:0: Failed to find coreelements plugin
gst/gstplugin.c:168:F:general:test_find_feature:0: Failed to find identity element factory
gst/gstplugin.c:186:F:general:test_find_element:0: Failed to find identity element factory
gst/gstplugin.c:252:F:general:test_version_checks:0: Unexpected version check result
FAIL: gst/gstplugin
Running suite(s): GstQuery
50%: Checks: 2, Failures: 1, Errors: 0
gst/gstquery.c:190:F:queries:test_queries:0: Could not create fakesrc
FAIL: gst/gstquery
Running suite(s): GstUtils


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed

** ERROR **: ERROR in gst_parse_bin_from_description (identity): no element "identity"
aborting...


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstutils.c: line 1603: assertion `GST_IS_ELEMENT (src)' failed
54%: Checks: 11, Failures: 4, Errors: 1
gstcheck.c:66:F:general:test_buffer_probe_n_times:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:test_buffer_probe_once:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
gst/gstutils.c:337:E:general:test_parse_bin_from_description:0: (after this point) Received signal 6 (Aborted)
gstcheck.c:66:F:general:test_element_found_tags:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:test_element_unlink:0: Unexpected critical/warning: file gstutils.c: line 1603: assertion `GST_IS_ELEMENT (src)' failed
FAIL: gst/gstutils
Running suite(s): Sinks


Unexpected critical/warning: file gstelement.c: line 2099: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
0%: Checks: 7, Failures: 7, Errors: 0
gstcheck.c:66:F:general:test_sink:0: Unexpected critical/warning: file gstelement.c: line 2099: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:general:test_sink_completion:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:test_src_sink:0: Unexpected critical/warning: file gstbin.c: line 868: assertion `GST_IS_ELEMENT (element)' failed
gstcheck.c:66:F:general:test_livesrc_remove:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:test_livesrc_sink:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:test_livesrc2_sink:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:test_livesrc3_sink:0: Unexpected critical/warning: file gobject.c: line 1201: assertion `G_IS_OBJECT (object)' failed
FAIL: generic/sinks
Running suite(s): fakesink
0%: Checks: 2, Failures: 2, Errors: 0
elements/fakesink.c:88:F:general:test_clipping:0: Failure 'sink == NULL' occured
elements/fakesink.c:231:F:general:test_preroll_sync:0: Failure 'sink == NULL' occured
FAIL: elements/fakesink
Running suite(s): fakesrc
0%: Checks: 5, Failures: 5, Errors: 0
gstcheck.c:145:F:general:test_num_buffers:0: Could not create a fakesrc
gstcheck.c:145:F:general:test_sizetype_empty:0: Could not create a fakesrc
gstcheck.c:145:F:general:test_sizetype_fixed:0: Could not create a fakesrc
gstcheck.c:145:F:general:test_sizetype_random:0: Could not create a fakesrc
gstcheck.c:145:F:general:test_no_preroll:0: Could not create a fakesrc
FAIL: elements/fakesrc
Running suite(s): fdsrc
0%: Checks: 3, Failures: 3, Errors: 0
gstcheck.c:145:F:general:test_num_buffers:0: Could not create a fdsrc
gstcheck.c:145:F:general:test_nonseeking:0: Could not create a fdsrc
gstcheck.c:145:F:general:test_seeking:0: Could not create a fdsrc
FAIL: elements/fdsrc
Running suite(s): filesrc
0%: Checks: 3, Failures: 3, Errors: 0
gstcheck.c:145:F:general:test_seeking:0: Could not create a filesrc
gstcheck.c:145:F:general:test_pull:0: Could not create a filesrc
gstcheck.c:145:F:general:test_coverage:0: Could not create a filesrc
FAIL: elements/filesrc
Running suite(s): identity
0%: Checks: 1, Failures: 1, Errors: 0
gstcheck.c:145:F:general:test_one_buffer:0: Could not create a identity
FAIL: elements/identity
Running suite(s): GstBaseSrc

** ERROR **: file libs/basesrc.c: line 279: assertion failed: (sink != NULL)
aborting...

** ERROR **: file libs/basesrc.c: line 140: assertion failed: (sink != NULL)
aborting...

** ERROR **: file libs/basesrc.c: line 61: assertion failed: (sink != NULL)
aborting...

** ERROR **: file libs/basesrc.c: line 208: assertion failed: (sink != NULL)
aborting...
0%: Checks: 4, Failures: 0, Errors: 4
libs/basesrc.c:265:E:general:basesrc_eos_events_pull:0: (after this point) Received signal 6 (Aborted)
libs/basesrc.c:126:E:general:basesrc_eos_events_push:0: (after this point) Received signal 6 (Aborted)
libs/basesrc.c:47:E:general:basesrc_eos_events_push_live_op:0: (after this point) Received signal 6 (Aborted)
libs/basesrc.c:196:E:general:basesrc_eos_events_pull_live_op:0: (after this point) Received signal 6 (Aborted)
FAIL: libs/basesrc
Running suite(s): Controller


Unexpected critical/warning: file gstcontroller.c: line 532: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed


Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed


Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
10%: Checks: 20, Failures: 18, Errors: 0
gstcheck.c:66:F:general:controller_refcount_new_list:0: Unexpected critical/warning: file gstcontroller.c: line 532: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_fail1:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_fail2:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_fail3:0: Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed
gstcheck.c:66:F:general:controller_new_fail4:0: Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed
gstcheck.c:66:F:general:controller_new_fail5:0: Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed
gstcheck.c:66:F:general:controller_new_okay1:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_okay2:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_okay3:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_param_twice:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_finalize:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_interpolate_none:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_interpolate_trigger:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_interpolate_linear:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_unset:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_unset_all:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_live:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_misc:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
FAIL: libs/controller
Running suite(s): typefindhelper
0%: Checks: 1, Failures: 1, Errors: 0
libs/typefindhelper.c:54:F:general:test_buffer_range:0: Assertion 'caps != NULL' failed
FAIL: libs/typefindhelper
Running suite(s): stress


Unexpected critical/warning: file pipelines/stress.c: line 33: assertion `fakesrc && fakesink && pipeline' failed
0%: Checks: 1, Failures: 1, Errors: 0
gstcheck.c:66:F:linear:test_stress:0: Unexpected critical/warning: file pipelines/stress.c: line 33: assertion `fakesrc && fakesink && pipeline' failed
FAIL: pipelines/stress
Running suite(s): LibsABI
No structure size list was generated for this architecture.
Run with GST_ABI environment variable set to output header.
100%: Checks: 1, Failures: 0, Errors: 0
PASS: libs/libsabi
Running suite(s): data protocol
100%: Checks: 5, Failures: 0, Errors: 0
PASS: libs/gdp
Running suite(s): adapter
100%: Checks: 8, Failures: 0, Errors: 0
PASS: libs/adapter
Running suite(s): GstNetClientClock
100%: Checks: 2, Failures: 0, Errors: 0
PASS: libs/gstnetclientclock
Running suite(s): GstNetTimeProvider
100%: Checks: 2, Failures: 0, Errors: 0
PASS: libs/gstnettimeprovider
==========================================================================
21 of 44 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
==========================================================================
gmake[3]: *** [check-TESTS] Error 1
gmake[3]: Leaving directory `/work/build/gstreamer-0.10.11/tests/check'
gmake[2]: *** [check-am] Error 2
gmake[2]: Leaving directory `/work/build/gstreamer-0.10.11/tests/check'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/work/build/gstreamer-0.10.11/tests'
gmake: *** [check-recursive] Error 1
Comment 1 Tim-Philipp Müller 2007-01-07 20:11:46 UTC
This looks like there is some error with linking and/or with dlopen'ing the plugin files. All of these tests fail because core plugins (and even the static elements like 'pipeline' and 'bin') aren't available/registered.

Why did you change the LDFLAGS in the Makefile.am?

Did you specify any additional configure options? If yes, what are they?


Could you do this:

  $ cd /work/build/gstreamer-0.10.11/tests/check
  $ export GST_DEBUG_NO_COLOR=1
  $ GST_DEBUG=*:5 make gst/gstplugin.check 2>dbg.log
  $ gzip dbg.log

and attach the dbg.log.gz file.

 
Comment 2 Ian Munro 2007-01-08 15:15:22 UTC
Thanks for the hint - plugin suffix . '.sl' on HP-UX.

gstregistry.c

    if (!g_str_has_suffix (filename, ".so") &&
        !g_str_has_suffix (filename, ".sl") &&
        !g_str_has_suffix (filename, ".dll") &&
        !g_str_has_suffix (filename, ".dynlib")) {

This is much more promising, only 3 tests failing now

gmake  check-TESTS
gmake[3]: Entering directory `/work/build/gstreamer-0.10.11/tests/check'
Running suite(s): GstABI
No structure size list was generated for this architecture.
Run with GST_ABI environment variable set to output header.
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstabi
Running suite(s): GstBuffer
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstbuffer
Running suite(s): GstBus
100%: Checks: 3, Failures: 0, Errors: 0
PASS: gst/gstbus
Running suite(s): GstCaps
100%: Checks: 11, Failures: 0, Errors: 0
PASS: gst/gstcaps
Running suite(s): GstInfo
100%: Checks: 2, Failures: 0, Errors: 0
PASS: gst/gstinfo
Running suite(s): GstIterator
100%: Checks: 3, Failures: 0, Errors: 0
PASS: gst/gstiterator
Running suite(s): GstMessage
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstmessage
Running suite(s): GstMiniObject
100%: Checks: 6, Failures: 0, Errors: 0
PASS: gst/gstminiobject
Running suite(s): GstObject
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstobject
Running suite(s): GstPad
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstpad
Running suite(s): GstSegment
100%: Checks: 10, Failures: 0, Errors: 0
PASS: gst/gstsegment
Running suite(s): GstSystemClock
100%: Checks: 4, Failures: 0, Errors: 0
PASS: gst/gstsystemclock
Running suite(s): GstStructure
100%: Checks: 5, Failures: 0, Errors: 0
PASS: gst/gststructure
Running suite(s): GstTag
100%: Checks: 4, Failures: 0, Errors: 0
PASS: gst/gsttag
Running suite(s): GstTask
100%: Checks: 5, Failures: 0, Errors: 0
PASS: gst/gsttask
Running suite(s): GstValue
100%: Checks: 21, Failures: 0, Errors: 0
PASS: gst/gstvalue
Running suite(s): GstXML
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstxml
Running suite(s): states
100%: Checks: 1, Failures: 0, Errors: 0
PASS: generic/states
Running suite(s): Pipelines
100%: Checks: 2, Failures: 0, Errors: 0
PASS: pipelines/simple-launch-lines
Running suite(s): Pipeline cleanup
100%: Checks: 1, Failures: 0, Errors: 0
PASS: pipelines/cleanup
Running suite(s): Parse Launch syntax
80%: Checks: 5, Failures: 1, Errors: 0
pipelines/parse-launch.c:41:F:parselaunch:delayed_link:0: Error parsing pipeline parsetestelement name=src ! fakesink silent=true name=sink: no element "parsetestelement"
FAIL: pipelines/parse-launch
Running suite(s): Gst
100%: Checks: 6, Failures: 0, Errors: 0
PASS: gst/gst
Running suite(s): GstBin
100%: Checks: 10, Failures: 0, Errors: 0
PASS: gst/gstbin
Running suite(s): GstElement
100%: Checks: 6, Failures: 0, Errors: 0
PASS: gst/gstelement
Running suite(s): GstEvent
100%: Checks: 2, Failures: 0, Errors: 0
PASS: gst/gstevent
Running suite(s): GstGhostPad
100%: Checks: 10, Failures: 0, Errors: 0
PASS: gst/gstghostpad
Running suite(s): GstPlugin
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstplugin
Running suite(s): GstQuery
100%: Checks: 2, Failures: 0, Errors: 0
PASS: gst/gstquery
Running suite(s): GstUtils
100%: Checks: 11, Failures: 0, Errors: 0
PASS: gst/gstutils
Running suite(s): Sinks
100%: Checks: 7, Failures: 0, Errors: 0
PASS: generic/sinks
Running suite(s): fakesink
100%: Checks: 2, Failures: 0, Errors: 0
PASS: elements/fakesink
Running suite(s): fakesrc
100%: Checks: 5, Failures: 0, Errors: 0
PASS: elements/fakesrc
Running suite(s): fdsrc
100%: Checks: 3, Failures: 0, Errors: 0
PASS: elements/fdsrc
Running suite(s): filesrc
100%: Checks: 3, Failures: 0, Errors: 0
PASS: elements/filesrc
Running suite(s): identity
100%: Checks: 1, Failures: 0, Errors: 0
PASS: elements/identity
Running suite(s): GstBaseSrc
100%: Checks: 4, Failures: 0, Errors: 0
PASS: libs/basesrc
Running suite(s): Controller


Unexpected critical/warning: file gstcontroller.c: line 532: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed


Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed


Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed


Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
15%: Checks: 20, Failures: 17, Errors: 0
gstcheck.c:66:F:general:controller_refcount_new_list:0: Unexpected critical/warning: file gstcontroller.c: line 532: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_fail2:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_fail3:0: Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed
gstcheck.c:66:F:general:controller_new_fail4:0: Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed
gstcheck.c:66:F:general:controller_new_fail5:0: Unexpected critical/warning: file gstobject.c: line 346: assertion `object != NULL' failed
gstcheck.c:66:F:general:controller_new_okay1:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_okay2:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_new_okay3:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_param_twice:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_finalize:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_interpolate_none:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_interpolate_trigger:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_interpolate_linear:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_unset:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_unset_all:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_live:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
gstcheck.c:66:F:general:controller_misc:0: Unexpected critical/warning: file gstcontroller.c: line 590: assertion `G_IS_OBJECT (object)' failed
FAIL: libs/controller
Running suite(s): typefindhelper
0%: Checks: 1, Failures: 1, Errors: 0
libs/typefindhelper.c:54:F:general:test_buffer_range:0: Assertion 'caps != NULL' failed
FAIL: libs/typefindhelper
Running suite(s): stress
100%: Checks: 1, Failures: 0, Errors: 0
PASS: pipelines/stress
Running suite(s): LibsABI
No structure size list was generated for this architecture.
Run with GST_ABI environment variable set to output header.
100%: Checks: 1, Failures: 0, Errors: 0
PASS: libs/libsabi
Running suite(s): data protocol
100%: Checks: 5, Failures: 0, Errors: 0
PASS: libs/gdp
Running suite(s): adapter
100%: Checks: 8, Failures: 0, Errors: 0
PASS: libs/adapter
Running suite(s): GstNetClientClock
100%: Checks: 2, Failures: 0, Errors: 0
PASS: libs/gstnetclientclock
Running suite(s): GstNetTimeProvider
100%: Checks: 2, Failures: 0, Errors: 0
PASS: libs/gstnettimeprovider
==========================================================================
3 of 44 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
==========================================================================
gmake[3]: *** [check-TESTS] Error 1
gmake[3]: Leaving directory `/work/build/gstreamer-0.10.11/tests/check'
gmake[2]: *** [check-am] Error 2
gmake[2]: Leaving directory `/work/build/gstreamer-0.10.11/tests/check'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/work/build/gstreamer-0.10.11/tests'
gmake: *** [check-recursive] Error 1
Comment 3 Ian Munro 2007-01-08 15:19:41 UTC
Created attachment 79752 [details]
debug output
Comment 4 Ian Munro 2007-01-08 15:21:30 UTC
Created attachment 79753 [details]
debug log file
Comment 5 Ian Munro 2007-01-08 15:22:10 UTC
Created attachment 79754 [details]
debug log file
Comment 6 Tim-Philipp Müller 2007-01-08 15:32:44 UTC
Those three failures are probably due to the GST_PLUGIN_DEFINE_STATIC constructor macro not being defined for you compiler.

See gstreamer/gst/gstmacros.h

Could you investigate what the correct idiom is for the HPUX compiler you're using? (maybe #pragma INIT or so)

Comment 7 Jan Schmidt 2007-01-08 17:18:37 UTC
Also note:

Running suite(s): GstABI
No structure size list was generated for this architecture.
Run with GST_ABI environment variable set to output header.

This message indicates that whatever architecture you're on needs an ABI structure header generated (by running with the env var GST_ABI set to 1 as it says)
 
See tests/check/gst/gstabi.c and the tests/check/gst/struct_*.h files.
Comment 8 Ian Munro 2007-01-12 15:00:38 UTC
The idiom is as follows:

#pragma INIT "my_init"
void my_init() { ... do some initializations ... }

But if I replace gstplugin.h

#define GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,package,origin)  \
static void GST_GNUC_CONSTRUCTOR			\
_gst_plugin_static_init__ ##init (void)			\

with

#define GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,package,origin)	\
_pragma ("INIT "\"_gst_plugin_static_init__ ##init\"")			\
static void _gst_plugin_static_init__ ##init ()				\

("INIT "\"_gst_plugin_static_init__ ##init\"") is not expanded and the compile fails.

Any ideas?
Comment 9 Tim-Philipp Müller 2007-01-13 11:44:09 UTC
> The idiom is as follows:
>  
> #pragma INIT "my_init"
> void my_init() { ... do some initializations ... }
>
>  (snip)
>
> Any ideas?

You could try (btw, does it matter if it's _Pragma or _pragma?):


 1)  _pragma ("INIT \"_gst_plugin_static_init__" G_STRINGIFY (init) "\"")  

     (why are you using  "INIT "\"foobar  <--- isn't that one " too many/few?)


 2)  just be less ambitious for now and assume people only use
     GST_PLUGIN_DEFINE_STATIC at most once per source file, then
     you could just try something like:

     #define
     GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,package,origin) \
     \
     _Pragma ( "INIT \"_gst_plugin_static_init_only_use_once_per_file\"" ) \
     \
     static void _gst_plugin_static_init_only_use_once_per_file (void) \
     { \
       ... \
     }

Comment 10 Ian Munro 2007-01-14 06:44:41 UTC
Thanks for the suggestion.

If I use _Pragma within the define, gmake check fails with unsatisfied symbol _gst_plugin_static_init_only_use_once_per_file in parse-launch.o.

 
#define GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,package,origin)  \
									\
_Pragma ( "INIT \"_gst_plugin_static_init_only_use_once_per_file\"" )	\
									\
void _gst_plugin_static_init_only_use_once_per_file()	\

/opt/TWWfsw/sbutils12/lib/aux/bash/bin/bash ../../libtool --tag=CC --mode=link cc -I../../libs -I../.. -I../.. -mt -I/opt/TWWfsw/gettext015/include -I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/libglib212/include/glib -I/opt/TWWfsw/libglib212/lib/glib-2.0/include -I/opt/TWWfsw/libiconv111/include -I/opt/TWWfsw/libxml26/include   -Wall  -g   -DGST_DISABLE_DEPRECATED  +O2 -Ae -z -Wp,-H32768 +Onofltacc +ESlit +DAportable +Oentrysched +Odataprefetch +Onolimit  -L/opt/TWWfsw/libcheck/lib -L/opt/TWWfsw/gettext015/lib -L/opt/TWWfsw/libglib212/lib -L/opt/TWWfsw/libxml26/lib -Wl,+s,+b,/opt/TWWfsw/gettext015/lib:/opt/TWWfsw/libglib212/lib:/opt/TWWfsw/libxml26/lib:-L/usr/lib/X11R6 -o pipelines/parse-launch  parse-launch.o ../../libs/gst/check/libgstcheck-0.10.la ../../gst/libgstreamer-0.10.la -Wl,+s,+b,/opt/TWWfsw/gettext015/lib -Wl,+s,+b,/opt/TWWfsw/libglib212/lib -mt -Wl,+s,+b,/opt/TWWfsw/libiconv111/lib -L/opt/TWWfsw/gettext015/lib -L/opt/TWWfsw/libglib212/lib -L/opt/TWWfsw/libiconv111/lib -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv   -L/opt/TWWfsw/gettext015/lib -lintl -L/opt/TWWfsw/libiconv111/lib -L/opt/TWWfsw/libiconv111/lib -liconv -R/opt/TWWfsw/gettext015/lib -R/opt/TWWfsw/libiconv111/lib  -lcheck 
libtool: link: warning: this platform does not like uninstalled shared libraries
libtool: link: `pipelines/parse-launch' will be relinked during installation
cc -I../../libs -I../.. -I../.. -mt -I/opt/TWWfsw/gettext015/include -I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/libglib212/include/glib -I/opt/TWWfsw/libglib212/lib/glib-2.0/include -I/opt/TWWfsw/libiconv111/include -I/opt/TWWfsw/libxml26/include -Wall -g -DGST_DISABLE_DEPRECATED +O2 -Ae -z -Wp,-H32768 +Onofltacc +ESlit +DAportable +Oentrysched +Odataprefetch +Onolimit -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/gettext015/lib:/opt/TWWfsw/libglib212/lib:/opt/TWWfsw/libxml26/lib:-L/usr/lib/X11R6 -o pipelines/.libs/parse-launch parse-launch.o -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/gettext015/lib -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/libglib212/lib -mt -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/libiconv111/lib  -L/opt/TWWfsw/libcheck/lib -L/opt/TWWfsw/gettext015/lib -L/opt/TWWfsw/libglib212/lib -L/opt/TWWfsw/libxml26/lib ../../libs/gst/check/.libs/libgstcheck-0.10.sl -L/opt/TWWfsw/libiconv111/lib /work/build/gstreamer-0.10.11/gst/.libs/libgstreamer-0.10.sl -L/opt/TWWfsw/zlib11/lib ../../gst/.libs/libgstreamer-0.10.sl /opt/TWWfsw/libxml26/lib/libxml2.sl /opt/TWWfsw/zlib11/lib/libz.sl -lm /opt/TWWfsw/libglib212/lib/libgobject-2.0.sl /opt/TWWfsw/libglib212/lib/libgthread-2.0.sl /opt/TWWfsw/libglib212/lib/libgmodule-2.0.sl /opt/TWWfsw/libglib212/lib/libglib-2.0.sl /opt/TWWfsw/gettext015/lib/libintl.sl /opt/TWWfsw/libiconv111/lib/libiconv.sl /opt/TWWfsw/libcheck/lib/libcheck.sl -Wl,+b -Wl,/work/build/gstreamer-0.10.11/libs/gst/check/.libs:/work/build/gstreamer-0.10.11/gst/.libs:/opt/TWWfsw/libxml26/lib:/opt/TWWfsw/zlib11/lib:/opt/TWWfsw/libglib212/lib:/opt/TWWfsw/gettext015/lib:/opt/TWWfsw/libiconv111/lib:/opt/TWWfsw/libcheck/lib:/opt/TWWfsw/gstreamer010/lib
/usr/ccs/bin/ld: Unsatisfied symbols:
   _gst_plugin_static_init_only_use_once_per_file (first referenced in parse-launch.o) (code)


If I move the #pragma directive outside the #define, then the build fails with unsatisfied symbol _gst_plugin_static_init_only_use_once_per_file in gst-launch.o.

#pragma INIT "_gst_plugin_static_init_only_use_once_per_file"
#define GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,package,origin)  \
void _gst_plugin_static_init_only_use_once_per_file()	\

/opt/TWWfsw/sbutils12/lib/aux/bash/bin/bash ../libtool --tag=CC --mode=link cc -I/opt/TWWfsw/gettext015/include -I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/libglib212/include/glib -I/opt/TWWfsw/libglib212/lib/glib-2.0/include -I/opt/TWWfsw/libiconv111/include   +O2 -Ae -z -Wp,-H32768 +Onofltacc +ESlit +DAportable +Oentrysched +Odataprefetch +Onolimit  -L/opt/TWWfsw/libcheck/lib -L/opt/TWWfsw/gettext015/lib -L/opt/TWWfsw/libglib212/lib -L/opt/TWWfsw/libxml26/lib -Wl,+s,+b,/opt/TWWfsw/gettext015/lib:/opt/TWWfsw/libglib212/lib:/opt/TWWfsw/libxml26/lib:-L/usr/lib/X11R6 -o gst-xmllaunch-0.10 ../gst/libgstreamer-0.10.la -Wl,+s,+b,/opt/TWWfsw/gettext015/lib -Wl,+s,+b,/opt/TWWfsw/libglib212/lib -mt -Wl,+s,+b,/opt/TWWfsw/libiconv111/lib -L/opt/TWWfsw/gettext015/lib -L/opt/TWWfsw/libglib212/lib -L/opt/TWWfsw/libiconv111/lib -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv   -L/opt/TWWfsw/gettext015/lib -lintl -L/opt/TWWfsw/libiconv111/lib -L/opt/TWWfsw/libiconv111/lib -liconv -R/opt/TWWfsw/gettext015/lib -R/opt/TWWfsw/libiconv111/lib  gst_xmllaunch_0.10-gst-launch.o -Wl,+s,+b,/opt/TWWfsw/gettext015/lib -Wl,+s,+b,/opt/TWWfsw/libglib212/lib -Wl,+s,+b,/opt/TWWfsw/libiconv111/lib -L/opt/TWWfsw/gettext015/lib -L/opt/TWWfsw/libglib212/lib -L/opt/TWWfsw/libiconv111/lib -lglib-2.0 -lintl -liconv   
libtool: link: warning: this platform does not like uninstalled shared libraries
libtool: link: `gst-xmllaunch-0.10' will be relinked during installation
cc -I/opt/TWWfsw/gettext015/include -I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/libglib212/include/glib -I/opt/TWWfsw/libglib212/lib/glib-2.0/include -I/opt/TWWfsw/libiconv111/include +O2 -Ae -z -Wp,-H32768 +Onofltacc +ESlit +DAportable +Oentrysched +Odataprefetch +Onolimit -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/gettext015/lib:/opt/TWWfsw/libglib212/lib:/opt/TWWfsw/libxml26/lib:-L/usr/lib/X11R6 -o .libs/gst-xmllaunch-0.10 -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/gettext015/lib -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/libglib212/lib -mt -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/libiconv111/lib gst_xmllaunch_0.10-gst-launch.o -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/gettext015/lib -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/libglib212/lib -Wl,+s -Wl,+b -Wl,/opt/TWWfsw/libiconv111/lib  -L/opt/TWWfsw/libcheck/lib -L/opt/TWWfsw/gettext015/lib -L/opt/TWWfsw/libglib212/lib -L/opt/TWWfsw/libxml26/lib ../gst/.libs/libgstreamer-0.10.sl -L/opt/TWWfsw/libiconv111/lib /opt/TWWfsw/libxml26/lib/libxml2.sl -L/opt/TWWfsw/zlib11/lib /opt/TWWfsw/zlib11/lib/libz.sl -lm /opt/TWWfsw/libglib212/lib/libgobject-2.0.sl /opt/TWWfsw/libglib212/lib/libgthread-2.0.sl /opt/TWWfsw/libglib212/lib/libgmodule-2.0.sl /opt/TWWfsw/libglib212/lib/libglib-2.0.sl /opt/TWWfsw/gettext015/lib/libintl.sl /opt/TWWfsw/libiconv111/lib/libiconv.sl -Wl,+b -Wl,/work/build/gstreamer-0.10.11/gst/.libs:/opt/TWWfsw/libxml26/lib:/opt/TWWfsw/zlib11/lib:/opt/TWWfsw/libglib212/lib:/opt/TWWfsw/gettext015/lib:/opt/TWWfsw/libiconv111/lib:/opt/TWWfsw/gstreamer010/lib
/usr/ccs/bin/ld: Unsatisfied symbols:
   _gst_plugin_static_init_only_use_once_per_file (first referenced in gst_xmllaunch_0.10-gst-launch.o) (code)

Any further ideas?
Comment 11 Ian Munro 2007-01-16 07:42:48 UTC
..and when I move the #pragma directive to where it makes a difference (controller.c, typefindhelper.c, parse-launch.c), then everything checks out OK.

Thanks Tim-Philipp for your assistance.

gmake  check-TESTS
gmake[3]: Entering directory `/work/build/gstreamer-0.10.11/tests/check'
Running suite(s): GstABI
No structure size list was generated for this architecture.
Run with GST_ABI environment variable set to output header.
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstabi
Running suite(s): GstBuffer
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstbuffer
Running suite(s): GstBus
100%: Checks: 3, Failures: 0, Errors: 0
PASS: gst/gstbus
Running suite(s): GstCaps
100%: Checks: 11, Failures: 0, Errors: 0
PASS: gst/gstcaps
Running suite(s): GstInfo
100%: Checks: 2, Failures: 0, Errors: 0
PASS: gst/gstinfo
Running suite(s): GstIterator
100%: Checks: 3, Failures: 0, Errors: 0
PASS: gst/gstiterator
Running suite(s): GstMessage
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstmessage
Running suite(s): GstMiniObject
100%: Checks: 6, Failures: 0, Errors: 0
PASS: gst/gstminiobject
Running suite(s): GstObject
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstobject
Running suite(s): GstPad
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstpad
Running suite(s): GstSegment
100%: Checks: 10, Failures: 0, Errors: 0
PASS: gst/gstsegment
Running suite(s): GstSystemClock
100%: Checks: 4, Failures: 0, Errors: 0
PASS: gst/gstsystemclock
Running suite(s): GstStructure
100%: Checks: 5, Failures: 0, Errors: 0
PASS: gst/gststructure
Running suite(s): GstTag
100%: Checks: 4, Failures: 0, Errors: 0
PASS: gst/gsttag
Running suite(s): GstTask
100%: Checks: 5, Failures: 0, Errors: 0
PASS: gst/gsttask
Running suite(s): GstValue
100%: Checks: 21, Failures: 0, Errors: 0
PASS: gst/gstvalue
Running suite(s): GstXML
100%: Checks: 1, Failures: 0, Errors: 0
PASS: gst/gstxml
Running suite(s): states
100%: Checks: 1, Failures: 0, Errors: 0
PASS: generic/states
Running suite(s): Pipelines
100%: Checks: 2, Failures: 0, Errors: 0
PASS: pipelines/simple-launch-lines
Running suite(s): Pipeline cleanup
100%: Checks: 1, Failures: 0, Errors: 0
PASS: pipelines/cleanup
Running suite(s): Parse Launch syntax
100%: Checks: 5, Failures: 0, Errors: 0
PASS: pipelines/parse-launch
Running suite(s): Gst
100%: Checks: 6, Failures: 0, Errors: 0
PASS: gst/gst
Running suite(s): GstBin
100%: Checks: 10, Failures: 0, Errors: 0
PASS: gst/gstbin
Running suite(s): GstElement
100%: Checks: 6, Failures: 0, Errors: 0
PASS: gst/gstelement
Running suite(s): GstEvent
100%: Checks: 2, Failures: 0, Errors: 0
PASS: gst/gstevent
Running suite(s): GstGhostPad
100%: Checks: 10, Failures: 0, Errors: 0
PASS: gst/gstghostpad
Running suite(s): GstPlugin
100%: Checks: 8, Failures: 0, Errors: 0
PASS: gst/gstplugin
Running suite(s): GstQuery
100%: Checks: 2, Failures: 0, Errors: 0
PASS: gst/gstquery
Running suite(s): GstUtils
100%: Checks: 11, Failures: 0, Errors: 0
PASS: gst/gstutils
Running suite(s): Sinks
100%: Checks: 7, Failures: 0, Errors: 0
PASS: generic/sinks
Running suite(s): fakesink
100%: Checks: 2, Failures: 0, Errors: 0
PASS: elements/fakesink
Running suite(s): fakesrc
100%: Checks: 5, Failures: 0, Errors: 0
PASS: elements/fakesrc
Running suite(s): fdsrc
100%: Checks: 3, Failures: 0, Errors: 0
PASS: elements/fdsrc
Running suite(s): filesrc
100%: Checks: 3, Failures: 0, Errors: 0
PASS: elements/filesrc
Running suite(s): identity
100%: Checks: 1, Failures: 0, Errors: 0
PASS: elements/identity
Running suite(s): GstBaseSrc
100%: Checks: 4, Failures: 0, Errors: 0
PASS: libs/basesrc
Running suite(s): Controller
100%: Checks: 20, Failures: 0, Errors: 0
PASS: libs/controller
Running suite(s): typefindhelper
100%: Checks: 1, Failures: 0, Errors: 0
PASS: libs/typefindhelper
Running suite(s): stress
100%: Checks: 1, Failures: 0, Errors: 0
PASS: pipelines/stress
Running suite(s): LibsABI
No structure size list was generated for this architecture.
Run with GST_ABI environment variable set to output header.
100%: Checks: 1, Failures: 0, Errors: 0
PASS: libs/libsabi
Running suite(s): data protocol
100%: Checks: 5, Failures: 0, Errors: 0
PASS: libs/gdp
Running suite(s): adapter
100%: Checks: 8, Failures: 0, Errors: 0
PASS: libs/adapter
Running suite(s): GstNetClientClock
100%: Checks: 2, Failures: 0, Errors: 0
PASS: libs/gstnetclientclock
Running suite(s): GstNetTimeProvider
100%: Checks: 2, Failures: 0, Errors: 0
PASS: libs/gstnettimeprovider
===================
All 44 tests passed
===================
gmake[3]: Leaving directory `/work/build/gstreamer-0.10.11/tests/check'
gmake[2]: Leaving directory `/work/build/gstreamer-0.10.11/tests/check'
Making check in misc
gmake[2]: Entering directory `/work/build/gstreamer-0.10.11/tests/misc'
gmake[2]: Nothing to be done for `check'.
gmake[2]: Leaving directory `/work/build/gstreamer-0.10.11/tests/misc'
Making check in examples
gmake[2]: Entering directory `/work/build/gstreamer-0.10.11/tests/examples'
Making check in controller
gmake[3]: Entering directory `/work/build/gstreamer-0.10.11/tests/examples/controller'
gmake[3]: Nothing to be done for `check'.
gmake[3]: Leaving directory `/work/build/gstreamer-0.10.11/tests/examples/controller'
Making check in helloworld
gmake[3]: Entering directory `/work/build/gstreamer-0.10.11/tests/examples/helloworld'
gmake[3]: Nothing to be done for `check'.
gmake[3]: Leaving directory `/work/build/gstreamer-0.10.11/tests/examples/helloworld'
Making check in manual
gmake[3]: Entering directory `/work/build/gstreamer-0.10.11/tests/examples/manual'
gmake  check-TESTS
gmake[4]: Entering directory `/work/build/gstreamer-0.10.11/tests/examples/manual'
PASS: bin
PASS: elementcreate
The 'fakesrc' element is a member of the category Source.
Description: Push empty (no data) buffers around
PASS: elementfactory
The name of the element is 'source'.
PASS: elementget
PASS: elementlink
PASS: elementmake
PASS: ghostpad
This program is linked against GStreamer 0.10.11 
PASS: init
==================
All 8 tests passed
==================
Comment 12 Tim-Philipp Müller 2007-01-16 10:00:15 UTC
Great! However, the issue with GST_DEFINE_STATIC_PLUGIN should still be fixed properly. It must be possible with compilers that support _Pragma. It's probably also an issue with Sun's Forte compiler.
Comment 13 Tim-Philipp Müller 2007-01-16 10:02:58 UTC
Also, could you please run

 $ GST_ABI=foobar make gst/gstabi.check > gstabi.out
 $ GST_ABI=foobar make libs/libsabi.check > libsabi.out

and attach both files? And tell us the output of 

 uname -a

on that box?

Comment 14 Ian Munro 2007-01-17 01:03:33 UTC
uname -a

HP-UX sing0300 B.11.11 U 9000/785 2005874818 unlimited-user license
Comment 15 Ian Munro 2007-01-17 01:05:13 UTC
Created attachment 80467 [details]
make check output
Comment 16 Ian Munro 2007-01-17 01:05:46 UTC
Created attachment 80468 [details]
make check output
Comment 17 Tim-Philipp Müller 2007-12-16 20:04:41 UTC

*** This bug has been marked as a duplicate of 498924 ***