From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Windows 9X without KernelEx Date: Sun, 16 Jun 2024 08:50:20 +0300 Message-ID: <86plshsag3.fsf@gnu.org> References: <875xub8sn8.fsf.ref@yahoo.com> <875xub8sn8.fsf@yahoo.com> <8634pfy289.fsf@gnu.org> <87sexe7sgm.fsf@yahoo.com> <87o7827r1t.fsf@yahoo.com> <86ed8ywuoz.fsf@gnu.org> <87frte7jry.fsf@yahoo.com> <86a5jmwt2r.fsf@gnu.org> <874j9u7dla.fsf@yahoo.com> <86h6dutirt.fsf@gnu.org> <875xua5lxs.fsf@yahoo.com> <86bk42tfw7.fsf@gnu.org> <868qz6tctn.fsf@gnu.org> <87wmmp4pdy.fsf@yahoo.com> <86r0cxsb37.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12267"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, emacs-devel@gnu.org To: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 16 07:51:17 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sIinM-00030w-7K for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Jun 2024 07:51:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIimY-0002P2-Ar; Sun, 16 Jun 2024 01:50:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIimW-0002Oa-8L for emacs-devel@gnu.org; Sun, 16 Jun 2024 01:50:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIimV-0006BQ-UC; Sun, 16 Jun 2024 01:50:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Wutn2qGj74Ko4/HstkY5iz0UaUYsOo7Q7rqqGnxpQm4=; b=sQovqWSlEMY0 MRyIhafMojZh4T6yExNpmxib1FOH560e/LjUDsgdj9yQNpf6hAeeMStqUHzXP6930i9VRwSPUQa0/ 55SLb/CrNE4eCALuZ0E0FnBo9U9QuYEfwFxW9FzVpYsXeU+Sbwt28o0vly/67+FsLISnz3q68KBWe dj01WQo6dt6iVDE+lXOxY0DUCDeuXlIrmYbUsWUpiN4z4ZvruU5BKrkSGuC66W57HboS+j+U8M46Y /NLTmMhjA3T3CBw8D9NjHDUE5PQTh6BWZW801ksaY8dYg5Gy7GmncqLUzh2VitG5dj8l7FhoFfjCX fSNXJxoCtmn1QAY5VuqgSA==; In-Reply-To: <86r0cxsb37.fsf@gnu.org> (message from Eli Zaretskii on Sun, 16 Jun 2024 08:36:28 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320177 Archived-At: > Date: Sun, 16 Jun 2024 08:36:28 +0300 > From: Eli Zaretskii > Cc: stefankangas@gmail.com, emacs-devel@gnu.org > > > From: Po Lu > > Cc: stefankangas@gmail.com, emacs-devel@gnu.org > > Date: Sun, 16 Jun 2024 10:01:29 +0800 > > > > Eli Zaretskii writes: > > > > > The GDI32.DLL part is specific to the functions used by w32font.c. > > > But the idea is general: all of the APIs that we call directly are > > > supposed to be present in some system DLL, even though some of them > > > have stub implementations. For example, I have SHELL32.DLL (dated Sep > > > 1998!) from my old Windows 9X system, and in it I see both > > > ShellExecuteW and SHFileOperationW exports. > > > > Mine reports a creation time of May 11th 1998, but upon running `nm' I > > see that it indeed exports those two functions, and a test program > > compiled in MinGW: > > > > int > > main () > > { > > extern int ShellExecuteW (); > > extern int SHFileOperationW (); > > char *x = (char *) &ShellExecuteW; > > char *y = (char *) &SHFileOperationW; > > } > > > > starts and exits with no error dialog, and yet Emacs still does not link > > if it imports either symbol. Might there perhaps be symbol versioning > > mechanisms or parameters in object files that influence its view of > > external symbols? I'm lost, sorry. > > I think the reason is we don't link with -lshell32 anymore. We used > to do that until Emacs 25, but dropped that since for some reason. I know why we dropped it: MinGW GCC adds -lshell32 by default, see "gcc -dumpspecs". But maybe you are using an old GCC version which doesn't or something? If you add "-v" to the link command line, do you see "-lshell32" in the command printed by GCC?