Bug 9561 - dbus-glib-0.72 HP-UX 11.11 build w/ native compiler
Summary: dbus-glib-0.72 HP-UX 11.11 build w/ native compiler
Status: RESOLVED WONTFIX
Alias: None
Product: dbus
Classification: Unclassified
Component: GLib (show other bugs)
Version: unspecified
Hardware: PA-RISC (HP) HP-UX
: low normal
Assignee: Rob Taylor
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2007-01-07 00:29 UTC by Ian Munro
Modified: 2012-10-08 09:40 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Ian Munro 2007-01-07 00:29:25 UTC
D-BUS GLIB BINDINGS 0.72
                  ==============

	prefix:                   /opt/TWWfsw/dbus-glib
	exec_prefix:              ${prefix}
        libdir:                   /opt/TWWfsw/dbus-glib/lib
        bindir:                   /opt/TWWfsw/dbus-glib/bin
        sysconfdir:               /opt/TWWfsw/dbus-glib/etc
        localstatedir:            /opt/TWWfsw/dbus-glib/var
	datadir:                  /opt/TWWfsw/dbus-glib/share
	source code location:	  .
	compiler:		  cc
	cflags:		          -z +O2 +Olit=all +Onofltacc +DAportable +Oentrysched
+Odataprefetch +Onolimit
	cppflags:		  -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/opt/TWWfsw/gettext015/include
-I/opt/TWWfsw/libiconv111/include -I/opt/TWWfsw/libdbus10/include
-I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/libexpat19/include 
	cxxflags:		  -g -O2
	64-bit int:		  long long
	32-bit int:		  int
	16-bit int:		  short
        Doxygen:                  no
        xmlto:                    no

        Maintainer mode:          no
        gcc coverage profiling:   no
        Building unit tests:      yes
        Building verbose mode:    no
        Building assertions:      yes
        Building checks:          yes
        Building Doxygen docs:    no
        Building Gtk-doc docs:    no
        Building XML docs:        no
        Gettext libs (empty OK):  -lintl 
        Using XML parser:         expat
        'make check' socket dir:  

Hacks to facilitate build:
- compress spaces in flags breaks configure
- default shell on HP-UX is Posix /usr/bin/sh

diff -ur -X /work/scripts/exclude10.lst /tmp/dbus-glib-0.72/configure.ac
/work/build/dbus-glib-0.72/configure.ac
--- /tmp/dbus-glib-0.72/configure.ac	2006-10-26 04:53:55.000000000 +0800
+++ /work/build/dbus-glib-0.72/configure.ac	2006-11-29 03:56:09.000000000 +0800
@@ -77,128 +77,11 @@
     AC_DEFINE(G_DISABLE_CHECKS,1,[Disable GLib public API sanity checking])
 fi
 
-#### gcc warning flags
-
-AC_DEFUN([AC_CC_TRY_FLAG], [
-  AC_MSG_CHECKING([whether gcc understands $1])
-
-  ac_save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS $1"
-
-  AC_COMPILE_IFELSE([ ], [ac_cc_flag=yes], [ac_cc_flag=no])
-  CFLAGS="$ac_save_CFLAGS"
-
-  if test "x$ac_cc_flag" = "xyes"; then
-    ifelse([$2], , :, [$2])
-  else
-    ifelse([$3], , :, [$3])
-  fi
-  AC_MSG_RESULT([$ac_cc_flag])
-])
-
-if test "x$GCC" = "xyes"; then
-  AC_CC_TRY_FLAG([-Wfloat-equal],
-                 [ac_flag_float_equal=yes],
-                 [ac_flag_float_equal=no])
-
-  changequote(,)dnl
-  case " $CFLAGS " in
-  *[\ \	]-Wall[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wall" ;;
-  esac
-
-  case " $CFLAGS " in
-  *[\ \	]-Wchar-subscripts[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
-  esac
-
-  case " $CFLAGS " in
-  *[\ \	]-Wmissing-declarations[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
-  esac
-
-  case " $CFLAGS " in
-  *[\ \	]-Wmissing-prototypes[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
-  esac
-
-  case " $CFLAGS " in
-  *[\ \	]-Wnested-externs[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wnested-externs" ;;
-  esac
-
-  case " $CFLAGS " in
-  *[\ \	]-Wpointer-arith[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
-  esac
-
-  case " $CFLAGS " in
-  *[\ \	]-Wcast-align[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wcast-align" ;;
-  esac
-
-  if test "x$ac_flag_float_equal" = "xyes"; then
-    case " $CFLAGS " in
-    *[\ \	]-Wfloat-equal[\ \	]*) ;;
-    *) CFLAGS="$CFLAGS -Wfloat-equal" ;;
-    esac
-  fi
-
-  case " $CFLAGS " in
-  *[\ \	]-Wsign-compare[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wsign-compare" ;;
-  esac
-
-  if test "x$enable_ansi" = "xyes"; then
-    case " $CFLAGS " in
-    *[\ \	]-ansi[\ \	]*) ;;
-    *) CFLAGS="$CFLAGS -ansi" ;;
-    esac
-
-    case " $CFLAGS " in
-    *[\ \	]-D_POSIX_C_SOURCE*) ;;
-    *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
-    esac
-
-    case " $CFLAGS " in
-    *[\ \	]-D_BSD_SOURCE[\ \	]*) ;;
-    *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
-    esac
-
-    case " $CFLAGS " in
-    *[\ \	]-pedantic[\ \	]*) ;;
-    *) CFLAGS="$CFLAGS -pedantic" ;;
-    esac
-  fi
-  if test x$enable_gcov = xyes; then
-    case " $CFLAGS " in
-    *[\ \	]-fprofile-arcs[\ \	]*) ;;
-    *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
-    esac
-    case " $CFLAGS " in
-    *[\ \	]-ftest-coverage[\ \	]*) ;;
-    *) CFLAGS="$CFLAGS -ftest-coverage" ;;
-    esac
-
-    ## remove optimization
-    CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
-  fi
-  changequote([,])dnl
-else
-  if test x$enable_gcov = xyes; then
-    AC_MSG_ERROR([--enable-gcov can only be used with gcc])
-  fi
-fi
-
 AM_PROG_LIBTOOL
 
 changequote(,)dnl
 # let ourselves use our own unstable API
 CPPFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE=1 $CPPFLAGS"
-# compress spaces in flags
-CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`
-CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ +/ /g'`
-CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'`
 changequote([,])dnl
 
 if test x$enable_gcov = xyes; then
diff -ur -X /work/scripts/exclude10.lst
/tmp/dbus-glib-0.72/test/core/run-test.sh
/work/build/dbus-glib-0.72/test/core/run-test.sh
--- /tmp/dbus-glib-0.72/test/core/run-test.sh	2006-10-24 23:26:35.000000000 +0800
+++ /work/build/dbus-glib-0.72/test/core/run-test.sh	2007-01-07
14:15:05.000000000 +0800
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/sh
 
 SCRIPTNAME=$0
 MODE=$1
diff -ur -X /work/scripts/exclude10.lst
/tmp/dbus-glib-0.72/tools/run-with-tmp-session-bus.sh
/work/build/dbus-glib-0.72/tools/run-with-tmp-session-bus.sh
--- /tmp/dbus-glib-0.72/tools/run-with-tmp-session-bus.sh	2006-09-27
20:27:25.000000000 +0800
+++ /work/build/dbus-glib-0.72/tools/run-with-tmp-session-bus.sh	2007-01-07
14:27:12.000000000 +0800
@@ -1,10 +1,10 @@
-#! /bin/bash
+#! /usr/bin/sh
 
 SCRIPTNAME=$0
 WRAPPED_SCRIPT=$1
 shift
 
-function die() 
+die() 
 {
     if ! test -z "$DBUS_SESSION_BUS_PID" ; then
         echo "killing message bus "$DBUS_SESSION_BUS_PID >&2


gmake check fails on activation of echo service

Making check in dbus
gmake[1]: Entering directory `/work/build/dbus-glib-0.72/dbus'
gmake  check-recursive
gmake[2]: Entering directory `/work/build/dbus-glib-0.72/dbus'
Making check in .
gmake[3]: Entering directory `/work/build/dbus-glib-0.72/dbus'
gmake  check-TESTS
gmake[4]: Entering directory `/work/build/dbus-glib-0.72/dbus'
Test data in ../test/data
dbus-glib-test: running GValue util tests
dbus-glib-test: running GValue tests
dbus-glib-test: running glib tests
dbus-glib-test: running utils tests
dbus-glib-test: running mainloop integration tests
dbus-glib-test: running GObject tests
dbus-glib-test: completed successfully
PASS: dbus-glib-test
==================
All 1 tests passed
==================
gmake[4]: Leaving directory `/work/build/dbus-glib-0.72/dbus'
gmake[3]: Leaving directory `/work/build/dbus-glib-0.72/dbus'
Making check in examples
gmake[3]: Entering directory `/work/build/dbus-glib-0.72/dbus/examples'
gmake  check-recursive
gmake[4]: Entering directory `/work/build/dbus-glib-0.72/dbus/examples'
Making check in .
gmake[5]: Entering directory `/work/build/dbus-glib-0.72/dbus/examples'
gmake[5]: Nothing to be done for `check-am'.
gmake[5]: Leaving directory `/work/build/dbus-glib-0.72/dbus/examples'
Making check in statemachine
gmake[5]: Entering directory `/work/build/dbus-glib-0.72/dbus/examples/statemachine'
gmake  check-am
gmake[6]: Entering directory `/work/build/dbus-glib-0.72/dbus/examples/statemachine'
gmake[6]: Nothing to be done for `check-am'.
gmake[6]: Leaving directory `/work/build/dbus-glib-0.72/dbus/examples/statemachine'
gmake[5]: Leaving directory `/work/build/dbus-glib-0.72/dbus/examples/statemachine'
gmake[4]: Leaving directory `/work/build/dbus-glib-0.72/dbus/examples'
gmake[3]: Leaving directory `/work/build/dbus-glib-0.72/dbus/examples'
gmake[2]: Leaving directory `/work/build/dbus-glib-0.72/dbus'
gmake[1]: Leaving directory `/work/build/dbus-glib-0.72/dbus'
Making check in tools
gmake[1]: Entering directory `/work/build/dbus-glib-0.72/tools'
gmake  check-am
gmake[2]: Entering directory `/work/build/dbus-glib-0.72/tools'
gmake[2]: Nothing to be done for `check-am'.
gmake[2]: Leaving directory `/work/build/dbus-glib-0.72/tools'
gmake[1]: Leaving directory `/work/build/dbus-glib-0.72/tools'
Making check in test
gmake[1]: Entering directory `/work/build/dbus-glib-0.72/test'
Making check in core
gmake[2]: Entering directory `/work/build/dbus-glib-0.72/test/core'
gmake  check-am
gmake[3]: Entering directory `/work/build/dbus-glib-0.72/test/core'
gmake  check-TESTS
gmake[4]: Entering directory `/work/build/dbus-glib-0.72/test/core'
escaped service dir is:
\/work\/build\/dbus-glib-0.72\/test\/data\/valid-service-files
Created configuration file ./run-with-tmp-session-bus.conf
Running dbus-launch --sh-syntax --config-file=./run-with-tmp-session-bus.conf
Started bus pid 18519 at
unix:path=./dbus-gjLdqaAHmy,guid=8ad5284715dcbdaa4087aa0045a092e6
Running ./run-test.sh 
running test-dbus-glib
Names on the message bus:
  org.freedesktop.DBus
  :1.0
calling ThisMethodDoesNotExist
Got EXPECTED error from calling unknown method: org.freedesktop.DBus does not
understand message ThisMethodDoesNotExist
Activating echo service
Failed to complete Activate call: Process
/work/build/dbus-glib-0.72/test/test-service exited with status 1
./run-test.sh[37]: die:  not found.
killing message bus 18519
./../../tools/run-with-tmp-session-bus.sh: script "./run-test.sh" failed
FAIL: run-test.sh
========================================================================
1 of 1 tests failed
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=dbus
========================================================================
gmake[4]: *** [check-TESTS] Error 1
gmake[4]: Leaving directory `/work/build/dbus-glib-0.72/test/core'
gmake[3]: *** [check-am] Error 2
gmake[3]: Leaving directory `/work/build/dbus-glib-0.72/test/core'
gmake[2]: *** [check] Error 2
gmake[2]: Leaving directory `/work/build/dbus-glib-0.72/test/core'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/work/build/dbus-glib-0.72/test'
gmake: *** [check-recursive] Error 1
Comment 1 Rob Taylor 2007-01-07 02:56:17 UTC
What version of dbus core were you testing with?
Comment 2 Ian Munro 2007-01-07 07:26:00 UTC
(In reply to comment #1)
> What version of dbus core were you testing with?

testing w/ dbus-1.0.1 (see bugzilla id 9559)
Comment 3 Rob Taylor 2007-02-08 15:27:48 UTC
A few questions:

Will /bin/sh work for the default shell?
Why did you need to remove the AC_CC_TRY_FLAG configure code?

I'll get these build system changes in once we've figured those bits out. then we can take a look at the tests not passing. 
Comment 4 Ian Munro 2007-05-25 23:52:08 UTC
Apologies for the delay - side-tracked by other projects.
Now building 0.73.
/bin/sh is fine.
The AC_CC_TRY_FLAG configure code is OK.

Test results are as follows:

gmake  check-TESTS
gmake[4]: Entering directory `/work/build/dbus-glib-0.73/test/core'
escaped service dir is: \/work\/build\/dbus-glib-0.73\/test\/data\/valid-service-files
Created configuration file ./run-with-tmp-session-bus.conf
Running dbus-launch --sh-syntax --config-file=./run-with-tmp-session-bus.conf
Started bus pid 27434 at unix:path=./dbus-Or2YUkfuIt,guid=e34e37a3292ec6787926c900462ef686
Running ./run-test.sh 
running test-dbus-glib
Names on the message bus:
  org.freedesktop.DBus
  :1.0
calling ThisMethodDoesNotExist
Got EXPECTED error from calling unknown method: org.freedesktop.DBus does not understand message ThisMethodDoesNotExist
Activating echo service
Failed to complete Activate call: Process /work/build/dbus-glib-0.73/test/test-service exited with status 1
./run-test.sh[37]: die:  not found.
killing message bus 27434
./../../tools/run-with-tmp-session-bus.sh: script "./run-test.sh" failed
FAIL: run-test.sh
========================================================================
1 of 1 tests failed
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=dbus
========================================================================
gmake[4]: *** [check-TESTS] Error 1
gmake[4]: Leaving directory `/work/build/dbus-glib-0.73/test/core'
gmake[3]: *** [check-am] Error 2
gmake[3]: Leaving directory `/work/build/dbus-glib-0.73/test/core'
gmake[2]: *** [check] Error 2
gmake[2]: Leaving directory `/work/build/dbus-glib-0.73/test/core'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/work/build/dbus-glib-0.73/test'
gmake: *** [check-recursive] Error 1
      error: error executing script


with --enable-verbose-mode

Making check in dbus
gmake[1]: Entering directory `/work/build/dbus-glib-0.73/dbus'
gmake  check-recursive
gmake[2]: Entering directory `/work/build/dbus-glib-0.73/dbus'
Making check in .
gmake[3]: Entering directory `/work/build/dbus-glib-0.73/dbus'
gmake  check-TESTS
gmake[4]: Entering directory `/work/build/dbus-glib-0.73/dbus'

** ERROR **: file dbus-glib.c: line 345: assertion failed: (gerror->code == DBUS_GERROR_NO_MEMORY)
aborting...
Test data in ../test/data
dbus-glib-test: running GValue util tests
dbus-glib-test: running GValue tests
dbus-glib-test: running glib tests
/opt/TWWfsw/sbutils12/lib/aux/bash/bin/bash: line 1: 17480 ABORT instruction       (core dumped) DBUS_TEST_DATA=../test/data DBUS_TEST_HOMEDIR=../dbus ${dir}$tst
FAIL: dbus-glib-test
========================================================================
1 of 1 tests failed
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=dbus
========================================================================
gmake[4]: *** [check-TESTS] Error 1
gmake[4]: Leaving directory `/work/build/dbus-glib-0.73/dbus'
gmake[3]: *** [check-am] Error 2
gmake[3]: Leaving directory `/work/build/dbus-glib-0.73/dbus'
gmake[2]: *** [check-recursive] Error 1
gmake[2]: Leaving directory `/work/build/dbus-glib-0.73/dbus'
gmake[1]: *** [check] Error 2
gmake[1]: Leaving directory `/work/build/dbus-glib-0.73/dbus'
gmake: *** [check-recursive] Error 1
      error: error executing script
Comment 5 Ross Burton 2007-09-11 02:53:26 UTC
I've committed the bashism fixes to git.

The only remaining change then is the configure code to remove multiple spaces.  Does this still break on HP-UX, and why?
Comment 6 Simon McVittie 2011-04-20 08:28:22 UTC
If anyone still cares about HP-UX, please try with a somewhat recent version (of dbus-glib, and of the OS :-) and let us know what happens.
Comment 7 Dan Williams 2012-10-07 15:09:40 UTC
(In reply to comment #6)
> If anyone still cares about HP-UX, please try with a somewhat recent version
> (of dbus-glib, and of the OS :-) and let us know what happens.

It seems like nobody does, since the last activity on this was over 5 years ago...  perhaps close?
Comment 8 Simon McVittie 2012-10-08 09:40:48 UTC
Sounds right to me. If anyone still cares about a HP-UX native compiler, they get to maintain and support it.


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.