From owner-freebsd-hackers Tue Mar 19 0:49: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from straylight.ringlet.net (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id 969D437B404 for ; Tue, 19 Mar 2002 00:48:55 -0800 (PST) Received: (qmail 43459 invoked by uid 1000); 19 Mar 2002 08:22:00 -0000 Date: Tue, 19 Mar 2002 10:22:00 +0200 From: Peter Pentchev To: hackers@FreeBSD.org Subject: kdump/truss ugliness and breakage Message-ID: <20020319102159.A36332@straylight.oblivion.bg> Mail-Followup-To: hackers@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Both kdump(1) and truss(1) use a weird way of harvesting information about the available ioctl's that they should be aware of: they run a mkioctls script over ${DESTDIR}/include to fish out the ioctl names out of the header files. This is all well and good, *except* in the case when ${DESTDIR}/include is not really up-to-date; case in point: ioctl's renaming and changing in yesterday's ATA driver update in -STABLE. I think there should be some way to make the mkioctls script run over the actual include directory used during the build process, somewhere in /usr/obj. Sorry, no patches, just a problem report :( As a workaround, 'cd /usr/src/usr.bin/kdump && make clean all' works fine, because it both harvers ioctls and builds with the *old* header files in /usr/include; however, before the next rebuild, kdump will provide incorrect information. The second part of the workaround: just after the installworld, go back to kdump and truss and rebuild them again, this time with the correct, freshly installed include files. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If this sentence were in Chinese, it would say something else. --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjyW9ScACgkQ7Ri2jRYZRVNqbwCglCpJbDY7DEqGAZeBRj0gR0/1 AWgAnAwBBWl4jjjMX88O5LOng8X8JwID =GDhB -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message