From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <43C7911E.4040509@khjk.org> Date: Fri, 13 Jan 2006 12:38:06 +0100 From: Sven Moritz Hallberg User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) MIME-Version: 1.0 To: 9fans@cse.psu.edu Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD45091C44F6684F68D4319AB" Subject: [9fans] Drawterm on Linux/PowerPC Topicbox-Message-UUID: d56bedb6-ead0-11e9-9d60-3106f5b1d025 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD45091C44F6684F68D4319AB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello 9fans, I've tried to get drawterm to work on my Linux/PowerPC machine. I _think_ I have "dt2k". I got it from this CVS repo: :pserver:anoncvs@cvs.pdos.csail.mit.edu/cvs drawterm (BTW, it was kind of hard to confirm that this -- appearently -- is in fact dt2k...) Unfortunately it doesn't work. The fmtprint functions seem to do stuff with va_lists that my system doesn't like. Specifically, fmtprint and many other functions try to assign va_list's to fields in a Fmt structure. This is simply rejected by my GCC (I tried versions 3.3, 3.4, and 4.0.2): gcc -Wall -Wno-missing-braces -ggdb -I.. -I../include -I../kern -c -I/usr/X11R6/include -D_THREAD_SAFE -pthread -O2 fmtprint.c fmtprint.c: In function 'fmtprint': fmtprint.c:20: error: incompatible types in assignment I tried to replace all the offending assignments with calls to memcpy: /* va = f->args; */ memcpy(&va, &(f->args), sizeof(va_list)); This results in successfull compilation, but immediately crashes drawterm: $ gdb ./drawterm [..snip..] (gdb) runStarting program: /home/pesco/Halde/drawterm/drawterm [Thread debugging using libthread_db enabled] [New Thread 805479776 (LWP 12368)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 805479776 (LWP 12368)] 0x10048500 in _runefmt (f=0x7fb7f3f8) at dofmt.c:234 234 x[0] = va_arg(f->args, int); I've read in http://www.cs.bell-labs.com/wiki/plan9/THM_2005-06-23_Summary/ that "[Ericvh] has [dt2k] working in ppc-linux". So: Eric, can I have your code? When will this find its way into the drawterm CVS? How can I help? Greetings, Sven Moritz --------------enigD45091C44F6684F68D4319AB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDx5Ej69/aETCOz78RAu5UAJ9PwY+Qo6NTVOteU/IvxXK0+MhW0wCfcIKv I0E/vZG47n4UZhsBIxRTCBA= =xDm4 -----END PGP SIGNATURE----- --------------enigD45091C44F6684F68D4319AB--