Date: Tue, 18 Apr 2023 19:33:56 +0200 From: Michael Grimm <trashcan@ellael.org> To: Norman Gray <gray@nxg.name> Cc: questions@freebsd.org, Doug Hardie <bc979@lafn.org> Subject: Re: Blacklistd Issues - Problem Identified Message-ID: <525922E0-29AA-4C13-9767-B1EB032843CF@ellael.org> In-Reply-To: <AB045FC9-5EC4-426F-B6C2-CB61008A3356@nxg.name> References: <C632EC86-6745-42F9-A5EE-FE604C7A8599@sermon-archive.info> <8B1C1DCE-75CA-4CE9-A589-329519FB792E@sermon-archive.info> <4E4A4B99-D8DF-4C5C-9700-C56F354A9991@sermon-archive.info> <24171551-4181-49C8-B1DE-2C3D9A00DC4C@sermon-archive.info> <6BD45EAE-D626-4B16-8C24-197FFE34E601@ellael.org> <8FEE687C-E342-49CF-B3D9-118D7ADB84AA@nxg.name> <F025AE6A-A820-412E-A0F1-F551D719E319@ellael.org> <AB045FC9-5EC4-426F-B6C2-CB61008A3356@nxg.name>
next in thread | previous in thread | raw e-mail | index | archive | help
Norman Gray <gray@nxg.name> wrote: >=20 > On 18 Apr 2023, at 12:21, Michael Grimm wrote: >> The sources are at: >>=20 >> /usr/src/contrib/blacklist >>=20 >> In /usr/src/contrib/blacklist/bin you'll find blacklistd.conf and the = config files in /usr/src/contrib/blacklist/etc >=20 > I can see the sources if I include src when installing from dvd1. So = far so good... >=20 > I think I may need to be pointed towards some further reading, though. = In (a copy of) /usr/src/contrib/blacklist I try 'make', and that = doesn't work (illustrated below) because there's clearly a -I missing = (ie, I'm doubtless doing this in the wrong place). Have a look at Makefile.inc. Here you find that you need to include the = path /usr/src/contrib/blacklist/include. I believe that you will need to resolve some more issues with compiling = blacklistd stand alone. I have never tried something similar. Because I am following STABLE, and by that you have to compile ... > Looking at [1], /usr/src/Makefile, and /usr/src/UPDATING, I'm getting = the impression that the only documented process is 'make world' or 'make = buildworld'. Would that be right? Even in this simple case where the = sources are associated with the userland on the same install image? =E2=80=A6 world and kernel from scratch. (Same stands true for following = HEAD.) The very first time it will take some time. But after that a = small modification of let's say blacklistd.c will result in very short = compilation times. If you do not have a git repository and never had a 'make world' and = 'make kernel' running, it will be hard to develop code. BUT, I have mentioned perviously, that I am not an expert either, = someone my point to a simple method in just compiling the blacklist = contribution. Regards, Michael > [1] https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld >=20 >=20 > % make > =3D=3D=3D> lib (all) > cc -O2 -pipe -fno-common -g -MD -MF.depend.bl.o -MTbl.o -std=3Dgnu99= -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers = -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter = -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type = -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter = -Wcast-align -Wchar-subscripts -Wnested-externs -Wredundant-decls = -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations = -Wthread-safety -Wno-empty-body -Wno-string-plus-int = -Wno-unused-const-variable -Wno-error=3Dunused-but-set-variable = -Qunused-arguments -c bl.c -o bl.o > bl.c:60:10: fatal error: 'bl.h' file not found > #include "bl.h" > ^~~~~~ > 1 error generated. > *** Error code 1 >=20 > Stop. > make[1]: stopped in /usr/src/contrib/blacklist-mod/lib > *** Error code 1 >=20 > Stop. > make: stopped in /usr/src/contrib/blacklist-mod
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?525922E0-29AA-4C13-9767-B1EB032843CF>