I am attempting to make a small change to syslogd on a FreeBSD system. I would like to change the value of MAXLINE in syslogd.c to 4096 and then recompile. I've referenced the steps in this post:
http://bsdpants.blogspot.com/2010/08/truncated-syslog-messages.html .
However, as I'm not that familiar with pulling down, editing, and recompiling source, I'm stuck trying to recompile.
Steps I've taken so far:
- #svn checkout svn://svn0.us-east.FreeBSD.org/base/head /usr/src
- Edited value of MAXLINE in /usr/src/usr.sbin/syslogd/syslogd.c
- #make obj && make depend && make && make install
When I try the 3rd step (make obj && make depend && make && make install) it gives me the following error:
make: "/usr/src/usr.sbin/syslogd/Makefile" line 4: Could not find src.opts.mk
make: "/usr/src/usr.sbin/syslogd/Makefile" line 17: Malformed conditional (${MK_INET6_SUPPORT} != "no")
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/src/usr.sbin/syslogd
Am I missing a step in this process? Any help would be greatly appreciated. Please let me know if I can provide additional information.
Thanks!
That's weird. Can you try "svn up", and then retry the build ("cd /usr/src/usr.sbin/syslogd && make clean all install")? Perhaps you just checked out at an unfortunate moment, when the tree was broken.