Problem configuring otp_src_R10B-10/erts

Charles F. Schatz cschatz@REDACTED
Mon Mar 13 02:28:51 CET 2006


Building Erlang OTP nder QNX 6.3, I get the following error:

./configure
checking build system type... i386-pc-nto-qnx6.3.0
checking host system type... i386-pc-nto-qnx6.3.0
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for mixed cygwin and native VC++ environment... no
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for bison... bison -y
checking for perl5... no
checking for perl... /usr/bin/perl
checking whether ln -s works... yes
checking for ar... ar
checking for rm... /bin/rm
checking for mkdir... /bin/mkdir
checking for a BSD-compatible install... /opt/bin/install -c
checking how to create a directory including parents... /opt/bin/install -c
-d
checking for extra flags needed to export symbols... none
none
checking for sin in -lm... no
checking for dlopen in -ldl... no
checking for main in -linet... no
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for native win32 threads... no
checking for pthread_create in -lpthread... no
checking for pthread_create in -lc_r... no
checking for pthread_create in -lc... no
checking if the '-pthread' switch can be used... no
checking whether the emulator should use threads... no
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermcap... no
checking for tgetent in -ltermlib... no
configure: error: No curses library functions found


There is a problem with $ERL_TOP/erts/configure not passing the LDFLAGS
environment variable for test compiles, so ALL library tests fail. I
modified files $ERL_TOP/erts/aclocal.m4 and $ERL_TOP/configure.in in order
to locate pthread_create in the standard C runtime library. The
$ERL_TOP/configure.in produces a configure that works, wheras the
$ERL_TOP/erts/configure.in does not. At the top of file erts/configure.in:

AC_PREREQ(2.13)
AC_INIT(vsn.mk)

Commenting out AC_PREREQ(2.13), or changing it to AC_PREREQ(2.57) (the
actual autoconf version on the compiling machine) has no effect on the above
result. I have also installed autoconf 2.13 and gotten incompatibility
results with all the configuration files.

Any ideas anyone?

Cheers,
	Charles F. Schatz




More information about the erlang-questions mailing list