Hello,
I am trying to install MonetDB on Solaris 10/UltraSparc III and Fedora6/AMD.
I tried running monetdb-install.sh as suggested in the documentation. The
Fedora installation went on fine without any hitches. However, the solaris
10 installation failed. The script is failing due to some error on the test
which determines sizeof(ssize_t).
To see if there was some problem in my sys/types.h I compiled and executed a
code which I think is used by the configure script. This test program ran
without any issues writing a value of 4 to the conftest.val file. My guess
is ssize_t is typedefd as an int on my machine. The test program is as
follows :
#include
#include
long longval () { return (long) (sizeof (ssize_t)); }
unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (ssize_t))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (ssize_t))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (ssize_t))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
I am attaching the relevant portion of the config.log that is produced. I
would appreciate any inputs on how to resolve this issue and why it arises.
------------------------------------------------------------------------------------------------------------------------------------------------------
#include
|
| long longval () { return (long) (sizeof (ssize_t)); }
| unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
| #include
| #include
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| exit (1);
| if (((long) (sizeof (ssize_t))) < 0)
| {
| long i = longval ();
| if (i != ((long) (sizeof (ssize_t))))
| exit (1);
| fprintf (f, "%ld\n", i);
| }
| else
| {
| unsigned long i = ulongval ();
| if (i != ((long) (sizeof (ssize_t))))
| exit (1);
| fprintf (f, "%lu\n", i);
| }
| exit (ferror (f) || fclose (f) != 0);
|
| ;
| return 0;
| }
configure:26151: error: cannot compute sizeof (ssize_t), 77
See `config.log' for more details.
The following is the configure output -
MonetDB>./configure
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 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 dependency style of gcc... none
checking for egrep... egrep
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking how to run the C preprocessor... gcc -E
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 dependency style of gcc... (cached) none
checking for long... yes
checking size of long... 4
checking whether byte ordering is bigendian... yes
checking if your compiler is C99 compliant... yes
checking for ant... no
checking for java... /bin/java
checking for Java >= 1.4, but < 1.6... yes -> 1.5.0_12 found
checking for javac... /bin/javac
checking for jar... /bin/jar
checking for javadoc... /bin/javadoc
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... no
checking dlfcn.h presence... yes
configure: WARNING: dlfcn.h: present but cannot be compiled
configure: WARNING: dlfcn.h: check for missing prerequisite headers?
configure: WARNING: dlfcn.h: see the Autoconf documentation
configure: WARNING: dlfcn.h: section "Present But Cannot Be Compiled"
configure: WARNING: dlfcn.h: proceeding with the preprocessor's result
configure: WARNING: dlfcn.h: in the future, the compiler will take
precedence
configure: WARNING: ## --------------------------- ##
configure: WARNING: ## Report this to monet@cwi.nl ##
configure: WARNING: ## --------------------------- ##
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking for flex... flex
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking the maximum length of command line arguments... 262144
checking command to parse /usr/local/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... no
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) no
checking whether time.h and sys/time.h may both be included... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking alloca.h usability... no
checking alloca.h presence... yes
configure: WARNING: alloca.h: present but cannot be compiled
configure: WARNING: alloca.h: check for missing prerequisite headers?
configure: WARNING: alloca.h: see the Autoconf documentation
configure: WARNING: alloca.h: section "Present But Cannot Be Compiled"
configure: WARNING: alloca.h: proceeding with the preprocessor's result
configure: WARNING: alloca.h: in the future, the compiler will take
precedence
configure: WARNING: ## --------------------------- ##
configure: WARNING: ## Report this to monet@cwi.nl ##
configure: WARNING: ## --------------------------- ##
checking for alloca.h... yes
checking getopt.h usability... no
checking getopt.h presence... yes
configure: WARNING: getopt.h: present but cannot be compiled
configure: WARNING: getopt.h: check for missing prerequisite headers?
configure: WARNING: getopt.h: see the Autoconf documentation
configure: WARNING: getopt.h: section "Present But Cannot Be Compiled"
configure: WARNING: getopt.h: proceeding with the preprocessor's result
configure: WARNING: getopt.h: in the future, the compiler will take
precedence
configure: WARNING: ## --------------------------- ##
configure: WARNING: ## Report this to monet@cwi.nl ##
configure: WARNING: ## --------------------------- ##
checking for getopt.h... yes
checking netdb.h usability... no
checking netdb.h presence... yes
configure: WARNING: netdb.h: present but cannot be compiled
configure: WARNING: netdb.h: check for missing prerequisite headers?
configure: WARNING: netdb.h: see the Autoconf documentation
configure: WARNING: netdb.h: section "Present But Cannot Be Compiled"
configure: WARNING: netdb.h: proceeding with the preprocessor's result
configure: WARNING: netdb.h: in the future, the compiler will take
precedence
configure: WARNING: ## --------------------------- ##
configure: WARNING: ## Report this to monet@cwi.nl ##
configure: WARNING: ## --------------------------- ##
checking for netdb.h... yes
checking for sys/types.h... (cached) yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for an ANSI C-conforming const... yes
checking for size_t... no
checking return type of signal handlers... int
checking for ptrdiff_t... yes
checking for ssize_t... yes
checking for __int64... no
checking for long long... no
checking for char... no
checking size of char... 0
checking for short... no
checking size of short... 0
checking for int... no
checking size of int... 0
checking for long... (cached) yes
checking size of long... (cached) 4
checking for void *... no
checking size of void *... 0
checking for size_t... (cached) no
checking size of size_t... 0
checking for ssize_t... (cached) yes
checking size of ssize_t... configure: error: cannot compute sizeof
(ssize_t),
However, I think the problem is somewhere above this line as I was getting
sizeof(char), sizeof (long long) as zeros.
Kindly guide me as I am a relative newbie to MonetDB.
Thanks in advance,
Pranav.
--
View this message in context: http://www.nabble.com/-Newbie--sizeof%28ssize_t%29-error-on-Solaris-10-tf443...
Sent from the monetdb-users mailing list archive at Nabble.com.