[pHash-support] pHash 0.7.2 does not start to compile on Gentoo and Ubuntu 9.10

Christoph Zauner mlistdrop at ftml.net
Tue Jan 19 05:12:04 PST 2010


Hi,

Version 0.7.2 of pHash does not start to compile on Gentoo and Ubuntu
9.10. Copying version 2.2.6b of libtool into the source directory of
pHash solved the problem for me. E.g. on Gentoo:

user at gentoobox ~/diplom/implementations/pHash-0.7.2 $ cp
/usr/share/libtool/config/ltmain.sh .

(Because Ubuntu does not ship the newer version 2.2.6b of libtool I
downloaded it's source package from http://ftp.gnu.org/gnu/libtool/ and
used it's ltmain.sh.)

I don't know that much about GNU autoconf, automake or libtool.
Therefore I can just provide this (without much doubt dirty) fix and the
report below.


Best Regards,
Christoph


Gentoo
==========

configure
----------

user at gentoobox ~/diplom/implementations/pHash-0.7.2 $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c          
checking whether build environment is sane... yes                     
checking for a thread-safe mkdir -p... /bin/mkdir -p                  
checking for gawk... gawk                                             
checking whether make sets $(MAKE)... yes                             
checking for g++... g++                                               
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 g++ accepts -g... yes                                
checking for style of include used by make... GNU                     
checking dependency style of g++... gcc3                              
checking for gcc... gcc                                               
checking whether we are using the GNU C compiler... yes               
checking whether gcc accepts -g... yes                                
checking for gcc option to accept ISO C89... none needed              
checking dependency style of gcc... gcc3                              
checking for gcj... gcj                                               
checking dependency style of gcj... gcc3                              
checking for a BSD-compatible install... /usr/bin/install -c          
checking whether ln -s works... yes                                   
checking build system type... i686-pc-linux-gnu                       
checking host system type... i686-pc-linux-gnu                        
checking for a sed that does not truncate output... /usr/bin/sed      
checking for grep that handles long lines and -e... /bin/grep         
checking for egrep... /bin/grep -E                                    
checking for fgrep... /bin/grep -F                                    
checking for ld used by gcc... /usr/i686-pc-linux-gnu/bin/ld          
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B  
checking the name lister (/usr/bin/nm -B) interface... BSD nm          
checking the maximum length of command line arguments... 1572864       
checking whether the shell understands some XSI constructs... yes      
checking whether the shell understands "+="... yes                     
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object
files... -r
checking for objdump...
objdump                                               
checking how to recognize dependent libraries...
pass_all                     
checking for ar...
ar                                                         
checking for strip...
strip                                                   
checking for ranlib...
ranlib                                                 
checking command to parse /usr/bin/nm -B output from gcc object...
ok         
checking how to run the C preprocessor... gcc
-E                              
checking for ANSI C header files...
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...
yes                                                  
checking for unistd.h...
yes                                                  
checking for dlfcn.h...
yes                                                   
checking whether we are using the GNU C++ compiler... (cached)
yes            
checking whether g++ accepts -g... (cached)
yes                               
checking dependency style of g++... (cached)
gcc3                             
checking how to run the C++ preprocessor... g++
-E                            
checking for gcj... (cached)
gcj                                              
checking dependency style of gcj... (cached)
gcc3                             
checking for objdir...
.libs                                                  
checking if gcc supports -fno-rtti -fno-exceptions...
no                      
checking for gcc option to produce PIC... -fPIC
-DPIC                         
checking if gcc PIC flag -fPIC -DPIC works...
yes                             
checking if gcc static flag -static works...
yes                              
checking if gcc supports -c -o file.o...
yes                                  
checking if gcc supports -c -o file.o... (cached)
yes                         
checking whether the gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports
shared libraries... yes
checking whether -lc should be explicitly linked in...
no                                       
checking dynamic linker characteristics... GNU/Linux
ld.so                                      
checking how to hardcode library paths into programs...
immediate                               
checking whether stripping libraries is possible...
yes                                         
checking if libtool supports shared libraries...
yes                                            
checking whether to build shared libraries...
yes                                               
checking whether to build static libraries...
yes                                               
checking for ld used by g++...
/usr/i686-pc-linux-gnu/bin/ld                                    
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld...
yes                         
checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports
shared libraries... yes
checking for g++ option to produce PIC... -fPIC
-DPIC                                           
checking if g++ PIC flag -fPIC -DPIC works...
yes                                               
checking if g++ static flag -static works...
yes                                                
checking if g++ supports -c -o file.o...
yes                                                    
checking if g++ supports -c -o file.o... (cached)
yes                                           
checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports
shared libraries... yes
checking dynamic linker characteristics... GNU/Linux
ld.so                                      
checking how to hardcode library paths into programs...
immediate                               
checking if gcj supports -fno-rtti -fno-exceptions... (cached)
no                               
checking for gcj option to produce PIC...
-fPIC                                                 
checking if gcj PIC flag -fPIC works...
yes                                                     
checking if gcj static flag -static works...
no                                                 
checking if gcj supports -c -o file.o...
yes                                                    
checking if gcj supports -c -o file.o... (cached)
yes                                           
checking whether the gcj linker (/usr/i686-pc-linux-gnu/bin/ld) supports
shared libraries... yes
checking how to hardcode library paths into programs...
immediate                               

*** Configuring image hash ***

checking CImg.h usability... yes
checking CImg.h presence... yes
checking for CImg.h... yes      

*** Configuring video Hash ***

checking whether FFmpeg is present... checking for avcodec_alloc_frame
in -lavcodec... yes
checking for av_log_set_level in -lavutil...
yes                                          
checking for av_read_frame in -lavformat...
yes                                           
checking for sws_getContext in -lswscale...
yes                                           

*** Configuring audio hash ***

checking for jpeg_read_header in -ljpeg... yes
checking for sqrt in -lm... yes               
checking for png_create_read_struct in -lpng... yes
checking for pthread_create in -lpthread... yes    
checking limits.h usability... yes                 
checking limits.h presence... yes                  
checking for limits.h... yes                       
checking for stdlib.h... (cached) yes              
checking for string.h... (cached) 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 for stdbool.h that conforms to C99... yes
checking for _Bool... no                           
checking for inline... inline                      
checking for int16_t... yes                        
checking for size_t... yes                         
checking for uint32_t... yes                       
checking for uint8_t... yes                        
checking for uint64_t... yes                       
checking for error_at_line... yes                  
checking for mremap... yes                         
checking for malloc... yes                         
checking for realloc... yes                        
checking for floor... yes                          
checking for gettimeofday... yes                   
checking for memmove... yes                        
checking for memset... yes                         
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strncasecmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating pHash.pc
config.status: creating bindings/Makefile
config.status: creating bindings/java/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
user at gentoobox ~/diplom/implementations/pHash-0.7.2 $

make
----------

user at gentoobox ~/diplom/implementations/pHash-0.7.2 $ make
make  all-recursive
make[1]: Entering directory
`/home/christoph/diplom/implementations/pHash-0.7.2'
Making all in src
make[2]: Entering directory
`/home/christoph/diplom/implementations/pHash-0.7.2/src'
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
-I..   -I/usr/local/include -DHAVE_IMAGE_HASH=1 -DHAVE_VIDEO_HASH=1
-DHAVE_AUDIO_HASH=1 -Dcimg_use_jpeg -Dcimg_use_png  -O2 -ffast-math -O3
-MT pHash.lo -MD -MP -MF .deps/pHash.Tpo -c -o pHash.lo pHash.cpp
libtool: Version mismatch error.  This is libtool 2.2.6, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.
make[2]: *** [pHash.lo] Error 63
make[2]: Leaving directory
`/home/christoph/diplom/implementations/pHash-0.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/christoph/diplom/implementations/pHash-0.7.2'
make: *** [all] Error 2
user at gentoobox ~/diplom/implementations/pHash-0.7.2 $

Version information about relevant programs
----------

   * "$ /usr/share/libtool/config/ltmain.sh --version" reports
"ltmain.sh (GNU libtool) 2.2.6b"
   * autoconf (GNU Autoconf) 2.63
   * automake (GNU automake) 1.10.2

Ubuntu 9.10
==========

configure
----------

user at ubuntubox:~/build/pHash-0.7.2$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcj... no
checking dependency style of gcj... none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... 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... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcj... gcj
checking dependency style of gcj... (cached) none
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj static flag -static works... no
checking if gcj supports -c -o file.o... no
checking if gcj supports -c -o file.o... (cached) no
checking whether the gcj linker (/usr/bin/ld) supports shared
libraries... yes
checking how to hardcode library paths into programs... immediate

*** Configuring image hash ***

checking CImg.h usability... yes
checking CImg.h presence... yes
checking for CImg.h... yes

*** Configuring video Hash ***

checking whether FFmpeg is present... checking for avcodec_alloc_frame
in -lavcodec... yes
checking for av_log_set_level in -lavutil... yes
checking for av_read_frame in -lavformat... yes
checking for sws_getContext in -lswscale... yes

*** Configuring audio hash ***

checking for jpeg_read_header in -ljpeg... yes
checking for sqrt in -lm... yes
checking for png_create_read_struct in -lpng... no
checking for pthread_create in -lpthread... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) 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 for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for inline... inline
checking for int16_t... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for uint64_t... yes
checking for error_at_line... yes
checking for mremap... yes
checking for malloc... yes
checking for realloc... yes
checking for floor... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strncasecmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating pHash.pc
config.status: creating bindings/Makefile
config.status: creating bindings/java/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
user at ubuntubox:~/build/pHash-0.7.2$

make
----------

user at ubuntubox:~/build/pHash-0.7.2$ make
make  all-recursive
make[1]: Entering directory `/home/christoph/build/pHash-0.7.2'
Making all in src
make[2]: Entering directory `/home/christoph/build/pHash-0.7.2/src'
/bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
-I..   -I/usr/local/include -DHAVE_IMAGE_HASH=1 -DHAVE_VIDEO_HASH=1
-DHAVE_AUDIO_HASH=1 -Dcimg_use_jpeg  -O2 -ffast-math -O3 -MT pHash.lo
-MD -MP -MF .deps/pHash.Tpo -c -o pHash.lo pHash.cpp
libtool: Version mismatch error.  This is libtool 2.2.6, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.
make[2]: *** [pHash.lo] Error 63
make[2]: Leaving directory `/home/christoph/build/pHash-0.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/christoph/build/pHash-0.7.2'
make: *** [all] Error 2
user at ubuntubox:~/build/pHash-0.7.2$

Version information about relevant programs
----------

   * "$ /usr/share/libtool/config/ltmain.sh --version" reports
"ltmain.sh (GNU libtool) 2.2.6"




More information about the pHash-support mailing list