Hi Przemyslaw,

All is fine *except one point* :
When i run apps dynamic link on mips(el) i get a
segmentation fault :

g...@cobalt:~$ hbmk2 t
hbmk: Processing configuration: /usr/local/bin/hbmk.cfg
    Harbour 2.0.0beta1 (Rev. 11424)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 't.prg'...
Lines 3, Functions/Procedures 1
Generating C source output to 't.c'... Done.
g...@cobalt:~$ ./t
Segmentation fault

Probably there is sth wrong with shared library.
Try to check if valid harbour.so is used by:
   ldd ./t
$ ldd ./t
       libharbour.so => /usr/local/lib/harbour/libharbour.so (0x2aadc000)
       libc.so.6 => /lib/libc.so.6 (0x2af44000)
       libm.so.6 => /lib/libm.so.6 (0x2b0bc000)
       libdl.so.2 => /lib/libdl.so.2 (0x2b154000)
       librt.so.1 => /lib/librt.so.1 (0x2b168000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2b184000)
       /lib/ld.so.1 (0x2aaa8000)
       libpthread.so.0 => /lib/libpthread.so.0 (0x2b1c0000)

and also:
   file <path>/libharbour-2.0.0.so
$ file /usr/local/lib/harbour/libharbour-2.0.0.so
/usr/local/lib/harbour/libharbour-2.0.0.so: ELF 32-bit LSB shared object, MIPS, MIPS-I version 1 (SYSV), dynamically linked, with unknown capability 0xf41 = 0x756e6700, not stripped


Some architectures may need special compile time switches for
shared library code. You can try to recompile whole Harbour
code with:
   export HB_USER_PRGFLAGS="-fPIC"
though usually such problems are detected at link time when shared
library is created.
mipsel-linux-gnu-gcc -I. -I../../../../include -Wall -W -O3 -c ../../xsavescr.c -oxsavescr.o /usr/local/bin/harbour ../../achoice.prg -n1 -i../../../../include -q0 -w3 -es2 -kmo -l -gc3 -fPIC
Error F0034  Bad command line option 'f'
make[3]: *** [achoice.c] Erreur 1
make[3]: quittant le répertoire « /usr/local/src/harbour/source/rtl/linux/gcc »
make[2]: *** [descend] Erreur 2
make[2]: quittant le répertoire « /usr/local/src/harbour/source/rtl »
make[1]: *** [rtl] Erreur 2
make[1]: quittant le répertoire « /usr/local/src/harbour/source »
make: *** [source] Erreur 2

Regards,

Guy

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to