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
mod_harbour.v2 on linux - apache2 doesn´t start
-
- Mensajes: 11
- Registered for: 2 years 5 months
-
- Mensajes: 42
- Registered for: 3 years
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.
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.
-
- Mensajes: 11
- Registered for: 2 years 5 months
Hi Diego,
OK. I'll try to recreate my harbour libs and test it again
Thanks,
Manoel.
OK. I'll try to recreate my harbour libs and test it again
Thanks,
Manoel.
-
- Mensajes: 11
- Registered for: 2 years 5 months
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.
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.
-
- Mensajes: 42
- Registered for: 3 years
Hi, There it tells you to "recompile with -fPIC". This error occurs when the library was not compiled with -fPIC
Diego.
Diego.
-
- Mensajes: 11
- Registered for: 2 years 5 months
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.
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.
-
- Mensajes: 42
- Registered for: 3 years
Mmmmmmmmmmm....did you try with using
sudo -E make
Diego.
sudo -E make
Diego.
-
- Mensajes: 11
- Registered for: 2 years 5 months
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.
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.
- charly
- Mensajes: 145
- Registered for: 3 years 6 months
Hi,
TWeb and Mercury are not yet ported to V2. I hope I can adapt it all
C.
TWeb and Mercury are not yet ported to V2. I hope I can adapt it all
C.
Salutacions, saludos, regards.
Charly
"...programar es fácil, hacer programas es difícil..."
https://httpd2.blogspot.com/
https://forum.modharbour.app
Charly
"...programar es fácil, hacer programas es difícil..."
https://httpd2.blogspot.com/
https://forum.modharbour.app
-
- Mensajes: 11
- Registered for: 2 years 5 months
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.
Do you think the core concepts of tweb and mercury needs to adapt ? or are some pontual changes (functions name, parameters, etc.) ?
Manoel.