Date: Wed, 4 Aug 1999 13:06:56 +1000 From: Bruce Evans <bde@zeta.org.au> To: archie@whistle.com Cc: bde@FreeBSD.ORG, current@FreeBSD.ORG, dwmalone@maths.tcd.ie, grog@lemis.com Subject: Re: Panic plus advice needed Message-ID: <199908040306.NAA02945@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> > One reason adding -g doesn't work at times is if the kernel is >> > recompiled by a person with a different length username. vers.c >> > is produced with a string which is a different length which screws >> > up the offsets. >> > >> > Maybe newvers.sh should pad usernames to the legal max? Maybe we should >> > warn people to touch vers.c after editing the Makefile? >> >> That would be really helpful to us actually and I imagine lots of people. >> In fact, you don't need to pad the username, just add the right number of >> zeroes to the end of the string, eg. > >Any objections to the patch below? Yes. It bloats the kernel and only fixed one cause of the problem. >And a related question: why not define ostype[], et.al. as "const" ? It would cause a cast-qual warning when SYSCTL_STRING() casts away the "const". Casting away the "const" is OK for the CTLFLG_RD case but not for the CTLFLAG_RW case. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908040306.NAA02945>