From owner-freebsd-current@freebsd.org Thu Apr 23 06:30:25 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5AEFE2A8147 for ; Thu, 23 Apr 2020 06:30:25 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4976qj0vZ6z4WsP for ; Thu, 23 Apr 2020 06:30:25 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: by mailman.nyi.freebsd.org (Postfix) id 1EFF62A8146; Thu, 23 Apr 2020 06:30:25 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1EC652A8144 for ; Thu, 23 Apr 2020 06:30:25 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4976qh1bVYz4WsN for ; Thu, 23 Apr 2020 06:30:24 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5B165201.dip0.t-ipconnect.de [91.22.82.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256)) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id 76FBE24DAC; Thu, 23 Apr 2020 08:30:12 +0200 (CEST) Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id DFD092669; Thu, 23 Apr 2020 08:30:08 +0200 (CEST) Date: Thu, 23 Apr 2020 08:30:08 +0200 Message-ID: <20200423083008.Horde.pIybBPGLYf5eoV_K5M6O6w7@webmail.leidinger.net> From: Alexander Leidinger To: Konstantin Belousov Cc: current@freebsd.org Subject: Re: nfslockd kernel module fails to load References: <20200423080809.Horde.Bo3hS63ATAG-0MzxdGgLyhI@webmail.leidinger.net> <20200423061908.GE2522@kib.kiev.ua> In-Reply-To: <20200423061908.GE2522@kib.kiev.ua> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_TTpgM3gNnYYQdMQz1kGjMvq"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4976qh1bVYz4WsN X-Spamd-Bar: -------- X-Spamd-Result: default: False [-8.83 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-3.73)[ip: (-9.84), ipnet: 2a00:1828::/32(-4.90), asn: 34240(-3.91), country: DE(-0.02)]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[1.82.22.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2020 06:30:25 -0000 This message is in MIME format and has been PGP signed. --=_TTpgM3gNnYYQdMQz1kGjMvq Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Konstantin Belousov (from Thu, 23 Apr=20=20 2020=2009:19:08 +0300): > On Thu, Apr 23, 2020 at 08:08:09AM +0200, Alexander Leidinger wrote: >> Hi, >> >> link_elf_obj: symbol xdr_free undefined >> linker_load_file: /boot/kernel/nfslockd.ko - unsupported file type >> KLD nfsd.ko: depends on nfslockd - not available or version mismatch >> linker_load_file: /boot/kernel/nfsd.ko - unsupported file type >> >> The xdr kernel module is loaded. > > The following should help. > /* So that loader and kldload(2) can find us, wherever we are.. */ > +MODULE_DEPEND(nfslockd, xdr, 1, 1, 1); > MODULE_DEPEND(nfslockd, krpc, 1, 1, 1); I thought MODULE_DEPEND is only a way to tell the loader / kldload=20=20 that=20the other module is to be loaded in case it is not in the kernel=20= =20 /=20loaded already. Is this only a part of what it does and / or did=20=20 this=20change and now it is also needed so that a kernel module is able=20= =20 to=20resolve the symbols? In my case the module is loaded already when I=20= =20 try=20to load the nfslockd module. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_TTpgM3gNnYYQdMQz1kGjMvq Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJeoTXwAAoJEBINsJsD+NiGG4EQAKlNo0j09AUmkzKBlHz716wT rXEWyxkvTJ6s46MtAGATd9yVckDAjCMf8YPR5CcfxYYEuixf5CBEKCK2VGFuqJ5o 11Zdf8sWDgNA5OQ6nmY0XxeUeDD3e6tXSGuhMLKMSpVFIH2LETOg1g1y2egXYCkR 7FhytAMwyGJCrGWUAtvqy/fUIuzvMbsUKBHO21ZPzzA43B7QOF1eatqkax9II7zD LhD4X9ecdY2qU3zQyXirnE8/6wPMGaNj7iHpjsq9tlu9tASUdro/fNhGG8wrcaTE uuhkmHCsUjdlNdUz4TgJz7zzxJ9O6xU0Arg5PsdV5N6HaolYOlBVirrhfsVJTXfW kYNBl0YWon5QBdyz7D3NtARtmi8qjeED+FMCN5b6uttxTlftO2490ZECWfu0hAo6 gX+Ab2apteodiL+ttmodUHHeMbXdSZC049IG2PTKTWPlpSiuZy/MPnljy7UjWdh0 rnROjoDjwXAGaeXNpOKmpN312nPBBK5pHWTLPhtjZ/V8p76YtzOv5Mm36sgtUWPf skQCpB6WU/5Dlpv2NVIDYvUUCZlcN6OO0D9Z0O4EoAfDt8z2UzfJypjwUzwukzrO HTr7teTKYbTz1XPDRgfcjwDN4KHsvy4UOcb/zZdZi7XLU/Lt/rwpneOD5/kmK0rJ 80EU6qZEn9ovXnl+dHDQ =XYlO -----END PGP SIGNATURE----- --=_TTpgM3gNnYYQdMQz1kGjMvq--