Re: Network-Manager applet r953 fails to compile.
- From: Dan Williams <dcbw redhat com>
- To: Pramod Dematagoda <pmd lotr gandalf gmail com>
- Cc: NetworkManager ML <networkmanager-list gnome org>
- Subject: Re: Network-Manager applet r953 fails to compile.
- Date: Tue, 21 Oct 2008 10:43:40 -0400
On Tue, 2008-10-21 at 19:39 +0530, Pramod Dematagoda wrote:
> On Tue, 2008-10-21 at 09:52 -0400, Dan Williams wrote:
> > On Tue, 2008-10-21 at 19:07 +0530, Pramod Dematagoda wrote:
> > > On Tue, 2008-10-21 at 09:24 -0400, Dan Williams wrote:
> > > > On Tue, 2008-10-21 at 15:04 +0530, Pramod Dematagoda wrote:
> > > > > On Mon, 2008-10-20 at 13:07 -0400, Dan Williams wrote:
> > > > > > On Sat, 2008-10-18 at 19:13 +0530, Pramod Dematagoda wrote:
> > > > > > > I've just pulled r953 of network-manager-applet, however when I try to
> > > > > > > compile it I get the following errors from make:-
> > > > > > >
> > > > > > > gconf-helpers.c: In function 'write_one_secret_to_keyring':
> > > > > > > gconf-helpers.c:1254: error: 'NM_SETTING_VPN_SECRETS' undeclared (first
> > > > > > > use in this function)
> > > > > > > gconf-helpers.c:1254: error: (Each undeclared identifier is reported
> > > > > > > only once
> > > > > > > gconf-helpers.c:1254: error: for each function it appears in.)
> > > > > > > make[3]: *** [libgconf_helpers_la-gconf-helpers.lo] Error 1
> > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > make: *** [all] Error 2
> > > > > > >
> > > > > > > Is this something wrong with nm-applet itself or is there something I'm
> > > > > > > doing wrong here? This is on a Fedora 9 PC.
> > > > > >
> > > > > > What version of NetworkManager are you using? You'll generally have to
> > > > > > build latest NetworkManager along with the applet. I bet you've got
> > > > > > svn4022.4 installed and you're trying to build trunk applet, which isn't
> > > > > > going to work...
> > > > > >
> > > > > > Dan
> > > > > >
> > > > > >
> > > > > Whoops, you are right, I only have the version of NM that comes with
> > > > > Fedora, although I didn't know that the NM-Core and the NM-Applet were
> > > > > so tied with each other. But now I tried compiling the latest SVN
> > > > > NM-Core, and now I get this slight headache while running make:-
> > > > >
> > > > > nm-connection.c:27:28: error: dbus/dbus-glib.h: No such file or
> > > > > directory
> > > > >
> > > > > I have installed the required version of dbus-glib and the path in
> > > > > Makefile.in states:-
> > > > > DBUS_CFLAGS = /usr/local/include/dbus-1.0/dbus/ -DDBUS_VERSION_MAJOR=1
> > > > > -DDBUS_VERSION_MINOR=2 -DDBUS_VERSION_MICRO=4
> > > > >
> > > > > which I verified contains the DBUS header files.
> > > >
> > > > You also need to 'yum install dbus-glib-devel'.
> > > >
> > > > Dan
> > > >
> > > >
> > > But that doesn't really work does it since the configure script is
> > > looking for dbus-glib => 0.75 whereas the version in Fedora 9 is 0.74.
> >
> > Right. I've backported the necessary bits to Fedora 8 and 9's
> > dbus-glib, so you can actually just change the NM configure script to
> > allow anything >= 0.74. Technically the required changes are only in
> > dbus-glib 0.75 upstream, which is why upstream NM requires that version.
> > But given that I backported the fixes to Fedora, I've also modified the
> > Fedora rpm packages to build correctly for the distro.
> >
> > Dan
> >
> >
> Ah, I didn't know that. And I tried it out and it went past that problem
> properly. But now another headache :(.
>
> As it happens, I had to set the UUID_LIBS and UUID_CFLAGS variables
> manually as well because for some weird and unknown reason, they don't
> get set automatically. I have installed the uuid-devel package through
> the normal fedora repos. The new make error I get is:-
>
> nm-utils.c:38:23: error: uuid/uuid.h: No such file or directory
No problem. To get the deps solved, you can use the existing
NetworkManager srpm as a guide. Grab that:
http://koji.fedoraproject.org/packages/NetworkManager/0.7.0/0.11.svn4022.4.fc9/src/NetworkManager-0.7.0-0.11.svn4022.4.fc9.src.rpm
and make sure you:
yum install rpm-build
then:
rpm -Uhv NetworkManager-0.7.0-0.11.svn4022.4.fc9.src.rpm
Next:
cd /usr/src/redhat/SPECS
rpmbuild -ba --target i386 NetworkManager.spec
Then, it'll complain about packages that haven't been installed. yum
install all of those. Then you should have all the required
dependencies like e2fsprogs-devel, in which libuuid dev files live.
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]