[RPL/2] Error in half-compilation

BERTRAND Joël joel.bertrand at systella.fr
Mar 19 Juin 09:34:20 CEST 2007


DEMAINE Benoit-Pierre a écrit :
> After successfull compilation of latest version, run time produce this:
> 
> dhp at moon_gen_2:~$ rpl -i
> +++RPL/2 version 4.00pre8w (Monday 06/18/07, 23:54:56 CEST)
> +++Copyright (C) 1989 to 2006, 2007 BERTRAND Joël
> 
> +++This is a free software with absolutely no warranty.
> +++For details, type 'warranty'.
> 
> +++Error : Error in half-compilation
> dhp at moon_gen_2:~$
> 
> I can not compile older versions anymore. I attach compile log for both.
> 
> versionning:
> 19=s
> 23=w

	Please don't send to mailing list your log files. I think you can 
upload these logs on a web site.

	Pre8s _should_ work even on gentoo. You are not able to build a regular 
pre8s due to a corrupted file created by libtool. It occurs when libtool 
crashes (internal error or TERM signal). If you remove 
.deps/librpl_la-algebre_lineaire1.conv.Tpo, you can rebuild a pre8s.

>  gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8s\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -UGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Monday 18/06/07, 21:07:06 CEST\"" "-Dd_date_en_rpl=\"Monday 06/18/07, 21:07:06 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY -I../tools/gsl-1.8 -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char -Wno-pointer-sign -MT librpl_la-algebre_lineaire1.conv.lo -MD -MP -MF .deps/librpl_la-algebre_lineaire1.conv.Tpo -c algebre_lineaire1.conv.c  -fPIC -DPIC -o .libs/librpl_la-algebre_lineaire1.conv.o
>  gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8s\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -UGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Monday 18/06/07, 21:10:54 CEST\"" "-Dd_date_en_rpl=\"Monday 06/18/07, 21:10:54 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY -I../tools/gsl-1.8 -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char -Wno-pointer-sign -MT librpl_la-algebre_lineaire1.conv.lo -MD -MP -MF .deps/librpl_la-algebre_lineaire1.conv.Tpo -c algebre_lineaire1.conv.c  -fPIC -DPIC -o .libs/librpl_la-algebre_lineaire1.conv.o
>  gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8s\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -UGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Monday 18/06/07, 21:10:54 CEST\"" "-Dd_date_en_rpl=\"Monday 06/18/07, 21:10:54 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY -I../tools/gsl-1.8 -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char -Wno-pointer-sign -MT librpl_la-algebre_lineaire1.conv.lo -MD -MP -MF .deps/librpl_la-algebre_lineaire1.conv.Tpo -c algebre_lineaire1.conv.c -o librpl_la-algebre_lineaire1.conv.o >/dev/null 2>&1
>  gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8s\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -UGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Monday 18/06/07, 21:07:06 CEST\"" "-Dd_date_en_rpl=\"Monday 06/18/07, 21:07:06 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY -I../tools/gsl-1.8 -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char -Wno-pointer-sign -MT librpl_la-algebre_lineaire1.conv.lo -MD -MP -MF .deps/librpl_la-algebre_lineaire1.conv.Tpo -c algebre_lineaire1.conv.c -o librpl_la-algebre_lineaire1.conv.o >/dev/null 2>&1
> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8s\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -UGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE -Dd_date_rpl="\"Monday 18/06/07, 21:10:54 CEST\"" -Dd_date_en_rpl="\"Monday 06/18/07, 21:10:54 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY  -I../tools/gsl-1.8     -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char 			-Wno-pointer-sign -MT librpl_la-algebre_lineaire2.conv.lo -MD -MP -MF ".deps/librpl_la-algebre_lineaire2.conv.Tpo" -c -o librpl_la-algebre_lineaire2.conv.lo `test -f 'algebre_lineaire2.conv.c' || echo '../../src/'`algebre_lineaire2.conv.c; \
> 	then mv -f ".deps/librpl_la-algebre_lineaire2.conv.Tpo" ".deps/librpl_la-algebre_lineaire2.conv.Plo"; else rm -f ".deps/librpl_la-algebre_lineaire2.conv.Tpo"; exit 1; fi
> mv: cannot stat `.deps/librpl_la-algebre_lineaire1.conv.Tpo': No such file or directory
> make[3]: *** [librpl_la-algebre_lineaire1.conv.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....

	For pre8w, I suspect a bug in Gentoo build process. I don't have any 
gentoo box, only debian/sparc and Solaris/sparc. It was a security issue 
(code injection) in RPL/2. If you install RPL/2 in /usr and your PATH is 
define as /usr/local/bin:/usr/bin, and a user can write on 
/usr/local/bin, this user can write its own rplpp (RPL/2 preprocessor). 
He can put it in /usr/local/bin, and if a root cron job (for example) 
starts a RPL/2 routine, this user can obtain root privileges.

	Thus, path of rplpp is hard coded and defined by d_exec_path. It should 
be /usr/local/bin or /usr/bin, not 
/var/tmp/portage/doublehp/rpl2-4.0.0.8.0.23/image//usr.

> mkdir .libs
> mkdir: cannot create directory `.libs': File exists
>  gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8w\" -Dd_exec_path=\"/var/tmp/portage/doublehp/rpl2-4.0.0.8.0.23/image//usr\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -DGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Monday 18/06/07, 23:41:54 CEST\"" "-Dd_date_en_rpl=\"Monday 06/18/07, 23:41:54 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY -I../tools/gsl-1.9 -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char -Wno-pointer-sign -MT librpl_la-algebre_lineaire1.conv.lo -MD -MP -MF .deps/librpl_la-algebre_lineaire1.conv.Tpo -c algebre_lineaire1.conv.c  -fPIC -DPIC -o .libs/librpl_la-algebre_lineaire1.conv.o
>  gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8w\" -Dd_exec_path=\"/var/tmp/portage/doublehp/rpl2-4.0.0.8.0.23/image//usr\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -DGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Monday 18/06/07, 23:41:54 CEST\"" "-Dd_date_en_rpl=\"Monday 06/18/07, 23:41:54 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY -I../tools/gsl-1.9 -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char -Wno-pointer-sign -MT librpl_la-algebre_lineaire2.conv.lo -MD -MP -MF .deps/librpl_la-algebre_lineaire2.conv.Tpo -c algebre_lineaire2.conv.c  -fPIC -DPIC -o .libs/librpl_la-algebre_lineaire2.conv.o
>  gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8w\" -Dd_exec_path=\"/var/tmp/portage/doublehp/rpl2-4.0.0.8.0.23/image//usr\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -DGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Monday 18/06/07, 23:41:54 CEST\"" "-Dd_date_en_rpl=\"Monday 06/18/07, 23:41:54 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY -I../tools/gsl-1.9 -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char -Wno-pointer-sign -MT librpl_la-algebre_lineaire2.conv.lo -MD -MP -MF .deps/librpl_la-algebre_lineaire2.conv.Tpo -c algebre_lineaire2.conv.c -o librpl_la-algebre_lineaire2.conv.o >/dev/null 2>&1
>  gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8w\" -Dd_exec_path=\"/var/tmp/portage/doublehp/rpl2-4.0.0.8.0.23/image//usr\" -DMOTIF_SUPPORT -UPOSTSCRIPT_SUPPORT -DGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Monday 18/06/07, 23:41:54 CEST\"" "-Dd_date_en_rpl=\"Monday 06/18/07, 23:41:54 CEST\"" -g -I. -I../../src -I.. -I../../src -I.. -I../../tools/readline-5.2 -I../tools/readline-5.2 -DREADLINE_LIBRARY -I../tools/gsl-1.9 -O2 -march=athlon-mp -pipe -mmmx -msse -m3dnow -malign-double -mieee-fp -Wall -O6 -funsigned-char -Wno-pointer-sign -MT librpl_la-algebre_lineaire1.conv.lo -MD -MP -MF .deps/librpl_la-algebre_lineaire1.conv.Tpo -c algebre_lineaire1.conv.c -o librpl_la-algebre_lineaire1.conv.o >/dev/null 2>&1

	Regards,

	JKB



Plus d'informations sur la liste de diffusion RPL2