From owner-freebsd-questions@FreeBSD.ORG Tue Aug 8 04:41:36 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFFCC16A4DF for ; Tue, 8 Aug 2006 04:41:36 +0000 (UTC) (envelope-from david+dated+1155444093.d56765@skytracker.ca) Received: from 3s1.com (3s1.com [209.161.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD1C043D46 for ; Tue, 8 Aug 2006 04:41:35 +0000 (GMT) (envelope-from david+dated+1155444093.d56765@skytracker.ca) Received: from 3s1.com (localhost [127.0.0.1]) by 3s1.com (8.13.6/8.13.6) with ESMTP id k784fXcO028310 for ; Tue, 8 Aug 2006 00:41:33 -0400 (EDT) (envelope-from david+dated+1155444093.d56765@skytracker.ca) Received: (from david@localhost) by 3s1.com (8.13.6/8.13.6/Submit) id k784fXfw028309 for questions@freebsd.org; Tue, 8 Aug 2006 00:41:33 -0400 (EDT) (envelope-from david+dated+1155444093.d56765@skytracker.ca) X-Authentication-Warning: 3s1.com: david set sender to david+dated+1155444093.d56765@skytracker.ca using -f Received: by 3s1.com (tmda-sendmail, from uid 1000); Tue, 08 Aug 2006 00:41:33 -0400 (EDT) Date: Tue, 8 Aug 2006 00:41:32 -0400 To: questions@freebsd.org Message-ID: <20060808044132.GA13117@skytracker.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i From: David Banning X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) Cc: Subject: problems with module under 6.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 04:41:36 -0000 I am attempting to install the module svr4 under FreeBSD version 6.1 I initially tried to run my SVR4 binary by compiling svr4 right into the kernel. The kernel compiles, but the svr4 binary will not run. Attempting to run my svr4 binary gives the error; 1250 Abort trap: 6 I know my svr4 binary runs under FreeBSD 4.9, so I figure "fine, I can load the module. Presently, under my 4.9 system, modules are; Id Refs Address Size Name 1 6 0xc0100000 402368 kernel 2 2 0xc0dc3000 a000 ibcs2.ko 3 1 0xc0dd0000 3000 ibcs2_coff.ko 4 1 0xc0dd6000 15000 linux.ko 5 1 0xc0df4000 3000 streams.ko 6 1 0xc0df7000 15000 svr4.ko Back to my problem 6.1 system; I looked in /boot/kernel but the svr4.ko file doesn't exist. So I went into /sys/modules/svr4 and attempt to compile it. I get errors that the files opt_sysvipc.h and opt_ktrace.h were missing. A locate command found that those files were available elsewhere in the system, so now I try copying those files to /sys/modules/svr4. Following another compile, now svr4.ko is created, but it will not load; 192# kldload svr4 kldload: can't load svr4: File exists Of course it won't - it's compiled into the system. So I take the module -out- of configuration file, and I recompile the kernel. Again I have to compile the svr4 separately. When I try to load it now after reboot, I get; # cd /boot/kernel # kldload svr4 kldload: can't load svr4: No such file or directory OK - so I try and add the extension; # kldload svr4.ko kldload: can't load svr4.ko: No such file or directory Yet the file exists; # ls -tld /boot/kernel/svr4.ko -r-xr-xr-x 1 root wheel 79856 Aug 7 20:33 /boot/kernel/svr4.ko # I checked /sys/modules/svr4/README and checked that streams in compiled into the kernel, which it is. Now I am at a loss as to where to go from here. My next step is to cvsup the system and rebuild and reinstall world.