Akim Demaille <[EMAIL PROTECTED]> writes:
>
> >>>>> "Torbjorn" == Torbjorn Granlund <[EMAIL PROTECTED]> writes:
>
> Torbjorn> Running configure from the current GMP working sources,
> Torbjorn> SunOS 4.1.3 /bin/sh catches a segfault.
>
> Thanks a lot. I'm working on it, which means I first try to get this
> *(*£&$ test suite work properly on SunOS. I don't think there is a
> test which exercises the bug, afaics. Could I ask you to write a
> dummy configure.in which triggers the bug on your system?
Alas attempts at making such an input have met with miserable failure.
Whatever the bug is, it seems highly dependent on the environment. I
got to config.status.cutdown below which provokes the segv under
env - PATH=/bin:/usr/bin sh config.status.cutdown
But the full config.status run that way seems to work (in other
circumstances it doesn't). In each case though the offending line is
CONFIG_LINKS=${CONFIG_LINKS="$config_links"}
The suggested variant from the manual seems to work
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
But the problem looks too subtle to confidently say that's a definite
fix.
#! /bin/sh
config_files=" Makefile
mpbsd/Makefile mpf/Makefile mpfr/Makefile mpn/Makefile mpq/Makefile mpz/Makefile
mpfr/tests/Makefile
tests/Makefile tests/devel/Makefile
tests/mpbsd/Makefile tests/mpf/Makefile tests/mpq/Makefile
tests/mpz/Makefile tests/rand/Makefile
tune/Makefile
demos/Makefile demos/calc/Makefile demos/expr/Makefile"
config_headers=" config.h:config.in"
config_links=" mpn/udiv_fp.asm:mpn/sparc32/udiv_fp.asm
mpn/inlines.c:mpn/generic/inlines.c mpn/add_n.asm:mpn/sparc32/add_n.asm
mpn/sub_n.asm:mpn/sparc32/sub_n.asm mpn/mul_1.asm:mpn/sparc32/v8/mul_1.asm
mpn/addmul_1.asm:mpn/sparc32/v8/addmul_1.asm
mpn/submul_1.asm:mpn/sparc32/v8/submul_1.asm mpn/lshift.asm:mpn/sparc32/lshift.asm
mpn/rshift.asm:mpn/sparc32/rshift.asm mpn/diveby3.c:mpn/generic/diveby3.c
mpn/divrem.c:mpn/generic/divrem.c mpn/divrem_1.c:mpn/generic/divrem_1.c
mpn/divrem_2.c:mpn/generic/divrem_2.c mpn/mod_1.c:mpn/generic/mod_1.c
mpn/mode1o.c:mpn/generic/mode1o.c mpn/pre_mod_1.c:mpn/generic/pre_mod_1.c
mpn/dump.c:mpn/generic/dump.c mpn/mul.c:mpn/generic/mul.c
mpn/mul_fft.c:mpn/generic/mul_fft.c mpn/mul_n.c:mpn/generic/mul_n.c
mpn/mul_basecase.c:mpn/generic/mul_basecase.c
mpn/sqr_basecase.c:mpn/generic/sqr_basecase.c mpn/random.c:mpn/generic/random.c
mpn/random2.c:mpn/generic/random2.c mpn/sqrtrem.c:mpn/generic/sqrtrem.c
mpn/get_str.c:mpn/generic/get_str.c mpn/set_str!
.c:mpn/generic/set_str.c mpn/scan0.c:mpn/generic/scan0.c
mpn/scan1.c:mpn/generic/scan1.c mpn/popcount.c:mpn/generic/popham.c
mpn/hamdist.c:mpn/generic/popham.c mpn/cmp.c:mpn/generic/cmp.c
mpn/perfsqr.c:mpn/generic/perfsqr.c mpn/bdivmod.c:mpn/generic/bdivmod.c
mpn/gcd_1.c:mpn/generic/gcd_1.c mpn/gcd.c:mpn/generic/gcd.c
mpn/gcdext.c:mpn/generic/gcdext.c mpn/tdiv_qr.c:mpn/generic/tdiv_qr.c
mpn/dc_divrem_n.c:mpn/generic/dc_divrem_n.c
mpn/sb_divrem_mn.c:mpn/generic/sb_divrem_mn.c mpn/jacbase.c:mpn/generic/jacbase.c
gmp-mparam.h:mpn/sparc32/v8/gmp-mparam.h fjkldsjaf:fjkdslfjds fkdjsljf:fjksdljflds"
config_commands=" default-1 default-2"
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
Usage: $0 [OPTIONS] [FILE]...
-h, --help print this help, then exit
-V, --version print version number, then exit
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
Configuration files:
$config_files
Configuration headers:
$config_headers
Configuration links:
$config_links
Configuration commands:
$config_commands
Report bugs to <[EMAIL PROTECTED]>."
ac_cs_version="\
./config.status generated by configure (Autoconf 2.49b).
Configured on host anhur by
./configure "
CONFIG_FILES=${CONFIG_FILES="$config_files"}
CONFIG_HEADERS=${CONFIG_HEADERS="$config_headers"}
echo links setup
CONFIG_LINKS=${CONFIG_LINKS="$config_links"}
echo done