I'll check clipper a bit later. Make_gnu.sh still needs protection.
On 3/13/09, Przemyslaw Czerpak <dru...@acn.waw.pl> wrote: > On Fri, 13 Mar 2009, Juan Gálvez wrote: > > Hi, > >> BTW, I also get this error building Harbour : >> ../../../../source/main/win/bcc/harbour.exe ../../hbrun.prg -n1 >> -i../../../../include -q0 -w3 -es2 -km -l -gc0 -l >> bcc32.exe -I. -I../../../../include -q -d -Q -w -w-sig- -tWM -4 -O2 -OS >> -Ov >> -Oi -Oc -DHB_FM_WIN_ALLOC -DHB_HASH_MSG_ITEMS -DHB_DYNLIB >> -DHB_NO_PROFILER -c hbrun.c -ohbrun.obj >> hbrun.c: >> bcc32.exe -q -d -Q -w -w-sig- -tWM -4 -O2 -OS -Ov -Oi -Oc -ehbrun.exe >> hbrun.obj -L../../../../lib/win/bcc ../../../../lib/win/bcc/hbextern.lib >> >> ../../../../lib/win/bcc/gtwvt.lib ../../../../lib/win/bcc/gtgui.lib >> Error: Unresolved external '_HB_FUN_HB_SYMBOL_UNUSED' referenced from >> C:\UTL\HARBOUR\LIB\WIN\BCC\HBRTL.LIB|tget >> Any hints ? > > Each of you with this problem has own customized std.ch which is used > instead of the one in harbour/include directory or the > harbour/include/std.ch > file is modified. > It's not Harbour problem but user local environment settings which cause > that wrong std.ch is built into the Harbour compiler. So far (it's even > possible that for quite long time) you were created wrong binaries. > Recent modification which need one rule from original std.ch exploited > the problem so at least now you can fix it and create correwct harbour > binaries. > The question is why wrong std.ch is used instead the original Harbour one > (I hope that you haven't modified the original file). > So far I know only three methods: > 1. set different std.ch in CLIPPER or HARBOUR environment variable, f.e.: > set CLIPPER=/umystd.ch > or: > set HARBOUR=/umystd.ch > Viktor added protection against it (it clears above both variables) > to build scripts. > 2. HB_PP_RULES which can be used in some cross compilation points to wrong > pptable.c file which is used instead of file dynamically generated. > Do not ever try to use this variable as long as you do not know exactly > how to create your own customized cross compilation environment. It's > for developers only. > 3. You have some old pptable.c file in harbour/source/pp/ directory which > is used instead of the one generated dynamically by hbpp during > compilation. It's possible that some old version of non GNU make > files left such pptable.c in harbour/source/pp/ directory. > Remove if it exists. > > Recently JF suggested that the problem can be exploited also by setting > INCLUDE envvar. I cannot replicate it and confirm. > > best regards, > Przemek > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour