9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Microsoft Visual C++ Toolkit 2003
@ 2004-04-19 23:17 matt
  2004-04-19 23:26 ` boyd, rounin
  2004-04-20  0:13 ` Bruce Ellis
  0 siblings, 2 replies; 21+ messages in thread
From: matt @ 2004-04-19 23:17 UTC (permalink / raw)
  To: 9fans

Hooray, I thought, MS let you download the toolchain, now I can compile drawterm with SSL

http://msdn.microsoft.com/visualc/vctoolkit2003/

almost

I used : mk -n 'CONF=Windows' 
on plan9 to produce http://www.proweb.co.uk/~matt/plan9/drawterm-compile.bat

but it failed, mainly due to a missing windows.h (the MS version I presume)

http://www.proweb.co.uk/~matt/plan9/compile_output.txt

there are some other minor errors too

such as auth.c(104) : warning C4013: 'des56to64' undefined; assuming extern returning int

oh well, it was close

m


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-19 23:17 [9fans] Microsoft Visual C++ Toolkit 2003 matt
@ 2004-04-19 23:26 ` boyd, rounin
  2004-04-19 23:46   ` Russ Cox
  2004-04-20  0:13 ` Bruce Ellis
  1 sibling, 1 reply; 21+ messages in thread
From: boyd, rounin @ 2004-04-19 23:26 UTC (permalink / raw)
  To: 9fans

> there are some other minor errors too
>
> such as auth.c(104) : warning C4013: 'des56to64' undefined; assuming
extern returning int

my theory is that you need the inverse of this:

-/*
- *	Convert a Plan 9 key to a DES key.
- */
-uchar	*
-des9key(uchar *key)
-{
-	int		i;
-	int		m1[]	= { 0x00, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3F };
-	int		m2[]	= { 0x00, 0xFC, 0xF8, 0xF0, 0xE0, 0xC0, 0x80 };
-	static uchar	nkey[DESKEYPLEN];
-
-	nkey[0] = key[0] & 0xFE;
-
-	for (i = 1; i < 7; i++)
-		nkey[i] = (key[i - 1] & m1[i]) << 8 - i | (key[i] & m2[i]) >> i;
-
-	nkey[7] = (key[6] & 0x7F) << 1;
-
-
-	return nkey;
-}

as Plan 9 packs a DES key into 7 bytes, the 8th bit being a 'parity' bit and
unused.




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-19 23:26 ` boyd, rounin
@ 2004-04-19 23:46   ` Russ Cox
  2004-04-20  0:04     ` boyd, rounin
  0 siblings, 1 reply; 21+ messages in thread
From: Russ Cox @ 2004-04-19 23:46 UTC (permalink / raw)
  To: 9fans

> my theory is that you need the inverse of this:

at least you don't need the inverse of sha1.

seriously, though, if you're missing <windows.h>
you're not anywhere near close.  it sounds like the
build environment is quite a bit different.  <windows.h>
is the equivalent of plan 9's <libc.h> -- it defines everything.

russ


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-19 23:46   ` Russ Cox
@ 2004-04-20  0:04     ` boyd, rounin
  0 siblings, 0 replies; 21+ messages in thread
From: boyd, rounin @ 2004-04-20  0:04 UTC (permalink / raw)
  To: 9fans

> it sounds like the
> build environment is quite a bit different.  <windows.h>
> is the equivalent of plan 9's <libc.h> -- it defines everything.

sure does.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-19 23:17 [9fans] Microsoft Visual C++ Toolkit 2003 matt
  2004-04-19 23:26 ` boyd, rounin
@ 2004-04-20  0:13 ` Bruce Ellis
  2004-04-20  0:25   ` Bruce Ellis
  2004-04-20  9:25   ` a
  1 sibling, 2 replies; 21+ messages in thread
From: Bruce Ellis @ 2004-04-20  0:13 UTC (permalink / raw)
  To: 9fans

what a coincidence - i downloaded it too for a look-see.
you'll need the windows SDK to get windows.h etc...

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

happy disk filling!

brucee

matt@proweb.co.uk wrote:
> Hooray, I thought, MS let you download the toolchain, now I can compile drawterm with SSL
> 
> http://msdn.microsoft.com/visualc/vctoolkit2003/
> 
> almost


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  0:13 ` Bruce Ellis
@ 2004-04-20  0:25   ` Bruce Ellis
  2004-04-20  0:32     ` Geoff Collyer
  2004-04-20  9:25   ` a
  1 sibling, 1 reply; 21+ messages in thread
From: Bruce Ellis @ 2004-04-20  0:25 UTC (permalink / raw)
  To: 9fans

and don't forget that only the cheese stands alone.

% grep include windows.h
     Master include file for Windows applications.
#include <winresrc.h>
#include <excpt.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
#include <winnls.h>
#include <wincon.h>
#include <winver.h>
#include <winreg.h>
#include <winnetwk.h>
#include <cderr.h>
#include <dde.h>
#include <ddeml.h>
#include <dlgs.h>
#include <lzexpand.h>
#include <mmsystem.h>
#include <nb30.h>
#include <rpc.h>
#include <shellapi.h>
#include <winperf.h>
#include <winsock.h>
#include <wincrypt.h>
#include <winefs.h>
#include <winscard.h>
#include <winspool.h>
#include <ole.h>
#include <ole2.h>
#include <commdlg.h>
#include <stralign.h>
#include <winwlm.h>
#include <ole2.h>
#include <winsvc.h>
#include <mcx.h>
#include <imm.h>
%

Bruce Ellis wrote:

> what a coincidence - i downloaded it too for a look-see.
> you'll need the windows SDK to get windows.h etc...
> 
> http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
> 
> happy disk filling!
> 
> brucee
> 
> matt@proweb.co.uk wrote:
> 
>> Hooray, I thought, MS let you download the toolchain, now I can 
>> compile drawterm with SSL
>>
>> http://msdn.microsoft.com/visualc/vctoolkit2003/
>>
>> almost
> 
> 
> 


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  0:25   ` Bruce Ellis
@ 2004-04-20  0:32     ` Geoff Collyer
  2004-04-20  0:58       ` Bruce Ellis
  0 siblings, 1 reply; 21+ messages in thread
From: Geoff Collyer @ 2004-04-20  0:32 UTC (permalink / raw)
  To: 9fans

Might as well just include everything:

cd \usr\include
find . -name '*.h' -type f -print | sort | sed 's/.*/#include <&>/' >windows.h
make



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  0:32     ` Geoff Collyer
@ 2004-04-20  0:58       ` Bruce Ellis
  2004-04-20  1:02         ` boyd, rounin
  0 siblings, 1 reply; 21+ messages in thread
From: Bruce Ellis @ 2004-04-20  0:58 UTC (permalink / raw)
  To: 9fans

a novel solution but it's messier than that ...

% grep -c '#if' windows.h
43
%

Geoff Collyer wrote:

> Might as well just include everything:
> 
> cd \usr\include
> find . -name '*.h' -type f -print | sort | sed 's/.*/#include <&>/' >windows.h
> make



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  0:58       ` Bruce Ellis
@ 2004-04-20  1:02         ` boyd, rounin
  0 siblings, 0 replies; 21+ messages in thread
From: boyd, rounin @ 2004-04-20  1:02 UTC (permalink / raw)
  To: 9fans

> a novel solution but it's messier than that ...

enormously.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  0:13 ` Bruce Ellis
  2004-04-20  0:25   ` Bruce Ellis
@ 2004-04-20  9:25   ` a
  2004-04-20  9:42     ` Derek Fawcus
  2004-04-21  2:56     ` Bruce Ellis
  1 sibling, 2 replies; 21+ messages in thread
From: a @ 2004-04-20  9:25 UTC (permalink / raw)
  To: 9fans

// happy disk filling!

i'd worked up the courage to look at the code, to satisfy my
curiosity. then i firmly clenched my jaw in preparation for
poluting my otherwise clean system with microsoft crap, and
went seeking the download. but ah! you cannont get anything
from there without IE running on a PC! thank you, microsoft,
for saving me from my weakness and helping to preserve the
purity of my system.
ア


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  9:25   ` a
@ 2004-04-20  9:42     ` Derek Fawcus
  2004-04-20  9:46       ` a
                         ` (2 more replies)
  2004-04-21  2:56     ` Bruce Ellis
  1 sibling, 3 replies; 21+ messages in thread
From: Derek Fawcus @ 2004-04-20  9:42 UTC (permalink / raw)
  To: 9fans

On Tue, Apr 20, 2004 at 05:25:17AM -0400, a@9srv.net wrote:
> but ah! you cannont get anything from there without IE running

Well I certainly managed to start the download from phoenix/firebird/firefox
(whatever it's called this week)


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  9:42     ` Derek Fawcus
@ 2004-04-20  9:46       ` a
  2004-04-20 10:22       ` matt
  2004-04-20 12:22       ` boyd, rounin
  2 siblings, 0 replies; 21+ messages in thread
From: a @ 2004-04-20  9:46 UTC (permalink / raw)
  To: 9fans

// Well I certainly managed to start the download from phoenix/firebird/firefox

huh. blast, now i'm all curious again. have you played with your agent string?
the error i get back from the MS server basically says "sorry, try again using
IE on a Win32 box." there's nothing clickable on the page.
ア


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  9:42     ` Derek Fawcus
  2004-04-20  9:46       ` a
@ 2004-04-20 10:22       ` matt
  2004-04-20 12:26         ` boyd, rounin
  2004-04-20 12:22       ` boyd, rounin
  2 siblings, 1 reply; 21+ messages in thread
From: matt @ 2004-04-20 10:22 UTC (permalink / raw)
  To: 9fans

the SDK uses an activeX installer, last time I looked Mozilla didn't support ActiveX

So I think you arew talking at cross purposes

m



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  9:42     ` Derek Fawcus
  2004-04-20  9:46       ` a
  2004-04-20 10:22       ` matt
@ 2004-04-20 12:22       ` boyd, rounin
  2004-04-20 15:20         ` Derek Fawcus
  2 siblings, 1 reply; 21+ messages in thread
From: boyd, rounin @ 2004-04-20 12:22 UTC (permalink / raw)
  To: 9fans

> Well I certainly managed to start the download from
phoenix/firebird/firefox
> (whatever it's called this week)

perhaps it lies about who/what it is?



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20 10:22       ` matt
@ 2004-04-20 12:26         ` boyd, rounin
  0 siblings, 0 replies; 21+ messages in thread
From: boyd, rounin @ 2004-04-20 12:26 UTC (permalink / raw)
  To: 9fans

> the SDK uses an activeX installer, last time I looked Mozilla didn't
support ActiveX

ahh, that would explain it.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20 12:22       ` boyd, rounin
@ 2004-04-20 15:20         ` Derek Fawcus
  2004-06-04 22:54           ` Derek Fawcus
  0 siblings, 1 reply; 21+ messages in thread
From: Derek Fawcus @ 2004-04-20 15:20 UTC (permalink / raw)
  To: 9fans

On Tue, Apr 20, 2004 at 02:22:34PM +0200, boyd, rounin wrote:
> > Well I certainly managed to start the download from
> phoenix/firebird/firefox
> > (whatever it's called this week)
> 
> perhaps it lies about who/what it is?

Nah - I suspect it was crossed purpose - I then tried to download the SDK
(vs the compiler) and got the "need IE" page.

DF


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20  9:25   ` a
  2004-04-20  9:42     ` Derek Fawcus
@ 2004-04-21  2:56     ` Bruce Ellis
  1 sibling, 0 replies; 21+ messages in thread
From: Bruce Ellis @ 2004-04-21  2:56 UTC (permalink / raw)
  To: 9fans

gee i really want to download a huge amount of stuff that
*only works on windows* to somewhere else.  and i have
defective knowledge of downloading using my non-IE browser.

wake up.

brucee

a@9srv.net wrote:
> // happy disk filling!
> 
> i'd worked up the courage to look at the code, to satisfy my
> curiosity. then i firmly clenched my jaw in preparation for
> poluting my otherwise clean system with microsoft crap, and
> went seeking the download. but ah! you cannont get anything
> from there without IE running on a PC! thank you, microsoft,
> for saving me from my weakness and helping to preserve the
> purity of my system.
> ア


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-04-20 15:20         ` Derek Fawcus
@ 2004-06-04 22:54           ` Derek Fawcus
  2004-06-04 22:59             ` boyd, rounin
  0 siblings, 1 reply; 21+ messages in thread
From: Derek Fawcus @ 2004-06-04 22:54 UTC (permalink / raw)
  To: 9fans

Further to this,  I've actually got XP on a machine now,  so tried to
download the platform SDK - no joy.  It turns out that the auto installer
needs a specific DLL and my machine has too recent a version!  Also the
direct links are broken.  However a bit of poking around in the release
notes (which are viewable) resulted in the paths.

So if anyone is interested,  you can grab it (330MB) from the following
prefix:

http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/

To which append the files:

PSDK-FULL.bat, Extract.exe,  PSDK-FULL.[1-9].cab, PSDK-FULL.1[0-3].cab

The above can be done with any http download app.

Now - to try and install the junk so as to recompile one program...

(I also now need to figure out how much space to give 9p on the laptop)

DF


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-06-04 22:54           ` Derek Fawcus
@ 2004-06-04 22:59             ` boyd, rounin
  2004-06-05  0:33               ` Derek Fawcus
  0 siblings, 1 reply; 21+ messages in thread
From: boyd, rounin @ 2004-06-04 22:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/

giving it away?



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-06-04 22:59             ` boyd, rounin
@ 2004-06-05  0:33               ` Derek Fawcus
  2004-06-05  0:33                 ` boyd, rounin
  0 siblings, 1 reply; 21+ messages in thread
From: Derek Fawcus @ 2004-06-05  0:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> giving it away?

Nah - they should pay us to download that junk


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Microsoft Visual C++ Toolkit 2003
  2004-06-05  0:33               ` Derek Fawcus
@ 2004-06-05  0:33                 ` boyd, rounin
  0 siblings, 0 replies; 21+ messages in thread
From: boyd, rounin @ 2004-06-05  0:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Nah - they should pay us to download that junk

they should, but i've done [coded] it.



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2004-06-05  0:33 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-19 23:17 [9fans] Microsoft Visual C++ Toolkit 2003 matt
2004-04-19 23:26 ` boyd, rounin
2004-04-19 23:46   ` Russ Cox
2004-04-20  0:04     ` boyd, rounin
2004-04-20  0:13 ` Bruce Ellis
2004-04-20  0:25   ` Bruce Ellis
2004-04-20  0:32     ` Geoff Collyer
2004-04-20  0:58       ` Bruce Ellis
2004-04-20  1:02         ` boyd, rounin
2004-04-20  9:25   ` a
2004-04-20  9:42     ` Derek Fawcus
2004-04-20  9:46       ` a
2004-04-20 10:22       ` matt
2004-04-20 12:26         ` boyd, rounin
2004-04-20 12:22       ` boyd, rounin
2004-04-20 15:20         ` Derek Fawcus
2004-06-04 22:54           ` Derek Fawcus
2004-06-04 22:59             ` boyd, rounin
2004-06-05  0:33               ` Derek Fawcus
2004-06-05  0:33                 ` boyd, rounin
2004-04-21  2:56     ` Bruce Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).