Date: Tue, 11 Nov 1997 11:30:16 +0100 (CET) From: lbnstn@lili.uni-bielefeld.de To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/5009: ibcs2 emulation Message-ID: <199711111030.LAA01032@lili23.lili.uni-bielefeld.de> Resent-Message-ID: <199711111040.CAA14303@hub.freebsd.org>
index | next in thread | raw e-mail
>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:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711111030.LAA01032>
