From: Florent B. <fb...@bi...> - 2005-01-02 10:53:36
|
Hello, I've some problems while trying to configure then make libpano 2.7.0.8. The "./configure" work fine (just a little warning), but the make fails. I've found a way to "fix" it: =2E/configure sed -e 's/-I\/usr\/include\/linux //' config.status > config.tmp && cat=20 config.tmp > config.status && rm config.tmp =2E/config.status make Sed's command replace the line=20 s,@JAVA_FLAGS@,-I/usr/include -I/usr/include/linux -DHasJava,;t t by the line s,@JAVA_FLAGS@,-I/usr/include -DHasJava,;t t in config.status. I don't think it's a good way to do, but it's the only way that I've found = for=20 now. I've the same problem with the cvs version. Here is my "./configure" and "make" (without the "fix"): florent@jupiter:~/debiandev/libpano12-2.7.0.8$ ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes 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 for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all 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 dlfcn.h usability... yes checking dlfcn.h presence... yes 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++... gcc3 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 the maximum length of command line arguments... 32768 checking command to parse /usr/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 static flag works... yes 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 supports -c -o file.o... 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 configure: creating libtool appending configuration tag "CXX" to libtool 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 checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... 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 whether stripping libraries is possible... yes 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... yes checking for g77 option to produce PIC... -fPIC checking if g77 PIC flag -fPIC works... yes checking if g77 supports -c -o file.o... yes checking whether the g77 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 whether stripping libraries is possible... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for JAVA installation at ... configure: java home set to /usr checking jni.h usability... no checking jni.h presence... yes configure: WARNING: jni.h: present but cannot be compiled configure: WARNING: jni.h: check for missing prerequisite headers? configure: WARNING: jni.h: see the Autoconf documentation configure: WARNING: jni.h: section "Present But Cannot Be Compiled" configure: WARNING: jni.h: proceeding with the preprocessor's result configure: WARNING: jni.h: in the future, the compiler will take precedence configure: WARNING: ## --------------------------------- ## configure: WARNING: ## Report this to BUG-REPORT-ADDRESS ## configure: WARNING: ## --------------------------------- ## checking for jni.h... yes checking if JAVA package is complete... yes checking for ZLIB support ... configure: zlib home set to /usr checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for inflate in -lz... yes checking if ZLIB package is complete... yes checking for PNG support ... configure: png home set to /usr checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_get_io_ptr in -lpng... yes checking if PNG package is complete... yes checking for JPEG support ... configure: jpeg home set to /usr checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes checking for jpeg_read_header in -ljpeg... yes checking for JPEG library is version 6b or later... yes checking if JPEG package is complete... yes checking for TIFF support ... configure: tiff home set to /usr checking tiff.h usability... yes checking tiff.h presence... yes checking for tiff.h... yes checking for TIFFOpen in -ltiff... yes checking if TIFF package is complete... yes checking for ANSI C header files... (cached) yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for size_t... yes checking for working volatile... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for floor... no checking for memset... yes checking for pow... no checking for setlocale... yes checking for sqrt... no checking for strrchr... yes configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating tools/Makefile config.status: creating m4/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands libpano is configured as follows. Please verify that this configuration matches your expectations. Host system type : i686-pc-linux-gnu Option Value =2D------------------------------------------------------------------------ Shared libraries --enable-shared=3Dyes Static libraries --enable-static=3Dyes JPEG --with-jpeg=3D have_jpeg =3D yes PNG --with-png=3D have_png =3D yes TIFF --with-tiff=3D have_tiff =3D yes ZLIB --with-zlib=3D have_zlib =3D yes JAVA --with-java=3D have_java =3D yes Options used to compile and link: PREFIX =3D /usr VERSION =3D 2.7.0.8 CC =3D gcc CFLAGS =3D -g -O2 CPPFLAGS =3D DEFS =3D -DHAVE_CONFIG_H LDFLAGS =3D LIBS =3D CXX =3D g++ CXXFLAGS =3D -g -O2 JPEG_FLAGS =3D -I/usr/include -DHasJPEG LIB_JPEG =3D -L/usr/lib -ljpeg PNG_FLAGS =3D -I/usr/include -DHasPNG LIB_PNG =3D -L/usr/lib -lpng TIFF_FLAGS =3D -I/usr/include -DHasTIFF LIB_TIFF =3D -L/usr/lib -ltiff ZLIB_FLAGS =3D -I/usr/include -DHasZLIB LIB_ZLIB =3D -L/usr/lib -lz JAVA_FLAGS =3D -I/usr/include -I/usr/include/linux -DHasJava florent@jupiter:~/debiandev/libpano12-2.7.0.8$ make make all-recursive make[1]: Entering directory `/home/florent/debiandev/libpano12-2.7.0.8' Making all in m4 make[2]: Entering directory `/home/florent/debiandev/libpano12-2.7.0.8/m4' make[2]: Rien =E0 faire pour =AB all =BB. make[2]: Leaving directory `/home/florent/debiandev/libpano12-2.7.0.8/m4' Making all in . make[2]: Entering directory `/home/florent/debiandev/libpano12-2.7.0.8' if /bin/sh ./libtool --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -I. -I. =20 =2DI/usr/include -I/usr/include/linux -DHasJava -I/usr/include -DHasJPEG=20 =2DI/usr/include -DHasPNG -I/usr/include -DHasTIFF -I/usr/include -DHasZLIB= =20 =2DD__Ansi__=3D1 -g -O2 -MT filter.lo -MD -MP -MF ".deps/filter.Tpo" -c = =2Do=20 filter.lo filter.c; \ then mv -f ".deps/filter.Tpo" ".deps/filter.Plo"; else rm -f=20 ".deps/filter.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -I/usr/include/linux -DHasJ= ava=20 =2DI/usr/include -DHasJPEG -I/usr/include -DHasPNG -I/usr/include -DHasTIFF= =20 =2DI/usr/include -DHasZLIB -D__Ansi__=3D1 -g -O2 -MT filter.lo -MD -MP=20 =2DMF .deps/filter.Tpo -c filter.c -fPIC -DPIC -o .libs/filter.o In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from filter.h:25, from filter.c:23: /usr/include/gconv.h:72: error: parse error before "size_t" /usr/include/gconv.h:88: error: parse error before "size_t" /usr/include/gconv.h:97: error: parse error before "size_t" /usr/include/gconv.h:174: error: parse error before "size_t" /usr/include/gconv.h:177: error: parse error before '}' token In file included from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from filter.h:25, from filter.c:23: /usr/include/_G_config.h:47: error: field `__cd' has incomplete type /usr/include/_G_config.h:50: error: field `__cd' has incomplete type In file included from /usr/include/stdio.h:72, from filter.h:25, from filter.c:23: /usr/include/libio.h:351: error: parse error before "size_t" /usr/include/libio.h:360: error: parse error before "size_t" /usr/include/libio.h:468: error: parse error before "_IO_sgetn" /usr/include/libio.h:468: error: parse error before "size_t" In file included from filter.h:25, from filter.c:23: /usr/include/stdio.h:302: error: parse error before "size_t" /usr/include/stdio.h:309: error: parse error before "size_t" /usr/include/stdio.h:351: error: parse error before "size_t" /usr/include/stdio.h:355: error: parse error before "size_t" /usr/include/stdio.h:603: error: parse error before "fread" /usr/include/stdio.h:603: error: parse error before "size_t" /usr/include/stdio.h:609: error: parse error before "fwrite" /usr/include/stdio.h:609: error: parse error before "size_t" /usr/include/stdio.h:631: error: parse error before "fread_unlocked" /usr/include/stdio.h:631: error: parse error before "size_t" /usr/include/stdio.h:633: error: parse error before "fwrite_unlocked" /usr/include/stdio.h:633: error: parse error before "size_t" In file included from filter.h:28, from filter.c:23: /usr/include/stdlib.h:137: error: parse error before "__ctype_get_mb_cur_ma= x" In file included from /usr/include/sys/types.h:266, from /usr/include/stdlib.h:416, from filter.h:28, from filter.c:23: /usr/include/bits/pthreadtypes.h:50: error: parse error before "size_t" /usr/include/bits/pthreadtypes.h:53: error: parse error before "__stacksize" In file included from filter.h:28, from filter.c:23: /usr/include/stdlib.h:433: error: parse error before "size_t" /usr/include/stdlib.h:462: error: parse error before "size_t" /usr/include/stdlib.h:556: error: parse error before "__size" /usr/include/stdlib.h:558: error: parse error before "__nmemb" /usr/include/stdlib.h:567: error: parse error before "size_t" In file included from /usr/include/stdlib.h:578, from filter.h:28, from filter.c:23: /usr/include/alloca.h:33: error: parse error before "__size" In file included from filter.h:28, from filter.c:23: /usr/include/stdlib.h:583: error: parse error before "__size" /usr/include/stdlib.h:739: error: parse error before "size_t" /usr/include/stdlib.h:743: error: parse error before "size_t" /usr/include/stdlib.h:812: error: parse error before "size_t" /usr/include/stdlib.h:815: error: parse error before "size_t" /usr/include/stdlib.h:819: error: parse error before "size_t" /usr/include/stdlib.h:822: error: parse error before "size_t" /usr/include/stdlib.h:830: error: parse error before "size_t" /usr/include/stdlib.h:833: error: parse error before '*' token /usr/include/stdlib.h:837: error: parse error before "wchar_t" /usr/include/stdlib.h:841: error: parse error before "mbstowcs" /usr/include/stdlib.h:841: error: parse error before '*'=20 /usr/include/stdlib.h:844: error: parse error before "wcstombs" /usr/include/stdlib.h:845: error: parse error before '*' token filter.c: In function `ThreeToFourBPP': filter.c:640: error: `UCHAR_MAX' undeclared (first use in this function) filter.c:640: error: (Each undeclared identifier is reported only once filter.c:640: error: for each function it appears in.) filter.c:653: error: `USHRT_MAX' undeclared (first use in this function) filter.c: At top level: /usr/include/gconv.h:176: warning: array `__data' assumed to have one eleme= nt make[2]: *** [filter.lo] Erreur 1 make[2]: Leaving directory `/home/florent/debiandev/libpano12-2.7.0.8' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/home/florent/debiandev/libpano12-2.7.0.8' make: *** [all] Erreur 2 Just a last little question : are the users supposed to use makefile.someth= ing=20 or ./configure && make && make install to build libpano (it's very importan= t=20 for me, because I want to make a Debian package of libpano, and I don't wan= t=20 to use a deprecated way to build the package) ? Thanks. =2D-=20 =46lorent P.S. I'm french, so please excuse me if I don't speak english very well. |