From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 16 Mar 2007 21:29:39 -0400 From: Kris Maglione To: 9fans@cse.psu.edu Subject: Re: [9fans] Summer of Code: Call for mentors and students Message-ID: <20070317012939.GF33600@kris.home> References: <1d5d51400703161750l7c088546tf050ce7e18ff4ed9@mail.gmail.com> <32138c088eb79573e98a961f9967127a@coraid.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b8GWCKCLzrXbuNet" Content-Disposition: inline In-Reply-To: <32138c088eb79573e98a961f9967127a@coraid.com> User-Agent: Mutt/1.5.13 (2006-08-11) Topicbox-Message-UUID: 26f8f402-ead2-11e9-9d60-3106f5b1d025 --b8GWCKCLzrXbuNet Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 16, 2007 at 09:12:37PM -0400, erik quanstrom wrote: >porting kenc to linux is doable, doesn't seem very useful, as >kenc doesn't do many of the stupid c compile tricks found >in linux heder files such as Actually, it's more doable than you'd imagine. I've managed to get kencc=20 to compile objects against the FreeBSD C headers (I can't run them,=20 because I've no way to link them) by pushing something like this into=20 the preprocessor stream: #define __extension__(foo) #define __attribute__(foo) #define __inline #define __func__ "foo" #define __va_list=3Dva_list typedef char* va_list and feeding it through this: grep -v '^[ ]*typedef.*va_list' | 9 sed 's/return \(\);/return;/g' However, I think that a much better solution is to try to avoid using=20 system headers in most ported code. The Plan9Port headers have no such=20 gcc garbage, except inside a few ifdefs, and only, to my knowledge, for=20 the AUTOLIB() hack. --=20 Kris Maglione This space for rent. --b8GWCKCLzrXbuNet Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (FreeBSD) iD8DBQFF+0SDseQZD8Aui4wRAhWNAKCSx6Ns+BhRslt8Cq0qdT5IpeRTagCdG2zh bi7XKN1TNkiKFGIO8Bw5zMc= =d4ud -----END PGP SIGNATURE----- --b8GWCKCLzrXbuNet--