Página 1 de 2
mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Mié Feb 02, 2022 6:33 pm
por angeiras
Hi All,
I built a mod_harbour.v2.so on my Ubuntu 18.04 64 bits (with some minor changes in code and .hbp file), but the apache2 doesn´t start
Shows the message "Job for apache2.service failed because the control process exited with error code"
Is it work on ubuntu 18.04 64bits or only in newer version ?
Thanks in advance
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Mié Feb 02, 2022 7:06 pm
por diegof
Hi, Your harbour core builds must be compiled with...
HB_WITH_PCRE=no
If you want, you can download the static modharbour.v2.so from here....
https://github.com/mod-harbour/mod_harbour.v2/actions <- Link to Github Actions
https://github.com/mod-harbour/mod_harb ... 1770241697 <- Direct link to file( available only for 60 days )
Or you can download all the harbour libs(.a) built with HB_WITH_PCRE=no, to create modharbour.v2.so from here...
https://github.com/diegofazio/harbour_b ... ntu_64.zip
Diego.
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Mié Feb 02, 2022 7:19 pm
por angeiras
Hi Diego,
OK. I'll try to recreate my harbour libs and test it again
Thanks,
Manoel.
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Jue Feb 03, 2022 3:48 am
por angeiras
Hi,
Harbour created with HB_WITH_PCRE=no, HB_USER_CFLAGS="-fPIC" and HB_BUILD_CONTRIBS without any error.
When I try to create libmod_harbour.v2 shows 2 errors:
ld: libhbvmmt.a(hvmall.o): relocation R_X86_64_TPOFF32 against 'hb_stack_ptr' can not be used when making a shared object; recompile with -fPIC
ld: libhbcplr.a(complex.o): relocation R_X86_64_PC32 against symbol 'hb_comp_szErrors' can not be used when making a shared object; recompile with -fPIC
Any hints ?
Manoel.
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Jue Feb 03, 2022 12:05 pm
por diegof
Hi, There it tells you to "recompile with -fPIC". This error occurs when the library was not compiled with -fPIC
Diego.
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Jue Feb 03, 2022 6:39 pm
por angeiras
Hi,
When I try to create libhbcprl.a (in harbour/src/compiler) using "make install", the gcc compiler ignores the HB_USER_CFLAGS variable.
I compiled all harbour/src and harbour/contrib one by one, to inspect the use of "-fPIC" flag. Only in harbour/src/compiler the flag is completely ignored.
I'm using a fresh new VM in GCP, installed Ubuntu 18.04 64 bits, downloaded all dependencies, harbour and mod_harbour.v2 source code.
I'll try later to inspect and try to do a "make install" by hand in the /src/compiler directory.
Manoel.
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Jue Feb 03, 2022 8:17 pm
por diegof
Mmmmmmmmmmm....did you try with using
sudo -E make
Diego.
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Jue Feb 03, 2022 9:55 pm
por angeiras
Hi,
Perfect!!
mod_harbour.v2.so created and loaded in apache2 !
Try some mod_harbour samples and shows some errors, as expected (same as tweb and mercury examples).
I'll try to fix and learn more about this new version.
Thanks a lot, Diego.
Manoel.
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Vie Feb 04, 2022 1:56 pm
por charly
Hi,
TWeb and Mercury are not yet ported to V2. I hope I can adapt it all
C.
Re: mod_harbour.v2 on linux - apache2 doesn´t start
Publicado: Vie Feb 04, 2022 5:55 pm
por angeiras
Hi Charly,
Do you think the core concepts of tweb and mercury needs to adapt ? or are some pontual changes (functions name, parameters, etc.) ?
Manoel.