[gstreamer-bugs] [Bug 575695] New: build fails on OpenSolaris due to incorrect header file inclusion order

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Mar 17 06:41:27 PDT 2009


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=575695

  GStreamer | gstreamer (core) | Ver: git
           Summary: build fails on OpenSolaris due to incorrect header file
                    inclusion order
           Product: GStreamer
           Version: git
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: zanchey at ucc.gu.uwa.edu.au
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
While building gstreamer HEAD on OpenSolaris Nevada build 101, the following
build error occurs:

Steps to reproduce:


Actual results:
Making all in parse
  CC    gst.o
In file included from gst_private.h:28,
                 from gst.c:108:
../config.h:306:1: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/stdio.h:40,
                 from /space/buildbot/prefix/include/libxml2/libxml/tree.h:15,
                 from
/space/buildbot/prefix/include/libxml2/libxml/parser.h:16,
                 from gstconfig.h:171,
                 from gst.c:106:
/usr/include/sys/feature_tests.h:209:1: this is the location of the previous
definition
(build stops here)

Expected results:


Does this happen every time?


Other information:
This is because config.h defines _FILE_OFFSET_BITS, which the Solaris headers
also define. This can be fixed by reordering the includes - see bug 71704 for
an example.

See also:
http://www.redhat.com/archives/libvir-list/2008-December/msg00454.html

Full uname: SunOS manduba 5.11 snv_101 sun4u sparc SUNW,Ultra-Enterprise

GCC version:
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/specs
Configured with:
/gates/sfwnv/builds/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)


-- 
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=575695.




More information about the Gstreamer-bugs mailing list