saludos a todos, y algunas preguntas

91 views
Skip to first unread message

Domenico D'Oria

unread,
Mar 26, 2021, 4:32:13 AM3/26/21
to ModHarbour
Buenos dias a todos.

En esta temporada estoy 'hugando' con linux ubuntu server 20.04.2 64 bit, harbour 2021-01-26 con cgi, y el servidor lighttpd.

Desde mucho tiempo estoy buscando otros huegos. he he

he descargado mod_harbour y tratè de compilarlo :
el mod_harbour.so se crea tranquillamente, al contrario tiengo un problema compilando la libharbour.so.3.2.0

me da este error

hbmk2: Building sub-project (level 2): mod.hbp
../../home/nikko/mod_harbour/source/mod_harbour.c:217:1: warning: missing initializer for field ‘flags’ of ‘module’ {aka ‘struct module_struct’} [-Wmissing-field-initializers]
  217 | };
      | ^
In file included from ../../home/nikko/mod_harbour/source/mod_harbour.c:9:
/usr/include/apache2/http_config.h:420:9: note: ‘flags’ declared here
  420 |     int flags;
      |         ^~~~~
hbmk2: Harbour compiler command (built-in):
('/home/nikko/mod_harbour/linux/../../harbour/bin/linux/gcc/harbour') -n1 ../source/apache.prg ../source/cookies.prg ../source/exec.prg ../source/pairs.prg ../source/paths.prg -o/tmp/hbmk_dhtljf.dir/ -i/home/nikko/harbour/include
Harbour 3.2.0dev (r2101261627)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling '../source/apache.prg'...
Lines 2150, Functions/Procedures 5
Generating C source output to '/tmp/hbmk_dhtljf.dir/apache.c'... Done.
Compiling '../source/cookies.prg'...
Lines 83, Functions/Procedures 3
Generating C source output to '/tmp/hbmk_dhtljf.dir/cookies.c'... Done.
Compiling '../source/exec.prg'...
Lines 892, Functions/Procedures 9
Generating C source output to '/tmp/hbmk_dhtljf.dir/exec.c'... Done.
Compiling '../source/pairs.prg'...
Lines 70, Functions/Procedures 2
Generating C source output to '/tmp/hbmk_dhtljf.dir/pairs.c'... Done.
Compiling '../source/paths.prg'...
Lines 53, Functions/Procedures 3
Generating C source output to '/tmp/hbmk_dhtljf.dir/paths.c'... Done.
hbmk2: C/C++ compiler command:
gcc -c -O3  -I/usr/include/apache2 -I/usr/include/apr-1.0 -W -Wall -pipe -fPIC -DHB_DYNLIB -I/home/nikko/harbour/include '/tmp/hbmk_dhtljf.dir/apache.c' '/tmp/hbmk_dhtljf.dir/cookies.c' '/tmp/hbmk_dhtljf.dir/exec.c' '/tmp/hbmk_dhtljf.dir/pairs.c' '/tmp/hbmk_dhtljf.dir/paths.c' '../../home/nikko/mod_harbour/source/console.c' '../../home/nikko/mod_harbour/source/headers.c' '../../home/nikko/mod_harbour/source/in.c' '../../home/nikko/mod_harbour/source/mem.c' '../../home/nikko/mod_harbour/source/out.c' '../../home/nikko/mod_harbour/source/pointers.c' '../../home/nikko/mod_harbour/source/qout.c' '../../home/nikko/mod_harbour/source/url.c'
hbmk2: Dynamic lib link command:
gcc -shared -o libharbour.so.3.2.0 '/tmp/hbmk_dhtljf.dir/apache.o' '/tmp/hbmk_dhtljf.dir/cookies.o' '/tmp/hbmk_dhtljf.dir/exec.o' '/tmp/hbmk_dhtljf.dir/pairs.o' '/tmp/hbmk_dhtljf.dir/paths.o' '/tmp/hbmk_dhtljf.dir/console.o' '/tmp/hbmk_dhtljf.dir/headers.o' '/tmp/hbmk_dhtljf.dir/in.o' '/tmp/hbmk_dhtljf.dir/mem.o' '/tmp/hbmk_dhtljf.dir/out.o' '/tmp/hbmk_dhtljf.dir/pointers.o' '/tmp/hbmk_dhtljf.dir/qout.o' '/tmp/hbmk_dhtljf.dir/url.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/home/nikko/harbour/lib/linux/gcc
/usr/bin/ld: /home/nikko/harbour/lib/linux/gcc/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
collect2: error: ld returned 1 exit status
hbmk2[modharbour]: Error: Running dynamic lib link command. 1

gcc -shared -o libharbour.so.3.2.0 '/tmp/hbmk_dhtljf.dir/apache.o' '/tmp/hbmk_dhtljf.dir/cookies.o' '/tmp/hbmk_dhtljf.dir/exec.o' '/tmp/hbmk_dhtljf.dir/pairs.o' '/tmp/hbmk_dhtljf.dir/paths.o' '/tmp/hbmk_dhtljf.dir/console.o' '/tmp/hbmk_dhtljf.dir/headers.o' '/tmp/hbmk_dhtljf.dir/in.o' '/tmp/hbmk_dhtljf.dir/mem.o' '/tmp/hbmk_dhtljf.dir/out.o' '/tmp/hbmk_dhtljf.dir/pointers.o' '/tmp/hbmk_dhtljf.dir/qout.o' '/tmp/hbmk_dhtljf.dir/url.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/home/nikko/harbour/lib/linux/gcc

y por lo tanto no crea la libreria.

claramente puedo copiar la libreria que esta incluida en el sitio, pero prefiero compilarla en el servidor.

otra pregunta es necesario utilizar las librerias hhpcre y libhbpdf o el sistema trabaja sin problemas

saludos desde italia

Domenico





Antonio Linares

unread,
Jul 7, 2021, 5:04:03 AM7/7/21
to ModHarbour
Domenico,

Haz un git pull, reconstruye y debe ir bien

Puedes revisar las librerias que se enlazan en modharbour.hbp

saludos
Reply all
Reply to author
Forward
0 new messages