[Harbour] This code result in a "Bus error" under OS X 10.5

Przemyslaw Czerpak druzus at acn.waw.pl
Wed Mar 5 06:47:03 EST 2008


On Wed, 05 Mar 2008, Lorenzo Fiorini wrote:
> While it correctly gives .F. under Linux
> procedure main()
>    local cHome := getenv( "HOME" )
>    ? cHome
>    ? file( cHome + "/.notexist/notexist" )
>    return
> Any hint?

What hardware?
Most of non x86 CPUs needs strict alignment. Have you compiled
Harbour with HB_STRICT_ALIGNMENT macro?, f.e.:
   export C_USR=-DHB_STRICT_ALIGNMENT

If it not help then try to reduce this sample and eliminate
one of the functions (getenv() or file()) so it will be easier
to locate the source of problem.

best regards,
Przemek


More information about the Harbour mailing list