Hi Viktor,
I have an idea, but I'd like to check it first locally.
Note that i try to add -gtcgi but i can't see -lgtcgi in link
command and i get the same error.
Yes, this is normal, as gtcgi lib is already present in the shared lib.
Thank you, works fine now: i can compile :-)
Now another little problem, when i use hbmk :
$ echo '? "hello"' > tst.prg
$ hbmk tst
Harbour 1.1.0dev (Rev. 10405)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'tst.prg'...
Lines 1, Functions/Procedures 1
Generating C source output to 'tst.c'... Done.
$ ./tst
hello
$ ldd tst
linux-gate.so.1 => (0xb7faf000)
libharbour.so => /usr/lib/libharbour.so (0xb7b26000)
libgpm.so.2 => /usr/lib/libgpm.so.2 (0xb7b20000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7a30000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb79fe000)
libslang.so.2 => /lib/libslang.so.2 (0xb7920000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb78fa000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb78f6000)
librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb78ed000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7792000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb778f000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7777000)
/lib/ld-linux.so.2 (0xb7fb0000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb775e000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb775b000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7756000)
When i use hbmk2 :
$ hbmk2 -n- tst
Harbour 1.1.0dev (Rev. 10405)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'tst.prg'...
Lines 1, Functions/Procedures 1
Generating C source output to 'tst.c'... Done.
$ ./tst
./tst: error while loading shared libraries: libharbour-1.1.0.so: cannot
open shared object file: No such file or directory
$ ldd tst
linux-gate.so.1 => (0xb7f06000)
libharbour-1.1.0.so => not found
libgpm.so.2 => /usr/lib/libgpm.so.2 (0xb7ede000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7dee000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb7dbc000)
libslang.so.2 => /lib/libslang.so.2 (0xb7cde000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7cb8000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7cb4000)
librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7cab000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7b4f000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7b4d000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7b35000)
/lib/ld-linux.so.2 (0xb7f07000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7b1c000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7b19000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7b13000)
Note that i can add "/usr/lib/harbour" in /etc/ld.so.conf and run ldconfig
and it run fine ...
Another little problem. With hbmk :
$ cd
$ echo '? "hello"' > /tmp/tst.prg
$ hbmk /tmp/tst
Harbour 1.1.0dev (Rev. 10405)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling '/tmp/tst.prg'...
Lines 1, Functions/Procedures 1
Generating C source output to 'tst.c'... Done.
$ ./tst
hello
Now, with hbmk2 :
$ cd
$ echo '? "hello"' > /tmp/tst.prg
$ hbmk2 -n- /tmp/tst
Harbour 1.1.0dev (Rev. 10405)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling '/tmp/tst.prg'...
Lines 1, Functions/Procedures 1
Generating C source output to 'tst.c'... Done.
gcc: /tmp/tst.c: Aucun fichier ou répertoire de ce type
hbmk: Error: Running C compiler. 256: 'gcc /tmp/tst.c -O3 -o/tmp/tst
-I/usr/bin/../include/harbour -L/usr/bin/../lib/harbour -L/usr/X11R6/lib
-Wl,--start-group -lharbour-1.1.0 -lhbcplr -lhbdebug -lgpm -lX11
-lncurses -lslang -lm -ldl -lrt -Wl,--end-group
Thanks,
Guy
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour