From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 2 May 2002 23:13:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 2 May 2002 23:13:07 -0400 Received: from x35.xmailserver.org ([208.129.208.51]:25002 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id ; Thu, 2 May 2002 23:13:06 -0400 X-AuthUser: davidel@xmailserver.org Date: Thu, 2 May 2002 20:21:56 -0700 (PDT) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Alexander Viro cc: John Covici , Dave Jones , tomas szepe , Keith Owens , lkml Subject: Re: kbuild 2.5 is ready for inclusion in the 2.5 kernel In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2 May 2002, Alexander Viro wrote: > Fix your application. The rules are very simple - /usr/include/linux contains > versions of headers used to build libc. If you are linking against libc, > you don't want to have different parts of resulting executable to be > compiled with different versions of these headers. If you want several > definitions from headers of your current kernel - extract them (and make > damn sure that you don't pull a conflict with libc headers). i do not know how glibc uses to export things but they should not export any kernel related structure. the theory that went around in various kernel update howto was to make linux, asm and scsi links to kernel include dirs. even if glibc would export kernel dependent stuff ( ie ioctl() params ) it should let the pointer go through w/out any manipulation, otherwise it would be linked to a specific kernel version. # find /usr/include/ -name '*.h' -exec grep -H 'include /usr/include/pci/pci.h:#include /usr/include/apm.h:#include /usr/include/a.out.h:# include /usr/include/bits/errno.h:# include /usr/include/bits/local_lim.h:#include /usr/include/net/ethernet.h:#include /usr/include/net/if_slip.h:#include /usr/include/net/ppp-comp.h:#include /usr/include/net/ppp_defs.h:#include /usr/include/netatalk/at.h:#include /usr/include/netinet/if_ether.h:#include /usr/include/netinet/if_fddi.h:#include /usr/include/netinet/if_tr.h:#include /usr/include/netinet/igmp.h:#include /usr/include/nfs/nfs.h:#include /usr/include/sys/kd.h:#include /usr/include/sys/param.h:#include /usr/include/sys/param.h:#include /usr/include/sys/pci.h:#include /usr/include/sys/prctl.h:#include /usr/include/sys/soundcard.h:#include /usr/include/sys/sysctl.h:#include /usr/include/sys/sysinfo.h:#include /usr/include/sys/ultrasound.h:#include /usr/include/sys/vt.h:#include /usr/include/libnet.h:#include i've always used the symlink approach and if you're right i should consider spending some time in Las Vegas ;) - Davide