Estou tentando compilar o código-fonte a partir do svn (versão 1228, a atual na data de hoje) e tenho o seguinte erro ao dar o comando make (ou make rpm, pois o erro é na compilação):
$ make
src/version.c ...
make[1]: Entrando no diretório `/home/pinho/pw3270/pw3270/src/lib'
gcc -g -o mkfb.exe -D_WIN32 mkfb.c
rm -f fallbacks.c
./mkfb.exe -c X3270.xad fallbacks.c
make[1]: Saindo do diretório `/home/pinho/pw3270/pw3270/src/lib'
src/lib/fallbacks.c ...
src/lib/XtGlue.c ...
src/lib/actions.c ...
src/lib/actions.c: In function ‘action_debug’:
src/lib/actions.c:815: warning: cast from pointer to integer of different size
src/lib/ansi.c ...
src/lib/apl.c ...
src/lib/charset.c ...
src/lib/charset.c: In function ‘charset_init’:
src/lib/charset.c:231: warning: field precision should have type ‘int’, but argument 2 has type ‘long unsigned int’
src/lib/ctlr.c ...
src/lib/ft.c ...
src/lib/ft_cut.c ...
src/lib/ft_dft.c ...
src/lib/ft_dft.c: In function ‘dft_get_request’:
src/lib/ft_dft.c:434: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’
src/lib/glue.c ...
src/lib/glue.c: In function ‘parse_xrm’:
src/lib/glue.c:720: warning: field precision should have type ‘int’, but argument 3 has type ‘long unsigned int’
src/lib/host.c ...
src/lib/icmd.c ...
src/lib/idle.c ...
src/lib/kybd.c ...
src/lib/kybd.c: In function ‘enq_key’:
src/lib/kybd.c:227: warning: cast to pointer from integer of different size
src/lib/kybd.c: In function ‘run_ta’:
src/lib/kybd.c:299: warning: cast from pointer to integer of different size
src/lib/macros.c ...
src/lib/print.c ...
src/lib/printer.c ...
src/lib/proxy.c ...
src/lib/proxy.c: In function ‘proxy_passthru’:
src/lib/proxy.c:331: warning: field precision should have type ‘int’, but argument 2 has type ‘size_t’
src/lib/proxy.c: In function ‘proxy_http’:
src/lib/proxy.c:366: warning: field precision should have type ‘int’, but argument 2 has type ‘size_t’
src/lib/proxy.c:383: warning: field precision should have type ‘int’, but argument 2 has type ‘size_t’
src/lib/proxy.c: In function ‘proxy_telnet’:
src/lib/proxy.c:482: warning: field precision should have type ‘int’, but argument 2 has type ‘size_t’
src/lib/resources.c ...
src/lib/rpq.c ...
src/lib/screen.c ...
src/lib/see.c ...
src/lib/sf.c ...
src/lib/tables.c ...
src/lib/telnet.c ...
src/lib/telnet.c: In function ‘tn3270e_request’:
src/lib/telnet.c:1504: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’
src/lib/toggles.c ...
src/lib/trace_ds.c ...
src/lib/utf8.c ...
src/lib/util.c ...
src/lib/xio.c ...
src/lib/keymap.c ...
src/lib/resolver.c ...
src/lib/log.c ...
src/lib/paste.c ...
bin/Release/lib3270.so ...
/usr/bin/ld: obj/Release/src/lib/XtGlue.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
obj/Release/src/lib/XtGlue.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: ** [bin/Release/lib3270.so] Erro 1
Alguma idéia ? Os passos anteriores (./bootstrap.sh e ./configure não deram erros)
Autor: Manoel Pinho
33 comentários