From owner-freebsd-questions Mon May 20 22:05:47 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA26611 for questions-outgoing; Mon, 20 May 1996 22:05:47 -0700 (PDT) Received: from MindBender.HeadCandy.com (root@[199.238.225.168]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id WAA26575; Mon, 20 May 1996 22:05:32 -0700 (PDT) Received: from localhost.HeadCandy.com (michaelv@localhost.HeadCandy.com [127.0.0.1]) by MindBender.HeadCandy.com (8.7.5/8.6.9) with SMTP id WAA12030; Mon, 20 May 1996 22:05:11 -0700 (PDT) Message-Id: <199605210505.WAA12030@MindBender.HeadCandy.com> X-Authentication-Warning: MindBender.HeadCandy.com: Host michaelv@localhost.HeadCandy.com [127.0.0.1] didn't use HELO protocol To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: freebsd-questions@freebsd.org, freebsd-current@freebsd.org Subject: Re: Help building kernel In-reply-to: Your message of Mon, 20 May 96 22:28:53 +0200. <199605202028.WAA06246@uriah.heep.sax.de> Date: Mon, 20 May 1996 22:05:11 -0700 From: "Michael L. VanLoon -- HeadCandy.com" Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >As Michael L. VanLoon -- HeadCandy.com wrote: >> Help! I'm trying to build a kernel on 2.1.0-Release, and I can't get >> it to work. Every time it goes to link I get these two errors: >> init_main.o: Undefined symbol `_dummyinit' referenced >> kern_xxx.o: Undefined symbol `_dummy_cleanup' referenced >Interesting. Both are defined just one line before they are used. >Are you sure you're using the stock 2.1 `ld'? >Try declaring them as non-static, and see if the linker will find >them. The problem was that the compiler optimized them out of existance. I'm used to building a kernel fully optimized (-O6) under NetBSD, and just did the same thing here. Building with -O fixed the problem. ----------------------------------------------------------------------------- Michael L. VanLoon michaelv@HeadCandy.com --< Free your mind and your machine -- NetBSD free un*x >-- NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3, Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32... NetBSD ports in progress: PICA, others... Roll your own Internet access -- Seattle People's Internet cooperative. If you're in the Seattle area, ask me how. -----------------------------------------------------------------------------