Re: getting cvs HDF5 to install on a sun

The libtool script used in the build process should be generated by 
configure.  That's why it looks for libtool in . and not in your path.

I think the problem here is buried in the middle of the configure output: 
it complains that AC_LIBTOOL_DLOPEN and AM_PROG_LIBTOOL are not found.  
These are macros that it needs to create libtool, and both of them should 
live in aclocal.m4.  Is there a chance that aclocal.m4 was deleted or 
corrupted?

James

On Tue, 3 May 2005, Ed Hartnett wrote:
> 
> HDF folk:
> 
> I'm trying to compile and install a fairly recent cvs snapshot of
> HDF5. It works fine on my linux machine, but on Russ's Sun it has some
> trouble finding libtool. Yet:
> 
> uname -a
> SunOS zero.unidata.ucar.edu 5.9 Generic_117171-12 sun4u sparc SUNW,Ultra-4
> bash-3.00$ libtool --version
> ltmain.sh (GNU libtool) 1.5.2 (1.1220.2.60 2004/01/25 12:25:08)
> 
> Copyright (C) 2003  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> bash-3.00$ 
> 
> Here's the configure. Note near the bottom it complains that it can't
> find libtool. Have any of you seen this before?
> 
> BTW this machine built and installed the last HDF5 release, so I know
> it can happen.
> 
> Thanks!
> 
> Ed
> 
> bash-3.00$ ./configure && make
> checking for a BSD-compatible install... /opt/gnu/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking build system type... sparc-sun-solaris2.9
> checking host system type... sparc-sun-solaris2.9
> checking shell variables initial values... done
> checking if tr works... yes
> checking if basename works... yes
> checking if xargs works... yes
> checking for cached host... none
> checking for sizeof hsize_t and hssize_t... large
> checking for config sparc-sun-solaris2.9... no
> checking for config sparc-sun-solaris2.x... no
> checking for config sun-solaris2.9... no
> checking for config sun-solaris2.x... no
> checking for config sparc-solaris2.9... no
> checking for config sparc-solaris2.x... no
> checking for config sparc-sun... no
> checking for config solaris2.9... no
> checking for config solaris2.x... found
> checking for config ./config/site-specific/host-zero.unidata.ucar.edu... no
> checking for config ./config/site-specific/host-unidata.ucar.edu... no
> checking for config ./config/site-specific/host-ucar.edu... no
> checking for config ./config/site-specific/host-edu... no
> checking for gcc... cc
> 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... no
> checking whether cc accepts -g... yes
> checking for cc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of cc... dashXmstdout
> checking if Fortran interface enabled... no
> checking if c++ interface enabled... checking whether we are using the GNU 
> C++ compiler... no
> checking whether CC accepts -g... yes
> checking dependency style of CC... dashXmstdout
> checking how to run the C++ preprocessor... CC -E
> no
> checking if should build only statically linked executables... no
> checking for ar... ar
> checking whether make sets $(MAKE)... (cached) yes
> checking for a BSD-compatible install... /opt/gnu/bin/install -c
> ./configure: AC_LIBTOOL_DLOPEN: command not found
> ./configure: AM_PROG_LIBTOOL: command not found
> checking make... checking how make searches directories... VPATH=DIR1:DIR2:...
> checking whether make will build with undefined variables... yes
> checking for production mode... development
> checking for ceil in -lm... yes
> checking for xdr_int in -lnsl... yes
> checking how to run the C preprocessor... cc -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking for difftime... yes
> checking for gettimeofday... yes
> 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... no
> checking for unistd.h... yes
> checking sys/resource.h usability... yes
> checking sys/resource.h presence... yes
> checking for sys/resource.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking for unistd.h... (cached) yes
> checking sys/ioctl.h usability... yes
> checking sys/ioctl.h presence... yes
> checking for sys/ioctl.h... yes
> checking for sys/stat.h... (cached) yes
> checking sys/socket.h usability... yes
> checking sys/socket.h presence... yes
> checking for sys/socket.h... yes
> checking for sys/types.h... (cached) yes
> checking stddef.h usability... yes
> checking stddef.h presence... yes
> checking for stddef.h... yes
> checking setjmp.h usability... yes
> checking setjmp.h presence... yes
> checking for setjmp.h... yes
> checking features.h usability... no
> checking features.h presence... no
> checking for features.h... no
> checking for stdint.h... (cached) no
> checking io.h usability... no
> checking io.h presence... no
> checking for io.h... no
> checking winsock.h usability... no
> checking winsock.h presence... no
> checking for winsock.h... no
> checking sys/timeb.h usability... yes
> checking sys/timeb.h presence... yes
> checking for sys/timeb.h... yes
> checking for lseek64... yes
> checking for fseek64... no
> checking for off_t... yes
> checking for size_t... yes
> checking for ssize_t... yes
> checking whether byte ordering is bigendian... yes
> checking for char... yes
> checking size of char... 1
> checking for short... yes
> checking size of short... 2
> checking for int... yes
> checking size of int... 4
> checking for long... yes
> checking size of long... 4
> checking for long long... yes
> checking size of long long... 8
> checking for __int64... no
> checking size of __int64... 0
> checking for float... yes
> checking size of float... 4
> checking for double... yes
> checking size of double... 8
> checking for long double... yes
> checking size of long double... 16
> checking for int8_t... yes
> checking size of int8_t... 1
> checking for uint8_t... yes
> checking size of uint8_t... 1
> checking for int_least8_t... yes
> checking size of int_least8_t... 1
> checking for uint_least8_t... yes
> checking size of uint_least8_t... 1
> checking for int_fast8_t... no
> checking size of int_fast8_t... 0
> checking for uint_fast8_t... no
> checking size of uint_fast8_t... 0
> checking for int16_t... yes
> checking size of int16_t... 2
> checking for uint16_t... yes
> checking size of uint16_t... 2
> checking for int_least16_t... yes
> checking size of int_least16_t... 2
> checking for uint_least16_t... yes
> checking size of uint_least16_t... 2
> checking for int_fast16_t... no
> checking size of int_fast16_t... 0
> checking for uint_fast16_t... no
> checking size of uint_fast16_t... 0
> checking for int32_t... yes
> checking size of int32_t... 4
> checking for uint32_t... yes
> checking size of uint32_t... 4
> checking for int_least32_t... yes
> checking size of int_least32_t... 4
> checking for uint_least32_t... yes
> checking size of uint_least32_t... 4
> checking for int_fast32_t... no
> checking size of int_fast32_t... 0
> checking for uint_fast32_t... no
> checking size of uint_fast32_t... 0
> checking for int64_t... yes
> checking size of int64_t... 8
> checking for uint64_t... yes
> checking size of uint64_t... 8
> checking for int_least64_t... yes
> checking size of int_least64_t... 8
> checking for uint_least64_t... yes
> checking size of uint_least64_t... 8
> checking for int_fast64_t... no
> checking size of int_fast64_t... 0
> checking for uint_fast64_t... no
> checking size of uint_fast64_t... 0
> checking for size_t... (cached) yes
> checking size of size_t... 4
> checking for ssize_t... (cached) yes
> checking size of ssize_t... 4
> checking for off_t... (cached) yes
> checking size of off_t... 4
> checking if dev_t is scalar... yes
> checking for dmalloc library... suppressed
> checking zlib.h usability... yes
> checking zlib.h presence... yes
> checking for zlib.h... yes
> checking for compress2 in -lz... yes
> checking for compress2... yes
> checking for szlib... suppressed
> checking for SRB... suppressed
> checking for PD_open in -lpdb... no
> checking for lite_PD_open in -lsilo... no
> checking pdb.h usability... no
> checking pdb.h presence... no
> checking for pdb.h... no
> checking for pthread... suppressed
> checking for thread safe support... no
> checking whether HDF5 v1.6 compatibility functions enabled... no
> checking for Stream Virtual File Driver support... yes
> checking netinet/tcp.h usability... yes
> checking netinet/tcp.h presence... yes
> checking for netinet/tcp.h... yes
> checking sys/filio.h usability... yes
> checking sys/filio.h presence... yes
> checking for sys/filio.h... yes
> checking if socklen_t is defined... yes
> checking for tm_gmtoff in struct tm... no
> checking for __tm_gmtoff in struct tm... no
> checking for global timezone variable... yes
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking for struct tm.tm_zone... no
> checking for tzname... yes
> checking for struct timezone... yes
> checking whether gettimeofday() gives timezone... no
> checking for st_blocks in struct stat... yes
> checking for _getvideoconfig... no
> checking for gettextinfo... no
> checking for GetConsoleScreenBufferInfo... no
> checking for _scrsize... no
> checking for ioctl... yes
> checking for struct videoconfig... no
> checking for struct text_info... no
> checking for TIOCGWINSZ... yes
> checking for TIOCGETD... yes
> checking for fork... yes
> checking for frexpf... no
> checking for frexpl... no
> checking for gethostname... yes
> checking for getpwuid... yes
> checking for getrusage... yes
> checking for BSDgettimeofday... no
> checking for longjmp... yes
> checking for setsysinfo... no
> checking for sigaction... yes
> checking for signal... yes
> checking for snprintf... yes
> checking for vasprintf... no
> checking for strdup... yes
> checking for system... yes
> checking for waitpid... yes
> checking for vsnprintf... yes
> checking if vsnprintf returns correct value... yes
> checking for an ANSI C-conforming const... yes
> checking for inline... inline
> checking for __attribute__ extension... no
> checking for __FUNCTION__ extension... no
> checking how to print long long... %lld and %llu
> checking Threads support system scope... yes
> checking for gpfs... suppressed
> checking for debug flags... default (d,e,f,g,hg,i,mm,o,p,s,t,v,z)
> checking whether function stack tracking is enabled... yes
> checking for API tracing... yes
> checking for instrumented library... yes
> checking for parallel support files... skipped
> checking for I/O filters... all (shuffle,fletcher32,nbit,scaleoffset)
> checking if converting denormalized floating-point values is possible... yes
> checking if accurately converting from long double to integers works... yes
> checking if accurately converting from integers to long double works... yes
> checking if accurately converting unsigned long long to floating-point values 
> works... yes
> checking if accurately roundup converting floating-point to unsigned long 
> long values... yes
> checking if right maximum converting floating-point to unsigned long long 
> values... yes
> checking if converting long double to unsigned int values works... yes
> checking if compiling unsigned long long to floating-point typecasts work... 
> yes
> checking if converting unsigned long long to long double with precision 
> work... yes
> ./configure: whoami: command not found
> grep: can't open "libtool"
> grep: can't open "libtool"
> checking if high level library is enabled... yes
> configure: creating ./config.status
> config.status: creating src/libhdf5.settings
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating test/Makefile
> config.status: creating testpar/Makefile
> config.status: creating testpar/testph5.sh
> config.status: creating perform/Makefile
> config.status: creating tools/Makefile
> config.status: creating tools/h5dump/Makefile
> config.status: creating tools/h5dump/testh5dump.sh
> config.status: creating tools/h5import/Makefile
> config.status: creating tools/h5diff/Makefile
> config.status: creating tools/h5jam/Makefile
> config.status: creating tools/h5jam/testh5jam.sh
> config.status: creating tools/h5repack/Makefile
> config.status: creating tools/h5repack/h5repack.sh
> config.status: creating tools/h5ls/Makefile
> config.status: creating tools/lib/Makefile
> config.status: creating tools/misc/Makefile
> config.status: creating tools/misc/h5cc
> config.status: creating tools/gifconv/Makefile
> config.status: creating examples/Makefile
> config.status: creating doc/Makefile
> config.status: creating doc/html/Makefile
> config.status: creating doc/html/ed_libs/Makefile
> config.status: creating doc/html/ed_styles/Makefile
> config.status: creating doc/html/ADGuide/Makefile
> config.status: creating doc/html/Graphics/Makefile
> config.status: creating doc/html/Intro/Makefile
> config.status: creating doc/html/PSandPDF/Makefile
> config.status: creating doc/html/TechNotes/Makefile
> config.status: creating doc/html/Tutor/Makefile
> config.status: creating doc/html/Tutor/Graphics/Makefile
> config.status: creating doc/html/Tutor/examples/Makefile
> config.status: creating doc/html/cpplus/Makefile
> config.status: creating doc/html/fortran/Makefile
> config.status: creating c++/Makefile
> config.status: creating c++/src/Makefile
> config.status: creating c++/src/h5c++
> config.status: creating c++/test/Makefile
> config.status: creating c++/examples/Makefile
> config.status: creating fortran/Makefile
> config.status: creating fortran/src/h5fc
> config.status: creating fortran/src/H5fortran_types.f90
> config.status: creating fortran/src/libhdf5_fortran.settings
> config.status: creating fortran/src/Makefile
> config.status: creating fortran/test/Makefile
> config.status: creating fortran/testpar/Makefile
> config.status: creating fortran/examples/Makefile
> config.status: creating hl/Makefile
> config.status: creating hl/src/Makefile
> config.status: creating hl/test/Makefile
> config.status: creating hl/fortran/Makefile
> config.status: creating hl/fortran/src/Makefile
> config.status: creating hl/fortran/test/Makefile
> config.status: creating src/H5config.h
> config.status: executing default-1 commands
> creating src/H5pubconf.h
> config.status: executing depfiles commands
> Configure Summary
> Compiling Options:
>                Compilation Mode:  Development
>                      C Compiler:  cc
>                          CFLAGS:   -erroff=%none -DBSD_COMP -g -xildoff
>                        CPPFLAGS:  -DH5_DEBUG_API -DH5Z_DEBUG -DH5V_DEBUG 
> -DH5T_DEBUG -DH5S_DEBUG -DH5P_DEBUG -DH5O_DEBUG -DH5MM_DEBUG -DH5I_DEBUG 
> -DH5HG_DEBUG -DH5G_DEBUG -DH5F_DEBUG -DH5E_DEBUG -DH5D_DEBUG -UNDEBUG 
> -LANG:std 
>                         LDFLAGS:  
>                      Debug Mode:  d,e,f,g,hg,i,mm,o,p,s,t,v,z
>                Shared Libraries:  No
>                Static Libraries:  No
>   Statically Linked Executables:  No
>                         Tracing:  Yes
>    Optimization Instrumentation:  Yes
> Languages:
>                             C++:  No
>                         Fortran:  No
> Features:
>                         dmalloc:  No
>           Flexible Parallel HDF:  No
>          Function Stack Tracing:  Enabled
>                            GPFS:  No
>         HDF5 v1.6 Compatibility:  No
>                         hsize_t:  Large
>          I/O filters (external):  deflate
>          I/O filters (internal):  shuffle,fletcher32,nbit,scaleoffset
>  Linux Large File Support (LFS):  Disabled
>                             MPE:  No
>                   Parallel HDF5:  No
>                             SRB:  No
>                      Stream VFD:  Enabled
>                    Threadsafety:  Disabled
>              High Level library:  Enabled
> Making all in src
> make  all-am
> source='H5.c' object='H5.lo' libtool=yes \
> DEPDIR=.deps depmode=dashXmstdout /bin/bash ../bin/depcomp \
> @LIBTOOL@ --tag=CC --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.   
> -DH5_DEBUG_API -DH5Z_DEBUG -DH5V_DEBUG -DH5T_DEBUG -DH5S_DEBUG -DH5P_DEBUG 
> -DH5O_DEBUG -DH5MM_DEBUG -DH5I_DEBUG -DH5HG_DEBUG -DH5G_DEBUG -DH5F_DEBUG 
> -DH5E_DEBUG -DH5D_DEBUG -UNDEBUG -LANG:std   -erroff=%none -DBSD_COMP -g 
> -xildoff -c -o H5.lo H5.c
> ../bin/depcomp: @LIBTOOL@: command not found
> *** Error code 127
> make: Fatal error: Command failed for target `H5.lo'
> Current working directory /home/ed/local/hdf5/src
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> Current working directory /home/ed/local/hdf5/src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> bash-3.00$ 
> 
>