From owner-freebsd-current Fri Sep 25 20:42:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA14443 for freebsd-current-outgoing; Fri, 25 Sep 1998 20:42:31 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA14437; Fri, 25 Sep 1998 20:42:24 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id NAA23504; Sat, 26 Sep 1998 13:42:15 +1000 Date: Sat, 26 Sep 1998 13:42:15 +1000 From: Bruce Evans Message-Id: <199809260342.NAA23504@godzilla.zeta.org.au> To: grog@lemis.com, jb@cimlogic.com.au, sos@FreeBSD.ORG Subject: Re: Make worl error on -current elf ...please help Cc: freebsd-current@FreeBSD.ORG, wwoods@cybcon.com Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>> What happened to testing things out before committing? >> >> Good question, it worked here once and then failled bittlerly :( >> I've backed it out again... You apparently didn't test with a clean elf system. The -aout flag is forced for LKMs, since LKMs proper require it. The flag leaks into the building of utilities like linux_genassym. Therefore, the build fails unless aout libraries are present. aout libraries in /usr/lib/aout/ shouldn't be used for building the world, but are (because -nostdlib can't be used). aout libraries shouldn't be searched for in /usr/lib/, but are (most paths in $COMPILER_ENV are wrong - among other bugs, there are some hard-coded /usr/lib's and some elf paths which are wrong for aout). >> We still need to get the LKM's rebuild even on an ELF system though, >> but this was clearly not the way... See sys/i386/conf/Makefile.i386 for several rounds of fixes for the same bug in the kernel CFLAGS versus utilities CFLAGS. Building linux_genassym in LINT apparently avoids the bug because the build rule in sys/i386/conf/Makefile.i386 is too poorly maintained to ever have had -aout. >I don't understand. I've been building LKMs on an ELF system for a >week or two. The only problem is that they don't get built until you >install (buildworld doesn't, installworld does). Am I missing >something? installworld installs aout libraries. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message