From owner-freebsd-drivers@freebsd.org Tue Mar 23 21:43:54 2021 Return-Path: Delivered-To: freebsd-drivers@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 253CA5BD3C5 for ; Tue, 23 Mar 2021 21:43:54 +0000 (UTC) (envelope-from andy_mitchell_fr@icloud.com) Received: from ms11p00im-qufo17281901.me.com (ms11p00im-qufo17281901.me.com [17.58.38.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F4lHY2RC0z4W2R for ; Tue, 23 Mar 2021 21:43:52 +0000 (UTC) (envelope-from andy_mitchell_fr@icloud.com) Received: from [192.168.1.21] (lfbn-mar-1-119-233.w86-229.abo.wanadoo.fr [86.229.90.233]) by ms11p00im-qufo17281901.me.com (Postfix) with ESMTPSA id 0564174036B for ; Tue, 23 Mar 2021 21:43:48 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andrew Mitchell Mime-Version: 1.0 (1.0) Date: Tue, 23 Mar 2021 22:43:46 +0100 Subject: Compiling a c program into .ko Message-Id: <79347B65-6929-4DDF-8528-06E31887F3CF@icloud.com> To: freebsd-drivers@freebsd.org X-Mailer: iPhone Mail (18D61) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-23_11:2021-03-23, 2021-03-23 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=366 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2103230159 X-Rspamd-Queue-Id: 4F4lHY2RC0z4W2R X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[icloud.com]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16]; DKIM_TRACE(0.00)[icloud.com:+]; DMARC_POLICY_ALLOW(-0.50)[icloud.com,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[icloud.com]; ASN(0.00)[asn:714, ipnet:17.58.32.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[17.58.38.56:from]; RCVD_IN_DNSWL_LOW(-0.10)[17.58.38.56:from]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; R_DKIM_ALLOW(-0.20)[icloud.com:s=1a1hai]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[icloud.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-drivers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[17.58.38.56:from:127.0.2.255]; RWL_MAILSPIKE_NEUTRAL(0.00)[17.58.38.56:from]; WHITELIST_SPF_DKIM(-3.00)[icloud.com:d:+,icloud.com:s:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-drivers] X-Mailman-Approved-At: Wed, 24 Mar 2021 06:23:33 +0000 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2021 21:43:54 -0000 Hello, I haven=E2=80=99t been able for the last few weeks to understand why my file= .c won=E2=80=99t compile into a file.ko. I include in Makefile, but make returns an error which I can=E2= =80=99t explain. In all the documentation I have come across nothing is said= of SYSDIR, which is reported in the error message.=20 If you have met with this problem and found a practical solution, please sen= d me an answer so that I can unearth this arcana. Cheers, Andy=20 Envoy=C3=A9 de mon iPhone=