From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1101.199.98.17.54.1066401051.squirrel@wish> In-Reply-To: <200310170253.h9H2rIx25396@plg2.math.uwaterloo.ca> References: <200310170253.h9H2rIx25396@plg2.math.uwaterloo.ca> Subject: Re: [9fans] plan 9 ports to unix (including libdraw) From: "Joel Salomon" To: 9fans@cse.psu.edu User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Date: Fri, 17 Oct 2003 10:30:51 -0400 Topicbox-Message-UUID: 70a42fa0-eacc-11e9-9e20-41e7f4b1d025 I've managed to compile most of the port under cygwin. cp Make.FreeBSD-386 Make.CYGWIN_NT-5.0-386 in libthread/label.h, change: #if defined (__i386__) && (defined(__FreeBSD__) || defined(__linux__)) to: #if defined (__i386__) && (defined(__FreeBSD__) || defined(__linux__) || \ defined(__CYGWIN__)) cp asm-Linux-386.s asm-CYGWIN_NT-5.0-386.s in lib9: cp ffork-Darwin.c ffork-CYGWIN_NT-5.0.c cp rendez-Darwin.c rendez-CYGWIN_NT-5.0.c (cygwin provides pthreads, so I'm using that interface) Compiling sam fails, though, with: disk.o(.text+0x27c): In function `diskwrite': /yadda yadda/plan9/src/cmd/sam/disk.c:108: undefined reference to `_pwrite' disk.o(.text+0x31e): In function `diskread': /yadda yadda/plan9/src/cmd/sam/disk.c:120: undefined reference to `_pread' Haven't been able to test anything yet. When a windows port is started, I'll try libdraw under mingw. Some of the rest compiles, but I can't remember which parts. > Kudos to Russ. Seconded. --Joel