[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: compilation error in kdesupport
From:       "Raul Fernandes" <rgfernandes () gmail ! com>
Date:       2008-12-08 1:13:37
Message-ID: fa597860812071713id3016e4ucbcf6ea8800ac804 () mail ! gmail ! com
[Download RAW message or body]

2008/12/7 Raul Fernandes <rgfernandes@gmail.com>:
> Well, I don't know what happens. If the function was removed why the
> code still works??
> If I return the old headers, the code compiles.
> Is this a bug, right??
> Can anyone test and report if it happens too? You have to update the
> kernel headers too not the kernel itself only.

Searching more for the function, I have found that it is implemented
in glibc. So I do a quick hack to see if it works:

diff --git a/kdecore/network/k3resolverstandardworkers.cpp
b/kdecore/network/k3resolverstandardworkers.cpp
index 5abd2f5..75ea986 100644
--- a/kdecore/network/k3resolverstandardworkers.cpp
+++ b/kdecore/network/k3resolverstandardworkers.cpp
@@ -41,6 +41,10 @@
 #include <net/if.h>
 #endif

+#ifdef HAVE_IF_NAMETOINDEX
+extern unsigned int if_nametoindex( const char *__ifname);
+#endif
+
 #include <QFile>
 #include <QList>
 #include <QMutex>

Now, it seems to compile. At least don't show the same error.
It is 11:00 pm now. So tomorrow I will try to compile the whole
kdelibs and test to see if it fix the problem.

Raul Fernandes
rgfernandes@gmail.com
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic