[gnome-bluetooth] phonemgr and Red Hat 9

Russel Winder russel at russel.org.uk
Sat Jan 10 16:32:45 GMT 2004


On 2003.08.20, Philip Trickett wrote in to the gnome-bluetooth list
regarding the failure of phonemgr to compile under Red Hat 9.  I got
what seems to be exactly the same problem.

On investigating this problem more deeply it seems that there may be a
problem in the aclocal system shipped with Red Hat 9.

The actual problem Philip and I see stems from an inconsistency between
the configure code generated by the AM_PATH_ORBIT2 macro in configure.in
and the orbit installation of Red Hat 9 (Red Hat 9 with Ximian Desktop
2).

The C code from /usr/share/aclocal/ORBit2.m4 which is incorporated into
the configure file in order to test the ORBit-2.0 version will never
compile.  I mean never:  the symbols  orbit_major_version,
orbit_minor_version and orbit_micro_version are used but never defined
in the code.  Also the command line issued by the configure script means
that the header file orbit/orbit.h is never found -- the location is
/usr/include/orbit-2.0/orbit/orbit.h but the appropriate directory is
not in the include path.  In particular:

configure:9954: g++ -o conftest -g -O2   conftest.cc -pthread -Wl,--export-dynamic -lORBit-2 -llinc -lgmodule-2.0 -ldl -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lm  >&5
configure:9888:25: orbit/orbit.h: No such file or directory
configure: In function `int main()':
configure:9901: `g_strdup' undeclared (first use this function)
configure:9901: (Each undeclared identifier is reported only once for each
   function it appears in.)
configure:9907: `orbit_major_version' undeclared (first use this function)
configure:9908: `orbit_minor_version' undeclared (first use this function)
configure:9909: `orbit_micro_version' undeclared (first use this function)

This must mean that this test has never been used by anyone ever since
otherwise it would have been fixed.   On using Google for a bit of a
search I found some hopefully useful information:

At
http://mail.gnome.org/archives/nautilus-list/2003-January/msg00035.html
it seems that use of AM_PATH_ORBIT2 is replaced by inclusion of the
ORBit test in the PKG_CHECK_MODULES.  Is this what everyone else does
and thereby circumvent the problem in the aclocal script.

I tried the experiment of doing the same thing in configure.in for
phonemgr and it removed that failure.  I think.

I also had difficulty finding module libpanelapplet-2.0 because it
doesn't exist.  I am assuming that libpanel-applet provided by
gnome-panel is what is required here?  Perhaps not?

Any way on amending the configure.in thus:

dnl [RW] AM_PATH_ORBIT2([], [], [ORBit-2.0 required])
AM_GCONF_SOURCE_2

dnl [RW] PKG_CHECK_MODULES(PHONEMGR, sigc++-1.2 libgnomeuimm-2.0 gconfmm-2.0 
dnl [RW] 	gtkmm-2.0 glibmm-2.0 glibmm-2.0 glib-2.0 libgnomeui-2.0 >= 1.110.0
dnl [RW] 	libpanelapplet-2.0 libgnome-2.0 gdk-pixbuf-2.0 gconf-2.0
dnl [RW] 	libbonobo-2.0 bonobo-activation-2.0
dnl [RW] 	)

PKG_CHECK_MODULES(PHONEMGR, ORBit-2.0 >= 2.3.0 sigc++-1.2 libgnomeuimm-2.0 gconfmm-2.0 
	gtkmm-2.0 glibmm-2.0 glibmm-2.0 glib-2.0 libgnomeui-2.0 >= 1.110.0
	libgnome-2.0 gdk-pixbuf-2.0 gconf-2.0
	libbonobo-2.0 bonobo-activation-2.0
	)

I got a complete configure (using autogen,sh of course).

Unfortunately I do not get a compile:

|> make
cd . && /bin/sh /usr/local/src/phonemgr-0.2.1/missing --run autoheader
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/usr/local/src/phonemgr-0.2.1'
Making all in po
make[2]: Entering directory `/usr/local/src/phonemgr-0.2.1/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/phonemgr-0.2.1/po'
Making all in src
make[2]: Entering directory `/usr/local/src/phonemgr-0.2.1/src'
make[2]: *** No rule to make target `/usr/local/pkg/phonemgr-0.2.1/share/idl/GNOME_Bluetooth_Manager.idl', needed by `GNOME_Bluetooth_Manager-common.c'.  Stop.
make[2]: Leaving directory `/usr/local/src/phonemgr-0.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/phonemgr-0.2.1'
make: *** [all] Error 2

I am not sure why this is, I guess there is a dependency rule somewhere
that relies on NOT changing the prefix?  I used the command:

configure -prefix=/usr/local/pkg/phonemgr-0.2.1

as I use stow to manage non-RPM installations.
 

-- 
Russel.
=============================================
Dr Russel Winder         +44 20 7585 2200
41 Buckmaster Road       +44 7770 465 077
London SW11 1EN, UK      russel at russel.org.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.usefulinc.com/pipermail/gnome-bluetooth/attachments/20040110/77102b7f/attachment.pgp


More information about the gnome-bluetooth mailing list