Harbour on Ubuntu 14.04

427 views
Skip to first unread message

Slavko Kocjancic

unread,
Jun 19, 2014, 3:57:38 AM6/19/14
to harbou...@googlegroups.com
Hello....

After harddrive crash i updated my system from ubuntu 12.04 to 14.04. And I can't setup harbour to work.
If I install prebuild  deb package I get error when compiling.

This is console report...

slavko@podstresnik:~/xx$ hbmk2 hello.prg
Harbour 3.0.0 (Rev. 16951)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'hello.prg'...
Lines 11, Functions/Procedures 1
Generating C source output to '/tmp/hbmk_61vkwm.dir/hello.c'... Done.
/usr/bin/ld: skipping incompatible /usr/lib/harbour/libhbcplr.a when searching for -lhbcplr
/usr/bin/ld: cannot find -lhbcplr
/usr/bin/ld: skipping incompatible /usr/lib/harbour/libhbdebug.a when searching for -lhbdebug
/usr/bin/ld: cannot find -lhbdebug
/usr/bin/ld: skipping incompatible /usr/lib/harbour/libharbour.so when searching for -lharbour
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libharbour.so when searching for -lharbour
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libharbour.so when searching for -lharbour
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../libharbour.so when searching for -lharbour
/usr/bin/ld: skipping incompatible //usr/lib/libharbour.so when searching for -lharbour
/usr/bin/ld: cannot find -lharbour
collect2: error: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc '/tmp/hbmk_61vkwm.dir/hello.o' '/tmp/hbmk_61vkwm.dir/hbmk_hhzc3k.o'   -Wl,--start-group -lhbcplr -lhbdebug -lharbour   -Wl,--end-group -ohello -L/usr/lib/harbour
slavko@podstresnik:~/xx$



As I can't find solution then I tryed to build from source. But this fail too....
There is pretty long compile log... I already striped out ok part....

slavko@podstresnik:~/xx/harbour-3.0.0$ make

In file included from ../../../hvmall.c:116:0:
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../macro.c:147:15,
    inlined from ‘hb_macroGetValue.part.72’ at ../../../macro.c:488:21,
    inlined from ‘hb_macroGetValue’:
../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../macro.c:147:15,
    inlined from ‘hb_macroSetValue.part.73’ at ../../../macro.c:530:21,
    inlined from ‘hb_macroSetValue’:
../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../macro.c:147:15,
    inlined from ‘hb_macroPushReference.part.74’ at ../../../macro.c:573:21,
    inlined from ‘hb_macroPushReference’:
../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../macro.c:147:15,
    inlined from ‘hb_macroUseAliased’ at ../../../macro.c:662:21:
../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../macro.c:147:15,
    inlined from ‘hb_macroGetType’ at ../../../macro.c:1015:21:
../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In file included from ../../../../hvmall.c:116:0:
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../../macro.c:147:15,
    inlined from ‘hb_macroGetValue.part.76’ at ../../../../macro.c:488:21,
    inlined from ‘hb_macroGetValue’:
../../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../../macro.c:147:15,
    inlined from ‘hb_macroSetValue’ at ../../../../macro.c:530:21:
../../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../../macro.c:147:15,
    inlined from ‘hb_macroPushReference.part.77’ at ../../../../macro.c:573:21,
    inlined from ‘hb_macroPushReference’:
../../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../../macro.c:147:15,
    inlined from ‘hb_macroUseAliased’ at ../../../../macro.c:662:21:
../../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
In function ‘hb_xfree’,
    inlined from ‘hb_macroDelete’ at ../../../../macro.c:147:15,
    inlined from ‘hb_macroGetType’ at ../../../../macro.c:1015:21:
../../../../fm.c:916:11: warning: attempt to free a non-heap object ‘struMacro’ [-Wfree-nonheap-object]
       free( HB_FM_PTR( pMem ) );
           ^
../../../filesys.c: In function ‘hb_fsPOpen’:
../../../filesys.c:726:22: warning: ignoring return value of ‘setuid’, declared with attribute warn_unused_result [-Wunused-result]
                setuid( getuid() );
                      ^
../../../filesys.c:727:22: warning: ignoring return value of ‘setgid’, declared with attribute warn_unused_result [-Wunused-result]
                setgid( getgid() );
                      ^
../../../filesys.c: In function ‘hb_fsPOpen’:
../../../filesys.c:726:22: warning: ignoring return value of ‘setuid’, declared with attribute warn_unused_result [-Wunused-result]
                setuid( getuid() );
                      ^
../../../filesys.c:727:22: warning: ignoring return value of ‘setgid’, declared with attribute warn_unused_result [-Wunused-result]
                setgid( getgid() );
                      ^
../../../hbproces.c: In function ‘hb_fsProcessOpen’:
../../../hbproces.c:574:16: warning: ignoring return value of ‘setuid’, declared with attribute warn_unused_result [-Wunused-result]
          setuid( getuid() );
                ^
../../../hbproces.c:575:16: warning: ignoring return value of ‘setgid’, declared with attribute warn_unused_result [-Wunused-result]
          setgid( getgid() );
                ^
../../../hbproces.c: In function ‘hb_fsProcessOpen’:
../../../hbproces.c:574:16: warning: ignoring return value of ‘setuid’, declared with attribute warn_unused_result [-Wunused-result]
          setuid( getuid() );
                ^
../../../hbproces.c:575:16: warning: ignoring return value of ‘setgid’, declared with attribute warn_unused_result [-Wunused-result]
          setgid( getgid() );
                ^
../../../../../contrib/hbmzip/3rd/minizip/zip.c: In function ‘zipOpenNewFileInZip4_64’:
../../../../../contrib/hbmzip/3rd/minizip/zip.c:1267:28: warning: assignment from incompatible pointer type [enabled by default]
         zi->ci.pcrc_32_tab = get_crc_table();
                            ^
../../../../../contrib/hbmzip/3rd/minizip/unzip.c: In function ‘unzOpenCurrentFile3’:
../../../../../contrib/hbmzip/3rd/minizip/unzip.c:1620:24: warning: assignment from incompatible pointer type [enabled by default]
         s->pcrc_32_tab = get_crc_table();
                        ^
../../../../../contrib/hbssl/ssl.c: In function ‘HB_FUN_SSL_GET_SSL_METHOD’:
../../../../../contrib/hbssl/ssl.c:627:10: warning: implicit declaration of function ‘SSLv2_method’ [-Wimplicit-function-declaration]
          if(      p == SSLv2_method()         ) n = HB_SSL_CTX_NEW_METHOD_SSLV2;
          ^
../../../../../contrib/hbssl/ssl.c:627:21: warning: comparison between pointer and integer [enabled by default]
          if(      p == SSLv2_method()         ) n = HB_SSL_CTX_NEW_METHOD_SSLV2;
                     ^
../../../../../contrib/hbssl/ssl.c:628:10: warning: implicit declaration of function ‘SSLv2_server_method’ [-Wimplicit-function-declaration]
          else if( p == SSLv2_server_method()  ) n = HB_SSL_CTX_NEW_METHOD_SSLV2_SERVER;
          ^
../../../../../contrib/hbssl/ssl.c:628:21: warning: comparison between pointer and integer [enabled by default]
          else if( p == SSLv2_server_method()  ) n = HB_SSL_CTX_NEW_METHOD_SSLV2_SERVER;
                     ^
../../../../../contrib/hbssl/ssl.c:629:10: warning: implicit declaration of function ‘SSLv2_client_method’ [-Wimplicit-function-declaration]
          else if( p == SSLv2_client_method()  ) n = HB_SSL_CTX_NEW_METHOD_SSLV2_CLIENT;
          ^
../../../../../contrib/hbssl/ssl.c:629:21: warning: comparison between pointer and integer [enabled by default]
          else if( p == SSLv2_client_method()  ) n = HB_SSL_CTX_NEW_METHOD_SSLV2_CLIENT;
                     ^
../../../../../contrib/hbssl/sslctx.c: In function ‘hb_ssl_method_id_to_ptr’:
../../../../../contrib/hbssl/sslctx.c:103:4: warning: implicit declaration of function ‘SSLv2_method’ [-Wimplicit-function-declaration]
    case HB_SSL_CTX_NEW_METHOD_SSLV2         : p = SSLv2_method();         break;
    ^
../../../../../contrib/hbssl/sslctx.c:103:49: warning: assignment makes pointer from integer without a cast [enabled by default]
    case HB_SSL_CTX_NEW_METHOD_SSLV2         : p = SSLv2_method();         break;
                                                 ^
../../../../../contrib/hbssl/sslctx.c:104:4: warning: implicit declaration of function ‘SSLv2_server_method’ [-Wimplicit-function-declaration]
    case HB_SSL_CTX_NEW_METHOD_SSLV2_SERVER  : p = SSLv2_server_method();  break;
    ^
../../../../../contrib/hbssl/sslctx.c:104:49: warning: assignment makes pointer from integer without a cast [enabled by default]
    case HB_SSL_CTX_NEW_METHOD_SSLV2_SERVER  : p = SSLv2_server_method();  break;
                                                 ^
../../../../../contrib/hbssl/sslctx.c:105:4: warning: implicit declaration of function ‘SSLv2_client_method’ [-Wimplicit-function-declaration]
    case HB_SSL_CTX_NEW_METHOD_SSLV2_CLIENT  : p = SSLv2_client_method();  break;
    ^
../../../../../contrib/hbssl/sslctx.c:105:49: warning: assignment makes pointer from integer without a cast [enabled by default]
    case HB_SSL_CTX_NEW_METHOD_SSLV2_CLIENT  : p = SSLv2_client_method();  break;
                                                 ^
hbmk2: Error: Missing dependency: ocilib
hbmk2: Error: Missing dependency: ads
hbmk2: Error: Missing dependency: gs
../../../../../contrib/hbcurl/core.c:56:24: fatal error: curl/types.h: No such file or directory
 #include <curl/types.h>
                        ^
compilation terminated.
hbmk2: Error: Running C/C++ compiler. 1
make[1]: [first] Error 6 (ignored)
slavko@podstresnik:~/xx/harbour-3.0.0$





Slavko Kocjancic

unread,
Jun 19, 2014, 7:40:21 AM6/19/14
to harbou...@googlegroups.com
Now I do some more tests...

Seems that precompiled works only on 32 bit ubuntu.

I tried to install fresh ubuntu 12.04 32bit (in virtualbox) and try to
install deb package. Compiling hello.prg is sucessful..

Now I install another wirtualbox with ubuntu 12.04 64bit and folowing
same procedure as in 32 bit i got same failure when compiling hello.prg
as in in 14.04/64 I have installed now.


and yes I have 32 bit version installed before...
I can try 14.04/32 bit but assume that it will work.

So how to install on 64 bit system?

Slavko...
snip snip snip

Slavko Kocjancic

unread,
Jun 19, 2014, 7:53:46 AM6/19/14
to harbou...@googlegroups.com
Now I fell stupid.
It is the 64 bit problem...
Iand it's discovered already and has solution...

post at:
https://groups.google.com/forum/#!msg/harbour-users/FpSdto7Gs4s/Ms0tMH2yYOEJ


and solution in french language:
http://jujuland.pagesperso-orange.fr/ubuntu.html

Thanks to Alain Aupeix I have working solution now...
Reply all
Reply to author
Forward
0 new messages