mod_harbour.v2 on linux - apache2 doesn´t start

angeiras
Mensajes: 11
Registered for: 2 years 5 months
Brazil

mod_harbour.v2 on linux - apache2 doesn´t start

Mensaje 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

diegof
Mensajes: 42
Registered for: 3 years
Argentina

Mensaje 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.

angeiras
Mensajes: 11
Registered for: 2 years 5 months
Brazil

Mensaje por angeiras »

Hi Diego,

OK. I'll try to recreate my harbour libs and test it again

Thanks,

Manoel.

angeiras
Mensajes: 11
Registered for: 2 years 5 months
Brazil

Mensaje 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.

diegof
Mensajes: 42
Registered for: 3 years
Argentina

Mensaje por diegof »

Hi, There it tells you to "recompile with -fPIC". This error occurs when the library was not compiled with -fPIC

Diego.

angeiras
Mensajes: 11
Registered for: 2 years 5 months
Brazil

Mensaje 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.

diegof
Mensajes: 42
Registered for: 3 years
Argentina

Mensaje por diegof »

Mmmmmmmmmmm....did you try with using

sudo -E make

Diego.

angeiras
Mensajes: 11
Registered for: 2 years 5 months
Brazil

Mensaje 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.

Avatar de Usuario
charly
Mensajes: 145
Registered for: 3 years 6 months

Mensaje por charly »

Hi,

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

angeiras
Mensajes: 11
Registered for: 2 years 5 months
Brazil

Mensaje 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.

Responder