can not compile svn-snapshot

Thorsten Kolb thorsten_kolb at urz.uni-hd.de
Tue Feb 27 10:16:48 CET 2007


Hi there,

I tried to compile the latest svn-code once again with a fresh install of 
slackware-11.0. I got the same errors as before. Tried libnl-1.0-pre4,5 and 
6, everytime the same.

best regards Thorsten

> On Thursday 15 February 2007 15:18:54 Helmut Schaa wrote:
> Sorry, lost the list from CC.
>
> I have no idea why you do not have the __u64 type. You can try to define it
> with something like "typedef unsigned long long __u64" between
> the "linux/types.h" and the "netlink.h" includes. But this would be a very
> dirty hack.
>
> Perhaps it would be a good idea to allow to disable libnl usage with a
> configure flag until libnl gets its includes right.
>
> Helmut
>
> Am Donnerstag, 15. Februar 2007 11:42 schrieben Sie:
> > On Thursday 15 February 2007 11:03:02 Helmut Schaa wrote:
> > > Have a look at the thread we had some time ago. Either downgrade libnl
> > > or add the suggested workaround.
> > >
> > > Helmut
> > >
> > > Am Donnerstag, 1. Februar 2007 16:09 schrieb Thorsten Kolb:
> > > > I can not compile the latest svn-code, I just get this output. Any
> > > > sugestions?
> > >
> > > <snip>
> > >
> > > > /usr/include/netlink/netlink-kernel.h:222: error: `__u32' does not
> > > > name a type /usr/include/netlink/netlink-kernel.h:232: error: `__u16'
> > > > does not name a type /usr/include/netlink/netlink-kernel.h:235:
> > > > error: `__u16' does not name a type In file included from
> > > > /usr/include/netlink/netlink.h:24,
> > >
> > > I recently discussed that problem with Hasso Tepper. In my opinion
> > > thats something libnl should fix. As a workaround you can put #include
> > > <linux/types.h> into knetworkmanager-devicestore.h over the netlink
> > > includes. That should do the trick.
> > >
> > > The problem only exists for libnl newer then 1.0pre5.
> >
> > Ok,
> > but I user libnl 1.0pre3.
> > I nevertheless changed knetworkmanager-devicestore.h. One time I tried it
> > with:
> >
> > ---------
> > #ifndef KNETWORKMANAGER_DEVICESTORE_H
> > #define KNETWORKMANAGER_DEVICESTORE_H
> >
> > #include <NetworkManager/NetworkManager.h>
> >
> > extern "C"
> > {
> > #include <linux/types.h>
> > #include <netlink/netlink.h>
> > #include <netlink/route/link.h>
> > }
> >
> > #include "knetworkmanager.h"
> > -----------
> >
> >
> > And one time with that:
> >
> > -------
> > #ifndef KNETWORKMANAGER_DEVICESTORE_H
> > #define KNETWORKMANAGER_DEVICESTORE_H
> >
> > #include <NetworkManager/NetworkManager.h>
> > #include <linux/types.h>
> >
> > extern "C"
> > {
> > #include <netlink/netlink.h>
> > #include <netlink/route/link.h>
> > }
> >
> > #include "knetworkmanager.h"
> > ------
> >
> >
> > But still get this:
> > ------
> >
> > creating ./knetworkmanager/src/activation.cpp
> > creating ./knetworkmanager/src/unknownservice.moc
> > creating ./knetworkmanager/src/unknownservice.cpp
> > creating ./knetworkmanager/src/connectioninfowidget.moc
> > creating ./knetworkmanager/src/connectioninfowidget.cpp
> > creating
> > ./knetworkmanager/vpn-plugins/vpnc/src/knetworkmanager-vpnc.moc.cpp
> > creating ./knetworkmanager/vpn-plugins/vpnc/src/vpncauth.moc
> > creating ./knetworkmanager/vpn-plugins/vpnc/src/vpncauth.cpp
> > creating ./knetworkmanager/vpn-plugins/vpnc/src/vpncprop.moc
> > creating ./knetworkmanager/vpn-plugins/vpnc/src/vpncprop.cpp
> > compiling
> > /home/simon/Desktop/package-from-source/kde/knetworkmanager/knetworkmanag
> >er -svn/knetworkmanager/src/knetworkmanager-vpnplugin.cpp compiling
> > /home/simon/Desktop/package-from-source/kde/knetworkmanager/knetworkmanag
> >er -svn/knetworkmanager/src/knetworkmanager-plugin.cpp compiling
> > /home/simon/Desktop/package-from-source/kde/knetworkmanager/knetworkmanag
> >er -svn/knetworkmanager/src/main.cpp g++ -DHAVE_CONFIG_H
> > -I./knetworkmanager/src
> > -I/home/simon/Desktop/package-from-source/kde/knetworkmanager/knetworkman
> >ag er-svn/knetworkmanager/src -I. -DDBUS_API_SUBJECT_TO_CHANGE
> > -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/hal
> > -I/usr/include/NetworkManager -I/usr/include/glib-2.0
> > -I/usr/lib/glib-2.0/include -I/opt/kde/include -I/usr/lib/qt/include
> > -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long
> > -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
> > -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security
> > -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions
> > -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
> > -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -UQT_NO_ASCII_CAST -fPIC
> > -DPIC -c
> > /home/simon/Desktop/package-from-source/kde/knetworkmanager/knetworkmanag
> >er -svn/knetworkmanager/src/main.cpp -o ./knetworkmanager/src/.libs/main.o
> > -Wp,-MD,./knetworkmanager/src/.deps/main.TUlo In file included from
> > /usr/include/netlink/netlink.h:25,
> >
> > from
> > /home/simon/Desktop/package-from-source/kde/knetworkmanager/knetworkmanag
> >er -svn/knetworkmanager/src/knetworkmanager-devicestore.h:34,
> >
> > from
> > /home/simon/Desktop/package-from-source/kde/knetworkmanager/knetworkmanag
> >er -svn/knetworkmanager/src/knetworkmanager.h:37,
> >
> > from
> > /home/simon/Desktop/package-from-source/kde/knetworkmanager/knetworkmanag
> >er -svn/knetworkmanager/src/main.cpp:25:
> > /usr/include/netlink/rtnetlink-kernel.h:498: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:499: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:500: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:501: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:502: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:503: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:504: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:505: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:506: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:507: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:663: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:664: error: `__u64' does not name
> > a type
> > /usr/include/netlink/rtnetlink-kernel.h:665: error: `__u64' does not name
> > a type
> > Error creating ./knetworkmanager/src/main.lo. Exit status 1.
> > -------------



-- 


Thorsten Kolb

Fritz-Frey-Strasse 10 

69121 Heidelberg 

Germany


phone: 015114164444

mail: thorsten_kolb at urz.uni-hd.de
 


More information about the kde-networkmanager mailing list