Wasn't there a discussion on -current not too long ago about the use of non-stock CFLAGS in make.conf causing these type-of problems? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. | On Wed, Aug 04, 2004 at 06:04:57PM -0500, Jon Noack wrote: > On 08/04/04 17:44, Randy Bush wrote: > >linking kernel.debug > >i686_mem.o(.text+0xf6a): In function `i686_mem_drvinit': > >/usr/src/sys/i386/i386/i686_mem.c:616: undefined reference to > >`mem_range_softc' > >k6_mem.o(.text+0x433): In function `k6_mem_drvinit': > >/usr/src/sys/i386/i386/k6_mem.c:181: undefined reference to > >`mem_range_softc' > >mem.o(.text+0x2a3): In function `memioctl': > >/usr/src/sys/i386/i386/mem.c:174: undefined reference to `mem_range_softc' > >mem.o(.text+0x2b5):/usr/src/sys/i386/i386/mem.c:178: undefined reference > >to `mem_range_softc' > >mem.o(.text+0x2dc): In function `memioctl': > >/usr/src/sys/sys/libkern.h:52: undefined reference to `mem_range_softc' > >mem.o(.text+0x31d): In function `memioctl': > >/usr/src/sys/i386/i386/mem.c:188: undefined reference to > >`mem_range_attr_get' > >mem.o(.text+0x363):/usr/src/sys/i386/i386/mem.c:195: undefined reference > >to `mem_range_softc' > >mem.o(.text+0x3bb):/usr/src/sys/i386/i386/mem.c:206: undefined reference > >to `mem_range_attr_set' > >mem.o(.text+0x408): In function `dev_mem_md_init': > >/usr/src/sys/i386/i386/mem.c:216: undefined reference to `mem_range_softc' > >mem.o(.text+0x412):/usr/src/sys/i386/i386/mem.c:217: undefined reference > >to `mem_range_softc' > >mem.o(.text+0x417):/usr/src/sys/i386/i386/mem.c:217: undefined reference > >to `mem_range_softc' > >*** Error code 1 > > > >Stop in /usr/obj/usr/src/sys/ROAM. > >*** Error code 1 > > > >Stop in /usr/src. > >*** Error code 1 > > Same problem here with CPUTYPE=p4 and CFLAGS=-O2 -pipe -g on my Pentium > 4 workstation (w/o SMP). Oddly enough, it works fine on my dual Pentium > 3 server (w/ SMP) with CPUTYPE=p3 and CFLAGS=-O2 -pipe -g. Both have > identical source. The kernel config files are very similar and are > stripped down to necessary stuff. Other than SMP, the only differences > between the two are for differing drivers (SCSI vs. IDE, USB, network, > and sound). > > Here's my exact error message (using 'make -s' so it might be a little > short): > > linking kernel.debug > memutil.o(.text+0xd): In function `mem_range_attr_get': > /usr/src/sys/dev/mem/memutil.c:43: undefined reference to `mem_range_softc' > memutil.o(.text+0x1f):/usr/src/sys/dev/mem/memutil.c:47: undefined > reference to `mem_range_softc' > memutil.o(.text+0x3d):/usr/src/sys/dev/mem/memutil.c:49: undefined > reference to `mem_range_softc' > memutil.o(.text+0x5a): In function `mem_range_attr_set': > /usr/src/sys/dev/mem/memutil.c:58: undefined reference to `mem_range_softc' > memutil.o(.text+0x68):/usr/src/sys/dev/mem/memutil.c:61: undefined > reference to `mem_range_softc' > i686_mem.o(.text+0xe49):/usr/src/sys/i386/i386/i686_mem.c:616: more > undefined references to `mem_range_softc' follow > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/COMPGEEK. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Jon > _______________________________________________ > freebsd-current_at_freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"Received on Wed Aug 04 2004 - 21:07:42 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC