[gstreamer-bugs] [Bug 546870] Many warning when compiling gstreamer-0.10.20 on OpenSolaris

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Aug 7 15:44:13 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=546870

  GStreamer | gstreamer (core) | Ver: 0.10.x




------- Comment #2 from rob1weld at aol.com  2008-08-07 22:44 UTC -------
> Jan Schmidt 2008-08-07 21:51 UTC wrote:
> Your compilation is completely borked. You're building the 32 bit version with:
> -I/usr/lib/amd64/glib-2.0/include
> This output: assertion failed: (sizeof (GstClockTime) == 8)
> implies that you've managed to set things up so that guint64 is not a 64 bit
variable => go fix it.

Thanks for spotting that.


I configured my 32-bit build with this line:

../gstreamer-0.10.2/configure --prefix=/opt/csw/tmp32
--with-libiconv-prefix=/opt/csw --with-libintl-prefix=/opt/csw
--enable-failing-tests --enable-docbook --enable-gtk-doc
--with-as=/opt/gnu/bin/as --with-gnu-as --with-ld=/usr/ccs/bin/ld
--without-gnu-ld --enable-shared --disable-static CFLAGS=-m32

I don't know why "-I/usr/lib/amd64/glib-2.0/include" is being used but I'll
look into it.


I suspected (from the errors) some difficulty with the casts (or size of
variables) so I went to a new build directory and did a 64-bit build with this
configure script:

../gstreamer-0.10.2/configure --prefix=/opt/csw/tmp64
--with-libiconv-prefix=/opt/csw --with-libintl-prefix=/opt/csw
--enable-failing-tests --enable-docbook --enable-gtk-doc
--with-as=/opt/gnu/bin/as --with-gnu-as --with-ld=/usr/ccs/bin/ld
--without-gnu-ld --enable-shared --disable-static CFLAGS=-m64


That is the exact same configure script _except_ for the CFLAGS.

When I build the 64-bit version I only get a couple of dozen warning (as
opposed to 1000's) but ultimately the build fails here:

gtk-doc: Compiling scanner
mkdir .libs
 gcc -I../../../gstreamer-0.10.20/libs -I../../../gstreamer-0.10.20 -I../..
-D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0
-I/usr/lib/amd64/glib-2.0/include -I/usr/include/libxml2 -Wall -g -c
gstreamer-scan.c  -fPIC -DPIC -o .libs/gstreamer-scan.o
gstreamer-scan.c: In function `describe_signed_constant':
gstreamer-scan.c:901: warning: integer constant is too large for "long" type
gstreamer-scan.c:901: warning: comparison is always false due to limited range
of data type
gstreamer-scan.c:903: warning: integer constant is too large for "long" type
gstreamer-scan.c: In function `describe_unsigned_constant':
gstreamer-scan.c:924: warning: integer constant is too large for "long" type
gstreamer-scan.c:924: warning: comparison is always false due to limited range
of data type
gstreamer-scan.c:926: warning: integer constant is too large for "unsigned
long" type
gstreamer-scan.c:926: warning: comparison is always false due to limited range
of data type
gstreamer-scan.c: In function `describe_type':
gstreamer-scan.c:1049: warning: integer constant is too large for "long" type
gstreamer-scan.c:1049: warning: integer constant is too large for "long" type
gstreamer-scan.c:1049: warning: comparison is always false due to limited range
of data type
gstreamer-scan.c:1051: warning: integer constant is too large for "long" type
gstreamer-scan.c:1053: warning: integer constant is too large for "long" type
gstreamer-scan.c:1053: warning: comparison is always false due to limited range
of data type
gstreamer-scan.c:1066: warning: integer constant is too large for "unsigned
long" type
gstreamer-scan.c:1066: warning: comparison is always false due to limited range
of data type
gstreamer-scan.c:1070: warning: integer constant is too large for "unsigned
long" type
gstreamer-scan.c:1070: warning: comparison is always false due to limited range
of data type
gtk-doc: Linking scanner
gcc -o .libs/gstreamer-scan .libs/gstreamer-scan.o 
../../gst/.libs/libgstreamer-0.10.so -L/usr/lib/amd64 -lxml2 -ldl -lgobject-2.0
-lgthread-2.0 -lpthread -lthread -lgmodule-2.0 -lglib-2.0 -lintl 
-R/opt/csw/tmp64/lib
ld: fatal: file ../../gst/.libs/libgstreamer-0.10.so: wrong ELF class:
ELFCLASS64
ld: fatal: File processing errors. No output written to .libs/gstreamer-scan
collect2: ld returned 1 exit status
Linking of scanner failed: 
gmake[5]: *** [scan-build.stamp] Error 1
gmake[5]: Leaving directory `/aux0/gstreamer-0.10.20_build_amd64/docs/gst'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/aux0/gstreamer-0.10.20_build_amd64/docs/gst'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/aux0/gstreamer-0.10.20_build_amd64/docs'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/aux0/gstreamer-0.10.20_build_amd64/docs'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/aux0/gstreamer-0.10.20_build_amd64'
gmake: *** [all] Error 2


I had the same problem when I compiled a much earlier version of GStreamer and
repaired it by editing docs/gst/Makefile and changing (line 178):

GST_ALL_CFLAGS = -I$(top_srcdir)/libs -I$(top_srcdir) -I$(top_builddir)
-D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0
-I/usr/lib/amd64/glib-2.0/include -I/usr/include/libxml2   $(GST_OPTION_CFLAGS)

to

GST_ALL_CFLAGS = -I$(top_srcdir)/libs -I$(top_srcdir) -I$(top_builddir)
-D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0
-I/usr/lib/amd64/glib-2.0/include -I/usr/include/libxml2   $(GST_OPTION_CFLAGS)
$(CFLAGS)


and changing (line 768):

            CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)"          \

to

            CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(CFLAGS)" \


My CFLAGS are simply either "CFLAGS=-m32" or "CFLAGS=-m64".


When I get this new version running I will find the correct file to put a
proper fix into and submit a tiny "gdiff". 


The use of "non-g-prefixed" utilities is another issue (on Solaris). The main
configure script checks for "sed" _before_ it checks for gsed. Solaris has it's
own "sed" that does not accept all the commands that GNU sed does. 

Configure scripts that run on Solaris must check for g-prefixed versions of
utilities before they look for the non-g-prefixed version (and can test the
"/usr/xpg4/bin" and "/usr/xpg6/bin" directories for Posix compatable utilities
instead of searching for the "traditional" Sun versions of these utilites
(unless the configure script wants to use the Sun command parameters when using
the Sun utilites). 

Let's not worry about that in _this_ bug report.


Lets stick with
"http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.20.tar.bz2" does
not compile without warnings on gcc 3.4.3 (Solaris's
"vendor supplied gcc" - which I am trying to upgrade to 4.x series).

Thanks for reading my post, Jan.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=546870.




More information about the Gstreamer-bugs mailing list