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

List:       kde-devel
Subject:    Re: compilation error in kdesupport
From:       Gary Greene <greeneg () tolharadys ! net>
Date:       2008-12-08 9:29:04
Message-ID: 200812080129.07169.greeneg () tolharadys ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 08 December 2008 12:17:21 am Thiago Macieira wrote:
> Raul Fernandes wrote:
> >2008/12/7 Thiago Macieira <thiago@kde.org>:
> >> This code has remained the same for over 5 years now, and has been
> >> mostly untouched since it was ported to KDE 4.
> >>
> >> There's something wrong with your system.
> >
> >The problem is I have updated the linux headers from version 2.6.12 to
> >version 2.6.27.7.
> >Only the headers (/usr/include/{asm,linux,net,scsi}).
> >The kernel I use always was more recent but the headers was outdated.
> >
> >After the update, I had this error while compiling qt:
> >
> >Creating qmake. Please wait...
> >In file included from generators/makefiledeps.cpp:44:
> >/var/tmp/kde-build/qt4/mkspecs/linux-g++/qplatformdefs.h:78:20: error:
> >net/if.h: Arquivo ou diretório não encontrado
> >make: ** [makefiledeps.o] Erro 1
> >
> >So I have found that net/if.h was moved before 2.6.19.
>
> Please fix your system. The code is correct both in Qt and in KDE:
>
> http://www.opengroup.org/onlinepubs/000095399/functions/if_nametoindex.html
>
> That's the POSIX.1 definition. It says if_nametoindex is in net/if.h.
>
> Also:
> RFC2533, RFC 3493 (see section 4.1 in
> http://www.faqs.org/rfcs/rfc3493.html)
> AIX:
> http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.a
>ix.commtechref/doc/commtrf2/if_nametoindex.htm MacOS X:
> http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/if_
>nametoindex.3.html NetBSD:
> http://netbsd.gw.com/cgi-bin/man-cgi?if_nametoindex+3+NetBSD- current
> Solaris: http://docs.sun.com:80/app/docs/doc/816-5170/if-
> nametoindex-3xnet?a=view

Reinforcing Thiago's comment here: Don't just blindly update your headers by 
copying the headers from the Kernel source tree. There are sanitized versions 
of the linux headers that must be used instead of the normal ones from the 
kernel. If you don't use them, you seriously risk this kind of problem since 
the upstream unsantized headers can and will change under your feet.

-- 
Gary L. Greene, Jr.
Sent from: peorth
 01:26:22 up 32 days, 50 min,  6 users,  load average: 0.57, 0.57, 0.45
==========================================================================
Developer and Project Lead for the AltimatOS open source project
Volunteer Developer for the KDE open source project
See http://www.altimatos.com/ and http://www.kde.org/ for more information
==========================================================================

Please avoid sending me Word or PowerPoint attachments.

["signature.asc" (application/pgp-signature)]

>> 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