GNOME Bugzilla – Bug 104715
[Solaris] Can't build it!
Last modified: 2004-12-22 21:47:04 UTC
Configured with: ../gcc-3.0.4/configure --prefix=/appl/gnu/gcc-3.0.4_sol2.8 --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld Thread model: posix gcc version 3.0.4 /usr/ccs/bin/as -V /usr/ccs/bin/as: Sun WorkShop 6 99/08/18 /usr/ccs/bin/ld -V ld: Software Generation Utilities - Solaris-ELF (4.0) make[4]: Entering directory `/var/tmp/garnome-0.20.0/gstreamer/gstreamer/work/gstreamer-0.5.2/gst' source='gstatomic.c' object='libgstreamer_0.5_la-gstatomic.lo' libtool=yes \ depfile='.deps/libgstreamer_0.5_la-gstatomic.Plo' tmpdepfile='.deps/libgstreamer_0.5_la-gstatomic.TPlo' \ depmode=gcc3 /bin/bash ../depcomp \ /bin/bash ../libtool --mode=compile /appl/gnu/gcc-3.0.4_sol2.8/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/home/konjojo/Solaris/gnome-2.2/include -I/usr/openwin/include -I/home/konjojo/Solaris/include -I/home/konjojo/Solaris/gnome-2.2/include -I/usr/openwin/include -I/home/konjojo/Solaris/include -I/home/konjojo/Solaris/gnome-2.2/include -I/usr/openwin/include -I/home/konjojo/Solaris/include -I/home/konjojo/Solaris/gnome-2.2/include -I/usr/openwin/include -I/home/konjojo/Solaris/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/konjojo/Solaris/gnome-2.2/include/libxml2 -pthreads -I/home/konjojo/Solaris/gnome-2.2/include/glib-2.0 -I/home/konjojo/Solaris/gnome-2.2/lib/glib-2.0/include -I.. -DGST_DISABLE_DEPRECATED -g -I../libs -I../include -DG_LOG_DOMAIN=g_log_domain_gstreamer -DGST_CACHE_DIR=\""/home/konjojo/Solaris/gnome-2.2/var/cache/gstreamer-0.5"\" -O2 -g -c -o libgstreamer_0.5_la-gstatomic.lo `test -f 'gstatomic.c' || echo './'`gstatomic.c /appl/gnu/gcc-3.0.4_sol2.8/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/home/konjojo/Solaris/gnome-2.2/include -I/usr/openwin/include -I/home/konjojo/Solaris/include -I/home/konjojo/Solaris/gnome-2.2/include -I/usr/openwin/include -I/home/konjojo/Solaris/include -I/home/konjojo/Solaris/gnome-2.2/include -I/usr/openwin/include -I/home/konjojo/Solaris/include -I/home/konjojo/Solaris/gnome-2.2/include -I/usr/openwin/include -I/home/konjojo/Solaris/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/konjojo/Solaris/gnome-2.2/include/libxml2 -pthreads -I/home/konjojo/Solaris/gnome-2.2/include/glib-2.0 -I/home/konjojo/Solaris/gnome-2.2/lib/glib-2.0/include -I.. -DGST_DISABLE_DEPRECATED -g -I../libs -I../include -DG_LOG_DOMAIN=g_log_domain_gstreamer -DGST_CACHE_DIR=\"/home/konjojo/Solaris/gnome-2.2/var/cache/gstreamer-0.5\" -O2 -g -c gstatomic.c -MT libgstreamer_0.5_la-gstatomic.lo -MD -MP -MF .deps/libgstreamer_0.5_la-gstatomic.TPlo -fPIC -DPIC -o libgstreamer_0.5_la-gstatomic.lo In file included from gstatomic.c:24: gstatomic_impl.h: In function `gst_atomic_int_dec_and_test': gstatomic_impl.h:274: `val' undeclared (first use in this function) gstatomic_impl.h:274: (Each undeclared identifier is reported only once gstatomic_impl.h:274: for each function it appears in.) make[4]: *** [libgstreamer_0.5_la-gstatomic.lo] Error 1 make[4]: Leaving directory `/var/tmp/garnome-0.20.0/gstreamer/gstreamer/work/gstreamer-0.5.2/gst' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/garnome-0.20.0/gstreamer/gstreamer/work/gstreamer-0.5.2/gst' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/garnome-0.20.0/gstreamer/gstreamer/work/gstreamer-0.5.2/gst' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/garnome-0.20.0/gstreamer/gstreamer/work/gstreamer-0.5.2' make: *** [all] Error 2
Created attachment 13910 [details] The config log
I ran into this also. It's pretty simple, in the Sparc Solaris version of the gst_atomic_int_dec_and_test (GstAtomicInt *aint) function, someone neglected to define val. Obviously this hasn't been successfully compiled on Sparc before! Looking at other versions of that function written for different architectures, it looks like the decrement value is one, so I just put in an "int val=1" line, and it compiles. Whether it works or not I have no idea, there are other Solaris compile problems.
Note that in HEAD, that this code is surrounded by #elif defined(HAVE_CPU_SPARC) && defined(__GNUC__) && 0 Note the "&& 0". Therefore this code should not be used if you are compiling with the HEAD version of gstreamer. This code is broken, and until it is fixed, it should not be used. The generic implementations of these functions are appropriate for Solaris, at this time.
Fixed in 0.6.1 since it's now surrounded by #if 0 there too. Optimized implementation will come later and doesn't need a bugzilla entry.