On Sun, 09 Nov 2008, David Arturo Macias Corona wrote: Hi David,
> I made a Harbour fresh checkout and build with > set C_USR=-DHB_FM_STATISTICS_OFF -DHB_TR_LEVEL_DEBUG > Screen output (same as Win32:OW): > -------------------- > make[3]: *** [hboutdbg.obj] Error 8 > make[2]: *** [descend] Error 2 > -------------------- > Surprise: sqlite3 show a lot of warnings in gcc335, but no one in OW and > hbsqlit3.lib build fine > Testing Harbour tracing with pba2.prg: > ----------- > func main > qout( "hello world" ) > return nil > ----------- > Before running new test application: > set HB_TR_LEVEL=HB_TR_DEBUG > set HB_TR_FLUSH=1 > set HB_TR_OUTPUT=trace.log > and results are: > [E:\harbour811\harbour]del trace.log > SYS0002: The system cannot find the file specified. You set it too early. It will cause that harbour.exe will also create trace.log :-) It's not a problem because it will be overwritten by test application. > [E:\harbour811\harbour]bin\pbaos2.cmd pba2 > Open Watcom Linker Version 1.7 > Portions Copyright (c) 1985-2002 Sybase, Inc. All Right > Source code is available under the Sybase Open Watcom P > See http://www.openwatcom.org/ for details. > loading object files > searching libraries > creating an OS/2 32-bit executable > [E:\harbour811\harbour]pba2.exe > hello world > [E:\harbour811\harbour]dir trace.log > The volume label in drive E is ECS. > The Volume Serial Number is A913:E015. > Directory of E:\harbour811\harbour > 9/11/08 7:29a 143,326 0 a--- trace.log And this is correct log from pba2.exe > [E:\harbour811\harbour]del trace.log > [E:\harbour811\harbour]bin\pbaos2.cmd -mt pba2 > Open Watcom Linker Version 1.7 > Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. > Source code is available under the Sybase Open Watcom Public License. > See http://www.openwatcom.org/ for details. > loading object files > searching libraries > creating an OS/2 32-bit executable > [E:\harbour811\harbour]pba2.exe > SYS1808: > The process has stopped. The software diagnostic > code (exception code) is 0005. > [E:\harbour811\harbour]dir trace.log > The volume label in drive E is ECS. > The Volume Serial Number is A913:E015. > Directory of E:\harbour811\harbour > 9/11/08 7:33a 21,046 0 a--- trace.log > Now trace.log are created in MT with a size much smaller than ST Because it's not log from pba2.exe but from harbour.exe executed before to compile pba2.prg pba2.exe didn't created any logs what means that it was not linked with the same libraries as for ST mode which were compiled with HB_TRACE support. So you should check what -mt switch exactly does in pbaos2.cmd and why it changes linked libraries. Maybe it can also explain strange results you have with printf() outputs. > [E:\harbour811\harbour]bin\pbaos2.cmd pba > Open Watcom Linker Version 1.7 > Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. > Source code is available under the Sybase Open Watcom Public License. > See http://www.openwatcom.org/ for details. > loading object files > searching libraries > creating an OS/2 32-bit executable > [E:\harbour811\harbour]pba.exe > Exception c0000005 at address 000afadf > Called from HB_THREADJOIN(0) > Called from M > AIN(2) in pba.prg > SYS1808: > The process has stopped. The software diagnostic > code (exception code) is 0005. Yet another tracelog message which should be fixed but it's not related to our problem. Viktor HB_ERR_FUNCNAME defined as 1 is much more danger then then previous version which was redirected to valid empty string so it was safe to use this pointer in any context. Maybe we should restore it. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour