From owner-freebsd-stable@FreeBSD.ORG Mon Dec 22 17:29:23 2014 Return-Path: Delivered-To: stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02208672 for ; Mon, 22 Dec 2014 17:29:23 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 99D3B117 for ; Mon, 22 Dec 2014 17:29:22 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id sBMHT9ns097556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Dec 2014 19:29:09 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua sBMHT9ns097556 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id sBMHT8HZ097555; Mon, 22 Dec 2014 19:29:08 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 22 Dec 2014 19:29:08 +0200 From: Konstantin Belousov To: MT Subject: Re: Old 32-bit binary stopped working after upgrade to 10.1/amd64 Message-ID: <20141222172908.GZ2148@kib.kiev.ua> References: <5498511E.9090208@aldan.algebra.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5498511E.9090208@aldan.algebra.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: stable@FreeBSD.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2014 17:29:23 -0000 On Mon, Dec 22, 2014 at 12:13:02PM -0500, MT wrote: > Hello! > > One of the users here is still actively using Applixware office suit. > The applications worked alright under FreBSD-8.x/i386: > > % file /opt/applix/applix > /opt/applix/applix: ELF 32-bit LSB executable, Intel 80386, version > 1, dynamically linked (uses shared libs), not stripped > > Unfortunately, applix would not start under FreeBSD-10.1/amd64: Bad > system call. The tail of kdump looks thus: > > ...... > 14383 applix CALL sigprocmask(SIG_BLOCK,0x28071e20,0xffffc788) > 14383 applix RET sigprocmask 0 > 14383 applix CALL sigprocmask(SIG_SETMASK,0x28071e34,0) > 14383 applix RET sigprocmask 0 > 14383 applix CALL sigprocmask(SIG_BLOCK,0x28071e20,0xffffc788) > 14383 applix RET sigprocmask 0 > 14383 applix CALL sigprocmask(SIG_SETMASK,0x28071e34,0) > 14383 applix RET sigprocmask 0 > 14383 applix CALL compat.sigprocmask > 14383 applix RET compat.sigprocmask -1 errno 78 Function not > implemented > 14383 applix PSIG SIGSYS SIG_DFL code=SI_KERNEL > > I copied the 32-bit libraries from the old install -- they are found, > according to ldd. > > % ldd /opt/applix/applix > /opt/bin/applix: > libX11.so.6 => /opt/lib32/libX11.so.6 (0x2807b000) > libm.so.2 => /usr/lib32/libm.so.4 (0x281af000) > libc.so.3 => /usr/lib32/libc.so.3 (0x281c5000) > libxcb.so.2 => /opt/lib32/libxcb.so.2 (0x28247000) > libXau.so.6 => /opt/lib/../lib32/libXau.so.6 (0x2825e000) > libXdmcp.so.6 => /opt/lib/../lib32/libXdmcp.so.6 (0x28261000) > libpthread-stubs.so.0 => > /opt/lib/../lib32/libpthread-stubs.so.0 (0x28267000) > librpcsvc.so.5 => /usr/lib32/librpcsvc.so.5 (0x28269000) > libc.so.7 => /usr/lib32/libc.so.7 (0x28271000) > > Yes, the usage of libm.so.4 instead of 2 looks funny, but that's how it > always was -- the old (8.x) install does not have libm.so.2 at all. > Besides, it dies at the very start -- would not even process the > `-version' or `-help' options.... > > The new kernel includes GENERIC -- without disabling any of the > COMPAT-options. > > What else am I missing? Thank you! Yours, I think you need COMPAT_43 option. It is for compatibility with pre-FreeBSD 4 syscalls, not for FreeBSD 4.3.