Bug 21545 - failure to configure on OpenSolaris (and OpenBSD)
Summary: failure to configure on OpenSolaris (and OpenBSD)
Status: VERIFIED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: 1.2.x
Hardware: SPARC Solaris
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 08:14 UTC by David Adam
Modified: 2009-07-15 07:51 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description David Adam 2009-05-04 08:14:59 UTC
configure of both 1.2.12 tarball and git master fails on OpenSolaris with the following error:

checking 32-bit integer type... configure: error: No 32-bit integer type found 

OpenBSD seems to have a similar problem (http://www.nabble.com/problem-building-new-dbus-on-sparc64-td21711441.html) and a patch (http://www.openbsd.org/cgi-bin/cvsweb/ports/x11/dbus/patches/patch-configure_in?rev=1.1)

That patch allows the configure to complete cleanly on OpenSolaris using the git master sources.

Full uname: SunOS manduba 5.11 snv_101 sun4u sparc SUNW,Ultra-Enterprise Solaris
Comment 1 Colin Walters 2009-05-05 11:27:15 UTC
Hmm.  I think a better fix could be to move all of the CFLAGS setting down to *after* we run most of the autoconf checks.  That way some of the warning flags don't trip up autoconf-generated C code.

Comment 2 Colin Walters 2009-07-10 17:08:41 UTC
Done, let me know if it works:

commit 98bbe8c7941f2c643dc55b4e7329c0da57d2c7bc
Author: Colin Walters <walters@verbum.org>
Date:   Fri Jul 10 20:07:34 2009 -0400

    Bug 21545 - Move CFLAGS modification towards the end of configure
    
    This prevents the flags from screwing up autoconf tests.

Comment 3 David Adam 2009-07-15 07:51:16 UTC
Seems to be working now:

configure:18604: checking 64-bit integer type
configure:18642: result: long long
configure:18652: checking 32-bit integer type
configure:18674: result: int
configure:18681: checking 16-bit integer type
configure:18700: result: short


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.