<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>The PTHREAD port is not complete for Windows -- I would hesitate to use pthreads on Windows anyway, but perhaps it is doable.  WIN32 threads are the preferred route.</DIV><BR><DIV><DIV>On 14/01/2007, at 5:26 PM, Daniel Alejandro Benavides D. wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> Hi,<BR>I succesfully used type instead of cat, so obliq was built. I also added file_exists in cm3.cfg. Thanks. <BR>I have tested m3browser, It runs just fine, congratulations !!<BR><BR>So I continued with do-cm3-std.cmd built but I found that m3-libs\m3core\src\thread is not built in any of the implementations (which must be src\thread\WIN32 according to the thread\m3makefile wich has  OS_TYPE variable if not PTHREAD), but this directory has no built nothing , so I was wondering if the variable M3_OSTYPE you mentioned is the same?<BR>Do you think is possible to use the Pthread part, with the pthread port on Windows?<BR><BR>C:\cm3-5.4\cm3-cvs\cm3\m3-tools\m3bundle\NT386\m3bundle -name RehearseCodeBundle<BR>  -element RehearseCode.fv ..\src\RehearseCode.fv<BR> new source -> compiling RehearseCodeBundle.i3<BR> new source -> compiling RehearseCode.m3<BR> new source -> compiling RehearseCodeBundle.m3<BR>  -> linking RehearseCode.exe<BR> === package C:\cm3-5.4\cm3-cvs\cm3\m3-tools\replayheap ===<BR> +++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++<BR> new source -> compiling Main.m3<BR>  -> linking replayheap.exe<BR> === package C:\cm3-5.4\cm3-cvs\cm3\m3-tools\showheap ===<BR> +++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++<BR> new source -> compiling ShowHeap.m3<BR>  -> linking showheap.exe<BR> === package C:\cm3-5.4\cm3-cvs\cm3\m3-tools\shownew ===<BR> +++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++<BR> new source -> compiling ZIO.i3<BR> new source -> compiling ZIO.m3<BR> new source -> compiling ShowNew.m3<BR>  -> linking shownew.exe<BR> === package C:\cm3-5.4\cm3-cvs\cm3\m3-tools\showthread ===<BR> +++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++<BR> new source -> compiling Main.m3<BR> "..\src\Main.m3", line 12: unable to find interface (ThreadEvent)<BR> 1 error encountered<BR> compilation failed => not building program "showthread.exe"<BR> Fatal Error: package build failed<BR> *** execution of cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3 failed with 0 ***<BR> ....<BR><BR>By the way, the above ThreadEvent missing interface is not in the WIN32 directory, can be copied?<BR><BR>Thanks, <BR>Daniel Benavides<BR><BR>----------<BR>>j k <<A href="mailto:jayk123@hotmail.com">jayk123@hotmail.com</A>> wrote:<BR><BR>>Good!<BR><BR>>The problems in obliq I know about.<BR>>They are old. Getting this far in "std" I think is pretty good.<BR><BR>>I'm sure we can just switch on M3_OSTYPE and use type or echo instead of <BR>>cat, or add more builtins to quake.<BR><BR>>Question: M3_OSTYPE, this it meant to be a query about the target and not <BR>>the host, right?<BR>>My suspected anwer: Cross builds aren't actually factored into the build <BR>>system right. There is not a way to check one vs. the other. That is, host <BR>>is mostly assumed to be target. Not completely broken, since cross builds <BR>>are doable, in a way I am not familiar with but is documented.<BR><BR>>file_exists should be either in that m3makefile or the global cm3.cfg.<BR>>it is defined by me as like:<BR><BR>>proc file_exists(a) is<BR>>return stale(a, a)<BR>>end<BR><BR>>I thought the use of "stale(a,a)" in places kind of obscure and worthy of a <BR>>name.<BR><BR>>In order to work with whatever global cm3.cfg someone has, let's just put<BR>>in a local definition. Some of the history in the import-libs directory is <BR>>it did not initially build incrementally, just always clean, so my changes <BR>>for incrementality have less time under their belt, so to speak.<BR><BR>>- Jay<BR><BR><BR>>>From: "Daniel Alejandro Benavides D." <BR>>>To: <A href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</A><BR>>>Subject: [M3devel] cm3-5.4 building on NT386 cat not recognized command<BR>>>Date: Sun, 14 Jan 2007 20:05:24 +0100 (CET)<BR>>><BR>>>Hi all:<BR>>>Im trynig to get build with the bootstrap of 5.2.6, do-cm3-base.cmd<BR>>>works well. Just got an error in about file <BR>>>C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs\src\m3makefile<BR>>><BR>>>C:\cm3-5.4\cm3-cvs\cm3\scripts\win>do-cm3-base.cmd<BR>>>INSTALLROOT=C:\cm3<BR>>>LIB=%INSTALLROOT%\LIB;%LIB%<BR>>>CM3ROOT=C:\\cm3-5.4\\cm3-cvs\\cm3<BR>>><BR>>>making C:\cm3-5.4\cm3-cvs\cm3\scripts\win\PKGS with <BR>>>C:\cm3-5.4\cm3-cvs\cm3\scripts\win\find-packages<BR>>>call C:\cm3-5.4\cm3-cvs\cm3\scripts\win\pkgmap -c "cm3 -build -override <BR>>>-DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" import-libs m3core libm3 m3middle m3quake <BR>>>m3scanner m3tools m3cgcat m3cggen m3bundle mklib dll2lib fix_nl libdump <BR>>>bitvector digraph parseparams realgeometry set slisp sortedtableextras <BR>>>table-list tempfiles tcp tapi<BR>>><BR>>>=== package C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs ===<BR>>>+++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++<BR>>>unable to read ..\src\m3overrides, options "-override" and "-x" ignored.<BR>>>"C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs\src\m3makefile", line 178: quake<BR>>>runtime error: undefined variable: file_exists<BR>>><BR>>>--procedure-- -line- -file---<BR>>><BR>>>include_dir 178<BR>>>C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs\src\m3makefile<BR>>> 5<BR>>>C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs\NT386\m3make.args<BR>>>Fatal Error: package build failed<BR>>><BR>>>*** execution of cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3<BR>>>failed with 0 ***<BR>>><BR>>> I just commented the whole if of line 178 and it worked well. Then I<BR>>>tried the do-cm3-std.cmd, and it works well until formsview package, but<BR>>>when in m3-obliq got an error because a missing cat:<BR>>><BR>>> -> linking vocgi.exe<BR>>>=== package C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\voquery ===<BR>>>+++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++<BR>>>new source -> compiling Main.m3<BR>>> -> linking voquery.exe<BR>>>=== package C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\vorun ===<BR>>>+++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++<BR>>>C:\cm3-5.4\cm3-cvs\cm3\m3-tools\m3bundle\NT386\m3bundle -name VORunBundle<BR>>>-FC:\D<BR>>>OCUME~1\LUISCA~1\CONFIG~1\Temp\qk<BR>>>new source -> compiling VORunBundle.i3<BR>>>new source -> compiling VORunBundle.m3<BR>>>new source -> compiling Main.m3<BR>>> -> linking vorun.exe<BR>>>cat ..\src\vostart >> vostart<BR>>>"cat" is not recognized as an internal or external command, operable<BR>>>program or batch file.<BR>>><BR>>>"C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\vorun\src\m3makefile", line 33: quake<BR>>>runtime error: exit 1: cat ..\src\vostart >> vostart<BR>>><BR>>>--procedure-- -line- -file---<BR>>>exec --<BR>>>include_dir 33 C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\vorun\src\m3makefile<BR>>> 6<BR>>>C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\vorun\NT386\m3make.args<BR>>><BR>>>Fatal Error: package build failed<BR>>>*** execution of cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3<BR>>>failed with 0 ***<BR>>>error : call C:\cm3-5.4\cm3-cvs\cm3\scripts\win\pkgmap -c "cm3 -build<BR>>>-override<BR>>>-DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" import-libs m3core libm3 m3core m3middle<BR>>>m3quake m3scanner m3tools m3cgcat m3cggen m3bundle mklib dll2lib fix_nl<BR>>>libdump bitvector digraph parseparams realgeometry set slisp<BR>>>sortedtableextras table-list tempfiles tcl tcp udp libsio libbuf debug<BR>>>listfuncs patternmatching embutils m3tk-misc http binIO deepcopy sgml tapi<BR>>>serial m3tk mtex m3totex m3tohtml m3scan m3markup m3browser cmpdir cmpfp<BR>>>dirfp uniq netobj netobjd stubgen events rdwr sharedobj sharedobjgen odbc<BR>>>postgres95 db smalldb stable stablegen X11R4 ui PEX vbtkit cmvbt jvideo<BR>>>videovbt web formsvbtpixmaps formsvbt formsview formsedit codeview mg mgkit<BR>>>opengl anim3D zeus m3zume synloc synex metasyn obliqrt obliqparse obliq<BR>>>print obliq obliqlibemb obliqlibm3 obliqlibui obliqlibanim obliqsrvstd<BR>>>obliqsrvui obliqbinmin obliqbinstd obliqbinui obliqbinanim visualobliq vocgi >>voquery vorun webvbt recordheap rehearsecode replayheap showheap shownew >>showthread pkl-fonts juno-machine juno-compiler juno-app cube calculator fisheye<BR>>>mentor failed<BR>>><BR>>>C:\cm3-5.4\cm3-cvs\cm3\scripts\win><BR>>><BR>>>Can we use a native port of cat, or bunddle in the distro?<BR>>><BR>>>Thanks,<BR>>>Daniel Benavides<BR><BR><DIV>               <BR class="khtml-block-placeholder"></DIV><HR size="1"><BR><FONT face="Verdana" size="-2">LLama Gratis a cualquier PC del Mundo.<BR>Llamadas a fijos y móviles desde 1 céntimo por minuto.<BR><A href="http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/">http://es.voice.yahoo.com</A></FONT><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">M3devel mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:M3devel@elegosoft.com">M3devel@elegosoft.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel">https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; ">Antony Hosking                | Associate Professor</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; ">Dept of Computer Sciences     | Office: (765) 494-6001</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; ">Purdue University             | Mobile: (765) 427-5484</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; ">250 N. University Street      | <A href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</A></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; ">West Lafayette, IN 47907-2066 | <A href="http://www.cs.purdue.edu/~hosking">http://www.cs.purdue.edu/~hosking</A></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; ">  _--_|\</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "> /      \</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "> \_.--._/    )</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; ">       v    /</SPAN></FONT></DIV><FONT class="Apple-style-span" face="Courier"><BR class="Apple-interchange-newline"></FONT></SPAN> </DIV><BR></BODY></HTML>