From owner-freebsd-bugs Tue Nov 11 02:40:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA14322 for bugs-outgoing; Tue, 11 Nov 1997 02:40:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA14303; Tue, 11 Nov 1997 02:40:02 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 11 Nov 1997 02:40:02 -0800 (PST) Resent-Message-Id: <199711111040.CAA14303@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, lbnstn@lili.uni-bielefeld.de Received: from lili23.lili.uni-bielefeld.de (lili23.lili.uni-bielefeld.de [129.70.23.23]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA13940 for ; Tue, 11 Nov 1997 02:30:31 -0800 (PST) (envelope-from lbnstn@lili23.lili.uni-bielefeld.de) Received: (from lbnstn@localhost) by lili23.lili.uni-bielefeld.de (8.8.5/8.8.5) id LAA01032; Tue, 11 Nov 1997 11:30:16 +0100 (CET) Message-Id: <199711111030.LAA01032@lili23.lili.uni-bielefeld.de> Date: Tue, 11 Nov 1997 11:30:16 +0100 (CET) From: lbnstn@lili.uni-bielefeld.de Reply-To: lbnstn@lili.uni-bielefeld.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5009: ibcs2 emulation Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5009 >Category: kern >Synopsis: ibcs2 emulation >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 11 02:40:01 PST 1997 >Last-Modified: >Originator: Uwe Laubenstein >Organization: >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: Custum kernel (same configuration on 2.2.2-R and 2.2.5-R), ibcs2 emulation loaded as a lkm. Upgrade to 2.2.5-R was done by removing /usr/src, copying the new sources and executing "make world". >Description: The C-compiler from SCO-Openserver 5.0.2 works under FreeBSD 2.2.2-R but fails after upgrading to 2.2.5-R with the following error message: libsocket: socket: /dev/socksys: No such file or directory /compat/ibcs2/usr/ccs/lib/acomp: ERROR- Failed to initialize policy manager.(IFOR_PM_FATAL) Booting the 2.2.5-R system with an old 2.2.2-R kernel solves the problem. The following output from ktrace/kdump shows the differences between 2.2.2-R and 2.2.5-R: FreeBSD 2.2.2-RELEASE: ktrace RET ktrace 0 ktrace CALL execve(0xefbfdd37,0xefbfdcb8,0xefbfdce8) ktrace NAMI "/compat/ibcs2/usr/ccs/lib/acomp" acomp RET execve 0 acomp CALL setlogin(0x72,0x44c530) acomp RET setlogin -1 errno 22 Invalid argument acomp CALL old.lstat(0xefbfdb3e,0x62,0xefbfdba0,0xefbfdba0,0x401d2c) acomp RET old.lstat 0 acomp CALL break(0x451558) acomp RET break 0 acomp CALL break(0x452558) acomp RET break 0 acomp CALL break(0x453558) acomp RET break 0 acomp CALL close(0) acomp RET close 0 acomp CALL open(0xefbfdd5b,0,0x1b6) acomp NAMI "xx.c" acomp RET open 0 ... FreeBSD 2.2.5-RELEASE: ktrace RET ktrace 0 ktrace CALL execve(0xefbfdd37,0xefbfdcb8,0xefbfdce8) ktrace NAMI "/compat/ibcs2/usr/ccs/lib/acomp" acomp RET execve 0 acomp CALL setlogin(0x72,0x44c530) acomp RET setlogin -1 errno 22 Invalid argument acomp CALL old.lstat(0xefbfdb3e,0x62,0xefbfdba0,0xefbfdba0,0x401d2c) acomp RET old.lstat 0 acomp CALL old.lstat(0x1,0x42f20c,0x42f210,0xefbfdb18,0x53618) acomp RET old.lstat 0 acomp CALL break(0x44d558) acomp RET break 0 acomp CALL open(0x42fe84,0,0x44c6c4) acomp NAMI "/compat/ibcs2/dev/socksys" acomp NAMI "/dev/socksys" acomp RET open -1 errno 2 No such file or directory acomp CALL write(0x2,0xefbfd9e8,0x13) acomp GIO fd 2 wrote 19 bytes "libsocket: socket: " acomp RET write 19/0x13 ... >How-To-Repeat: If you have access to SCO's C-compiler try: /compat/ibcs2/usr/ccs/lib/acomp -i xx.c -o xx.s -f xx.c -E -y0/usr/include -Qy -Xa >Fix: No idea. The files in /sys/i386/ibcs2 did not change between 2.2.2-RELEASE and 2.2.5-RELEASE so the problem must be somewhere else in the kernel sources. >Audit-Trail: >Unformatted: