swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] Fail compile swftools on 64bit ubuntu


From: Darius Pėža
Subject: [Swftools-common] Fail compile swftools on 64bit ubuntu
Date: Wed, 06 Oct 2010 16:45:10 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

Hi,

I try to compile swftools python module on ubuntu 10.10 64 bit system and fail with fallowing message:

#python setup.py build
....
...
lib/modules/swftext.c:1787: warning: ‘tag’ is used uninitialized in this function gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/freetype2 -Ilib/lame/ -Ilib/pdf/xpdf -Ilib/pdf -I/usr/include/python2.6 -c lib/modules/swftools.c -o build/temp.linux-x86_64-2.6/lib/modules/swftools.o -fPIC -Wparentheses -Wimplicit -Wreturn-type -O3 -fomit-frame-pointer -Winline -Wno-unused -Wno-strict-prototypes -DHAVE_CONFIG_H -DSWFTOOLS_DATADIR="/usr/share/swftools/"
lib/modules/swftools.c: In function ‘swf_Relocate’:
lib/modules/swftools.c:1000: warning: ‘newid’ may be used uninitialized in this function lib/modules/swftools.c:1032: warning: ‘newid’ may be used uninitialized in this function lib/modules/swftools.c:1045: warning: ‘newid’ may be used uninitialized in this function gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/freetype2 -Ilib/lame/ -Ilib/pdf/xpdf -Ilib/pdf -I/usr/include/python2.6 -c lib/rfxswf.c -o build/temp.linux-x86_64-2.6/lib/rfxswf.o -fPIC -Wparentheses -Wimplicit -Wreturn-type -O3 -fomit-frame-pointer -Winline -Wno-unused -Wno-strict-prototypes -DHAVE_CONFIG_H -DSWFTOOLS_DATADIR="/usr/share/swftools/"
In file included from lib/rfxswf.h:28,
                 from lib/rfxswf.c:28:
/usr/include/stdlib.h:473: error: conflicting types for ‘rfx_calloc_replacement’ lib/mem.h:16: note: previous declaration of ‘rfx_calloc_replacement’ was here
lib/rfxswf.c: In function ‘swf_WriteCGI’:
lib/rfxswf.c:1880: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
error: command 'gcc' failed with exit status 1

I get some error when try to compile swftools-2010-08-14-1108 version and cloned from git (10/10/06). Same source on 32bit system (ubuntu also) source compiled succesful. I compared "./configure" results, differences are only these lines

>>>>32bit
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
<<<<<64bit
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu

>>>>32bit
checking host system type... (cached) i686-pc-linux-gnu
<<<<64bit
checking host system type... (cached) x86_64-unknown-linux-gnu

>>>>32bit
checking size of void*... 4
<<<<64bit
checking size of void*... 8

Libs versions
$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3

libjpeg62-dev_6b-15ubuntu1_amd64.deb
libfreetype6-dev_2.3.11-1ubuntu2_amd64.deb
python-dev_2.6.5-0ubuntu1_all.deb
libgif-dev_4.1.6-9_amd64.deb


whole ./configure result

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-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 ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc supports lazy variable declaration... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gzip... gzip
checking host system type... (cached) x86_64-unknown-linux-gnu
checking for target system...
checking for sin in -lm... yes
checking for deflate in -lz... yes
checking for PDF_open_file in -lpdf... no
checking for jpeg_write_raw_data in -ljpeg... yes
checking for DGifOpen in -lungif... yes
checking for zzip_file_open in -lzzip... no
checking for byte order... little endian
checking whether system() can handle command substitution... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for sys/stat.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking sys/bsdtypes.h usability... no
checking sys/bsdtypes.h presence... no
checking for sys/bsdtypes.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking pdflib.h usability... no
checking pdflib.h presence... no
checking for pdflib.h... no
checking zzip/lib.h usability... no
checking zzip/lib.h presence... no
checking for zzip/lib.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for boolean... no
checking for popen... yes
checking for wcschr... yes
checking for wcsdup... yes
checking for mkstemp... yes
checking for stat... yes
checking for mmap... yes
checking for lrand48... yes
checking for rand... yes
checking for srand48... yes
checking for srand... yes
checking for bcopy... yes
checking for bzero... yes
checking for time... yes
checking for getrusage... yes
checking for mallinfo... yes
checking for open64... yes
checking for calloc... yes
checking size of signed char... 1
checking size of signed short... 2
checking size of signed... 4
checking size of signed long long... 8
checking size of void*... 8
checking for freetype-config... /usr/bin/freetype-config
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking whether we can compile the freetype test program... yes
checking for FcInit in -lfontconfig... no
checking fontconfig.h usability... no
checking fontconfig.h presence... no
checking for fontconfig.h... no
checking for fftw_plan_dft_r2c_2d in -lfftw3... no
checking fftw3.h usability... no
checking fftw3.h presence... no
checking for fftw3.h... no
checking for lame_init in -lmp3lame... no
checking lame.h usability... no
checking lame.h presence... no
checking for lame.h... no
checking whether the filesystem normalizes file names... no
checking for avifile-config... no
checking whether we can compile the avifile test program... no
checking for Python version... 2.6
checking for Python executable... python2.6
checking whether we can compile the Python test program... yes
checking for Python install path... /usr/lib/python2.6/dist-packages
checking for Python-Imaging... no
checking for ruby... no
checking for ruby's include directory... 'unknown'
checking ruby.h usability... no
checking ruby.h presence... no
checking for ruby.h... no
checking whether we should compile the ruby module... no
checking for missing libraries...
configure: creating ./config.status
config.status: creating Makefile.common
config.status: WARNING: 'Makefile.common.in' seems to ignore the --datarootdir setting
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/action/Makefile
config.status: creating src/Makefile
config.status: creating lib/pdf/Makefile
config.status: creating swfs/Makefile
config.status: creating lib/python/Makefile
config.status: creating lib/readers/Makefile
config.status: creating config.h

after make

InfoOutputDev.cc:(.text+0x1312): undefined reference to `operator new(unsigned int)' InfoOutputDev.cc:(.text+0x1352): undefined reference to `operator new(unsigned int)' InfoOutputDev.cc:(.text+0x13da): undefined reference to `operator new(unsigned int)' ../libgfxpdf.a(InfoOutputDev.o):InfoOutputDev.cc:(.text+0x141a): more undefined references to `operator new(unsigned int)' follow
../librfxswf.a(swftools.o): In function `RFXSWF_QFIX':
swftools.c:(.text+0x34): undefined reference to `__divdi3'
/usr/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [gfx.so] Error 1
make[1]: Leaving directory `/home/openerp/tmp/swftools-2010-08-14-1108/lib/python'
make: *** [all] Error 2

maybe someone know how to solve ? ;)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]