problem generating mod-harbour.v2 on nix
Publicado: Jue May 19, 2022 9:59 am
Ola a todos, tengo un problema compilando mod_harbour.v2 on two operating system.
En el Ubuntu 64 22.04 lts tengo este error
hbmk2: Compilazione del sotto-progetto (livello 2): libmhapache.hbp
hbmk2: Creating dynamic library... output/linux/liblibmhapache.so
hbmk2: Dynamic lib link command:
gcc -shared -o output/linux/liblibmhapache.so 'output/linux/.hbmk/linux/gcc/hbdyn/mh_apache.o' 'output/linux/.hbmk/linux/gcc/hbdyn/ap_func.o' output/linux/.hbmk/linux/gcc/hbdyn/cookies.o 'output/linux/.hbmk/linux/gcc/hbdyn/legacy_func.o' output/linux/.hbmk/linux/gcc/hbdyn/main.o output/linux/.hbmk/linux/gcc/hbdyn/persistence.o output/linux/.hbmk/linux/gcc/hbdyn/prepro.o output/linux/.hbmk/linux/gcc/hbdyn/preproPHP.o output/linux/.hbmk/linux/gcc/hbdyn/trace.o output/linux/.hbmk/linux/gcc/hbdyn/errorsys.o output/linux/.hbmk/linux/gcc/hbdyn/sessions.o 'output/linux/.hbmk/linux/gcc/hbdyn/ap_func_c.o' 'output/linux/.hbmk/linux/gcc/hbdyn/legacy_func_c.o' @libs.txt -Wl,--start-group -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lm -lpthread -ldl -lrt -lpcre -lz -lgpm -Wl,--end-group -L/usr/local/lib/harbour
/usr/bin/ld: /usr/local/lib/harbour/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
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
hbmk2[libmhapache]: Error: Running dynamic lib link command. 1
gcc -shared -o output/linux/liblibmhapache.so 'output/linux/.hbmk/linux/gcc/hbdyn/mh_apache.o' 'output/linux/.hbmk/linux/gcc/hbdyn/ap_func.o' output/linux/.hbmk/linux/gcc/hbdyn/cookies.o 'output/linux/.hbmk/linux/gcc/hbdyn/legacy_func.o' output/linux/.hbmk/linux/gcc/hbdyn/main.o output/linux/.hbmk/linux/gcc/hbdyn/persistence.o output/linux/.hbmk/linux/gcc/hbdyn/prepro.o output/linux/.hbmk/linux/gcc/hbdyn/preproPHP.o output/linux/.hbmk/linux/gcc/hbdyn/trace.o output/linux/.hbmk/linux/gcc/hbdyn/errorsys.o output/linux/.hbmk/linux/gcc/hbdyn/sessions.o 'output/linux/.hbmk/linux/gcc/hbdyn/ap_func_c.o' 'output/linux/.hbmk/linux/gcc/hbdyn/legacy_func_c.o' @libs.txt -Wl,--start-group -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lm -lpthread -ldl -lrt -lpcre -lz -lgpm -Wl,--end-group -L/usr/local/lib/harbour
el mismo problema lo tengo con freebsd 13.0 con el compilador clang
alguien tiene una solucion a este problema ?
saludos
En el Ubuntu 64 22.04 lts tengo este error
hbmk2: Compilazione del sotto-progetto (livello 2): libmhapache.hbp
hbmk2: Creating dynamic library... output/linux/liblibmhapache.so
hbmk2: Dynamic lib link command:
gcc -shared -o output/linux/liblibmhapache.so 'output/linux/.hbmk/linux/gcc/hbdyn/mh_apache.o' 'output/linux/.hbmk/linux/gcc/hbdyn/ap_func.o' output/linux/.hbmk/linux/gcc/hbdyn/cookies.o 'output/linux/.hbmk/linux/gcc/hbdyn/legacy_func.o' output/linux/.hbmk/linux/gcc/hbdyn/main.o output/linux/.hbmk/linux/gcc/hbdyn/persistence.o output/linux/.hbmk/linux/gcc/hbdyn/prepro.o output/linux/.hbmk/linux/gcc/hbdyn/preproPHP.o output/linux/.hbmk/linux/gcc/hbdyn/trace.o output/linux/.hbmk/linux/gcc/hbdyn/errorsys.o output/linux/.hbmk/linux/gcc/hbdyn/sessions.o 'output/linux/.hbmk/linux/gcc/hbdyn/ap_func_c.o' 'output/linux/.hbmk/linux/gcc/hbdyn/legacy_func_c.o' @libs.txt -Wl,--start-group -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lm -lpthread -ldl -lrt -lpcre -lz -lgpm -Wl,--end-group -L/usr/local/lib/harbour
/usr/bin/ld: /usr/local/lib/harbour/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
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
hbmk2[libmhapache]: Error: Running dynamic lib link command. 1
gcc -shared -o output/linux/liblibmhapache.so 'output/linux/.hbmk/linux/gcc/hbdyn/mh_apache.o' 'output/linux/.hbmk/linux/gcc/hbdyn/ap_func.o' output/linux/.hbmk/linux/gcc/hbdyn/cookies.o 'output/linux/.hbmk/linux/gcc/hbdyn/legacy_func.o' output/linux/.hbmk/linux/gcc/hbdyn/main.o output/linux/.hbmk/linux/gcc/hbdyn/persistence.o output/linux/.hbmk/linux/gcc/hbdyn/prepro.o output/linux/.hbmk/linux/gcc/hbdyn/preproPHP.o output/linux/.hbmk/linux/gcc/hbdyn/trace.o output/linux/.hbmk/linux/gcc/hbdyn/errorsys.o output/linux/.hbmk/linux/gcc/hbdyn/sessions.o 'output/linux/.hbmk/linux/gcc/hbdyn/ap_func_c.o' 'output/linux/.hbmk/linux/gcc/hbdyn/legacy_func_c.o' @libs.txt -Wl,--start-group -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lm -lpthread -ldl -lrt -lpcre -lz -lgpm -Wl,--end-group -L/usr/local/lib/harbour
el mismo problema lo tengo con freebsd 13.0 con el compilador clang
alguien tiene una solucion a este problema ?
saludos