[RPL/2] Issue to compile

BERTRAND Joël joel.bertrand at systella.fr
Sun Aug 5 10:34:53 CEST 2018


Andrea Girotto a écrit :
> Hello,
> thank you for your answer, as you predicted:
> 
> On 04/08/18 14:00, BERTRAND Joël wrote:
>> Can you check that $(build_dir)/src/*-conv.* are not empty ? These 
> every file *-conv.c and *-conf.h is of length 0.

	Strange.

> Specifically:
> 
> $ ls -la  *init*@(c|h|o)
> -rw-r--r-- 1 andr3a andr3a  962 Aug  3  2017 init.c
> -rw-r--r-- 1 andr3a andr3a    0 Aug  4 12:28 init-conv.c
> -rw-r--r-- 1 andr3a andr3a 1320 Aug  4 12:29 rpl-init-conv.o
> 
>> files are generated by $(build_dir)/rpliconv/rpliconv and
>> $(build_dir)/rplawk/rplawk. You can check also that both executables exist.
> Yes, I have them:
> 
> $ ls -la rpliconv/rpliconv
> -rwxr-xr-x 1 andr3a andr3a 1552560 Aug  4 12:25 rpliconv/rpliconv
> 
> $ file rpliconv/rpliconv
> rpliconv/rpliconv: ELF 64-bit LSB pie executable x86-64, version 1
> (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for
> GNU/Linux 3.2.0, BuildID[sha1]=c3a7bb0c351bdbd6c4bf457954ac6eb882638c5a,
> with debug_info, not stripped
> 
> $ ls -la rplawk/rplawk
> -rwxr-xr-x 1 andr3a andr3a 413304 Aug  4 12:25 rplawk/rplawk
> 
> $ file rplawk/rplawk
> rplawk/rplawk: ELF 64-bit LSB pie executable x86-64, version 1 (SYSV),
> dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for
> GNU/Linux 3.2.0, BuildID[sha1]=1e8264640f0f05dfc97b3552d1b5c48eb27024a7,
> with debug_info, not stripped
> 
>> 	Can you post here, for the user that tries to build RPL/2, the result of:
>>
>> locale charmap | awk '/\=/ { print $$3;} !/\=/ { print $$1;}' ?
>>
>> You should obtain your locale (for example UTF-8). If result is empty,
>> you can force encoding with --enable-final-encoding=UTF-8
> $ locale
> LANG=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC=en_IE.UTF-8
> LC_TIME=en_IE.UTF-8
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY=en_IE.UTF-8
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER=en_IE.UTF-8
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT=en_IE.UTF-8
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
> 
> $ locale charmap | awk '/\=/ { print $$3;} !/\=/ { print $$1;}'
> UTF-8

	OK. There are some issues with very special encoding parameters.

> Any suggestion on how I can generate the files *-conv.c and *-conv.h?

	To build algebre_lineaire1-conv.c, Makefile calls (from $(builddir)/src) :

../rpliconv/rpliconv -f `../tools/file-5.33/src/rplfile -m
../tools/file-5.33/magic/magic -i ../../rpl/src/algebre_lineaire1.c |
    gawk -F= '{print $2;}'` -t UTF-8//TRANSLIT
../../rpl/src/algebre_lineaire1.c | expand -t 4 > algebre_lineaire1-conv.c

	Can you check that :

../tools/file-5.33/src/rplfile -m ../tools/file-5.33/magic/magic -i
../../rpl/src/algebre_lineaire1.c | gawk -F= '{print $2;}'

returns : iso-8859-1

Please test also :

../rpliconv/rpliconv -f iso-8859-1 -t UTF-8//TRANSLIT
../../rpl/src/algebre_lineaire1.c

And check you have installed expand.

	Best regards,

	JKB


More information about the RPL2 mailing list