Author Topic: Network Manager build error  (Read 1802 times)

Offline siamer

  • Sr. Member
  • ****
  • Posts: 284
    • ZEN-mini
Network Manager build error
« on: August 01, 2009, 11:03:02 AM »
Hi. I'm trying pack Network Manager just to check how it will work in PCLOS but i'm getting all the time some error...
What's wrong ?
Quote
omit-frame-pointer -march=i586 -mtune=pentiumpro -fasynchronous-unwind-tables -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -MT NetworkManager-nm-device-ethernet.o -MD -MP -MF .deps/NetworkManager-nm-device-ethernet.Tpo -c -o NetworkManager-nm-device-ethernet.o `test -f 'nm-device-ethernet.c' || echo './'`nm-device-ethernet.c
In file included from nm-device-ethernet.c:1632:
/usr/include/linux/mii.h:174: error: expected specifier-qualifier-list before 'u16'
nm-device-ethernet.c: In function 'mdio_read':
nm-device-ethernet.c:1648: error: 'struct mii_ioctl_data' has no member named 'reg_num'
nm-device-ethernet.c:1651: error: 'struct mii_ioctl_data' has no member named 'val_out'
make[4]: *** [NetworkManager-nm-device-ethernet.o] Error 1
make[4]: Leaving directory `/home/siamer/src/rpm/BUILD/NetworkManager-0.7.1/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/siamer/src/rpm/BUILD/NetworkManager-0.7.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/siamer/src/rpm/BUILD/NetworkManager-0.7.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/siamer/src/rpm/BUILD/NetworkManager-0.7.1'
make: *** [all] Error 2
błąd: Błędny status wyjścia z /home/siamer/src/tmp/rpm-tmp.36900 (%build)


Błędy budowania RPM-a:
    Błędny status wyjścia z /home/siamer/src/tmp/rpm-tmp.36900 (%build)
[siamer@localhost SPECS]$


and this is my spec:
Quote
%define name networkmanager
%define rname NetworkManager
%define version 0.7.1
%define release %mkrel 1

Summary: NetworkManager
Name: %{name}
Version: %{version}
Release: %{release}
Source0: network-manager-applet-0.7.1.tar.bz2
License: GPL
Group: System/Configuration/Networking
Url: http://www.gnome.org/projects/NetworkManager/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: libnl-devel >= 1.1
BuildRequires: dhcdbd wpa_supplicant libiw-devel
BuildRequires: perl(XML::Parser)
BuildRequires: libdbus-glib-devel >= 0.60
BuildRequires: libhal-devel >= 0.5.0
BuildRequires: libgtk+2-devel
BuildRequires: libglade2.0-devel libGConf2-devel
BuildRequires: libgnome-keyring-devel libgnomeui2-devel
Requires: dhcdbd wpa_supplicant wireless-tools libnl1
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description
NetworkManager attempts to keep an active network connection available
at all times.  The point of NetworkManager is to make networking
configuration and setup as painless and automatic as possible.  If
using DHCP, NetworkManager is _intended_ to replace default routes,
obtain IP addresses from a DHCP server, and change nameservers
whenever it sees fit.  In effect, the goal of NetworkManager is to
make networking Just Work.

%package devel
Group: Development/C
Summary: Devel library for %{rname}
Requires: %{name} = %{version}-%{release}
%description devel
Devel library for %{rname}.

%prep
%setup -q

%build
%configure2_5x --localstatedir=%{_var}
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
%find_lang %{rname}

%clean
rm -rf $RPM_BUILD_ROOT

%pre
%_pre_useradd named /var/lib/named /bin/bash

%post
%_post_service %{rname}
%_post_service %{rname}Dispatcher
%update_icon_cache hicolor
/sbin/ldconfig

%postun
%_postun_userdel named
%clean_icon_cache hicolor
/sbin/ldconfig

%preun
%_preun_service %{rname}Dispatcher
%_preun_service %{rname}


%files -f %{rname}.lang
%defattr(-,root,root)
%doc AUTHORS CONTRIBUTING ChangeLog NEWS README TODO
#%{_bindir}/nm-applet
%{_bindir}/nm-vpn-properties
%{_sbindir}/%{rname}
%{_sbindir}/%{rname}Dispatcher
%{_initrddir}/%{rname}
%{_initrddir}/%{rname}Dispatcher
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/%{rname}.conf
#%config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-applet.conf
%dir %{_sysconfdir}/%{rname}
%dir %{_sysconfdir}/%{rname}/dispatcher.d
%dir %{_var}/run/%{rname}
%{_libdir}/nm-crash-logger
#%{_datadir}/icons/hicolor/*/apps/*.png
#%{_datadir}/gnome/autostart/nm-applet.desktop
%dir %{_datadir}/%{rname}
%{_datadir}/%{rname}/*
#%dir %{_datadir}/nm-applet
#%{_datadir}/nm-applet/applet.glade
#%{_datadir}/nm-applet/keyring.png
%dir %{_datadir}/gnome-vpn-properties
%{_datadir}/gnome-vpn-properties/nm-vpn-properties.glade
%{_mandir}/man1/*.1*
%{_mandir}/man8/NetworkManager*.8.*
%{_libdir}/libnm_glib.so.*
%{_libdir}/libnm-util.so.*


%files devel
%dir %{_includedir}/%{rname}
%{_includedir}/%{rname}/%{rname}*.h
%{_includedir}/%{rname}/nm-vpn-ui-interface.h
%{_libdir}/pkgconfig/%{rname}.pc
%{_includedir}/%{rname}/libnm_glib.h
%{_libdir}/libnm_glib.so
%{_libdir}/libnm_glib.la
%{_libdir}/libnm_glib.a
%{_libdir}/pkgconfig/libnm_glib.pc
%{_includedir}/%{rname}/cipher*.h
%{_includedir}/%{rname}/dbus-*.h
%{_libdir}/libnm-util.so
%{_libdir}/libnm-util.la
%{_libdir}/libnm-util.a
%{_libdir}/pkgconfig/libnm-util.pc


hope someone will tell me what i'm doing wrong...  ::)

PS. i even can't pack again unpaked srpm from our repo becouse i'm have the same error....
« Last Edit: August 01, 2009, 11:06:00 AM by siamer »
Every man dies, but not every man really lives... !!

   

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Network Manager build error
« Reply #1 on: August 01, 2009, 02:30:04 PM »
You might consider looking at a mandriva srpm for hints..  maybe a patch is needed for the source.

Offline siamer

  • Sr. Member
  • ****
  • Posts: 284
    • ZEN-mini
Re: Network Manager build error
« Reply #2 on: August 01, 2009, 02:39:03 PM »
i checked it and i have exacly the same error   ???
« Last Edit: August 01, 2009, 02:46:12 PM by siamer »
Every man dies, but not every man really lives... !!

   

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Network Manager build error
« Reply #3 on: August 01, 2009, 04:24:59 PM »
When it comes to errors in compiling I'm not much use...  especially when half the output is in a foreign language.  ;D

The previous packager left their email in the changelog..  you might try sending them a message, or do some research into other configure options:

%configure
 This is the normal ./configure function used to build packages from source. Variant of this function are %{configure}, %configure2_5x. Use the one that suits your build. All of these allow you to add arguments (—prefix is one argument used to specify a path of installation (see the %{_prefix} macro). Always lookup the source code's configure files to see what arguments are available.

Offline siamer

  • Sr. Member
  • ****
  • Posts: 284
    • ZEN-mini
Re: Network Manager build error
« Reply #4 on: August 02, 2009, 12:35:35 AM »
i tryed compile in normal way from source that program and i can't... again error... maybe some dependiencies are missing... ? Can You try compile it on Your system ? Maybe i have some mess :P...

Thanks :)
siamer
Every man dies, but not every man really lives... !!

   

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Network Manager build error
« Reply #5 on: August 02, 2009, 10:59:40 AM »
I havn't tried building yet, but I have run into one possible dependency problem; my output from addpkg when installing dependencies for the spec:

Code: [Select]
Do "apt-get update" first? [y/N]
Requires libnl-devel >= 1.1 and found libnl1-devel 1.1-1pclos2007 - Continue? [Y/n]
libnl1-devel
dhcdbd
libiw-devel
Requires libhal-devel >= 0.5.0 and found libhal1-devel 0.5.12-0.2pclos2007 - Continue? [Y/n]
libhal1-devel
libgnome-keyring-devel
libgnomeui2-devel

The following 6 packages will be installed:

libnl1-devel dhcdbd libiw-devel libhal1-devel libgnome-keyring-devel libgnomeui2-devel

Are you sure? [y/N] y
Save list of files? [Y/n] y

Please enter root Password:

Please wait while packages are processed...

Running apt-get install

Reading Package Lists...
Building Dependency Tree...
Package libiw-devel is a virtual package provided by:
  libiw29-devel 29-1pclos2007
  libiw28-devel 28-2pclos2007
You should explicitly select one to install.
E: Package libiw-devel is a virtual package with multiple good providers.

..if you look through it, you will see that there are three packages that the script has questions about, with the last one actually causing an error requiring manual install.  I'm going to do a little testing with the different packages, but my guess is that one of them might be part of the problem.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Network Manager build error
« Reply #6 on: August 02, 2009, 11:07:07 AM »
It built fine using libiw28-devel on my minime09 based packaging VM.  I will try again with libiw29-devel and see if that is an issue.

UPDATE:  using libiw29-devel also builds fine on my system.  

If you haven't installed it, I would recommend you install (Click2Install) pkgutils from the repo, then right click on your spec file and select "Install dependencies..";  this will  help to make sure you didn't miss any if you installed them manually.
« Last Edit: August 02, 2009, 11:18:58 AM by travisn000 »

Offline siamer

  • Sr. Member
  • ****
  • Posts: 284
    • ZEN-mini
Re: Network Manager build error
« Reply #7 on: August 02, 2009, 12:43:16 PM »
Hi.

i didn't  :-\ i'm using zen. i was playing with few thinks so propobly i made some mess there... i will try to reinstall my system and try then...

THANK YOU very much for checking that :)
siamer

PS. HOW TO DO THAT "then right click on your spec file and select "Install dependencies.." ?? It's not working for me but it sounds good  ;D i was installing all dependiencies by synaptic all the time  ::) help me with that ;D
« Last Edit: August 03, 2009, 01:00:21 AM by siamer »
Every man dies, but not every man really lives... !!

   

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Network Manager build error
« Reply #8 on: August 04, 2009, 10:45:03 AM »
PS. HOW TO DO THAT "then right click on your spec file and select "Install dependencies.." ?? It's not working for me but it sounds good  ;D i was installing all dependiencies by synaptic all the time  ::) help me with that ;D

The right-click menu options are available in KDE / Konqueror if you have pkgutils installed..  If you are using Zen, I don't know that you will have them.