gnash-dev
[Top][All Lists]
Advanced

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

[Gnash-dev] Build error with custom ffmpeg


From: mark cox
Subject: [Gnash-dev] Build error with custom ffmpeg
Date: Sat, 24 Nov 2007 00:25:12 +1100

Hi,
I am trying to build gnash on amd64. i got all the dependencies. now i got the error below.
/usr/bin/ld: /usr/lib64/libavcodec.a(utils.o): relocation R_X86_64_32 against `first_avcodec' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libavcodec.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgnashmedia.la] Error 1
make[2]: Leaving directory `/home/markcox/repositories/cvs/gnash/libmedia'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/markcox/repositories/cvs/gnash'
make: *** [all] Error 2

My build command is
./configure --enable-debugger --enable-write --enable-cassert

I build ffmpeg from svn, could this be the problem?

output of configure below:
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 for a BSD-compatible install... /usr/bin/install -c
checking for library file name specifics... no
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make sets $(MAKE)... (cached) yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
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 ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for lt_dlinit in -lltdl... 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 how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
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 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... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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 for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
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 -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) 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... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking which extension is used for loadable modules... .so
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for the default library search path... /lib64 /usr/lib64 /usr/local/lib
checking for objdir... .libs
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen in -ldl... (cached) yes
checking for dlerror... yes
checking for _ prefix in compiled symbols... no
checking whether deplibs are loaded by dlopen... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking for error_t... yes
checking for argz_append... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for unistd.h... (cached) yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking sys/dl.h usability... no
checking sys/dl.h presence... no
checking for sys/dl.h... no
checking dld.h usability... no
checking dld.h presence... no
checking for dld.h... no
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking for string.h... (cached) yes
checking for strchr... yes
checking for strrchr... yes
checking for memcpy... yes
checking for memmove... yes
checking for strcmp... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
checking which type of library archiver we have...
configure: Configuring Gnash for native compilation
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for the gtk2 header... -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib- 2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 
checking for libgtk2 library... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage - lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
checking for the Pango Version... 1.0
checking for libpango header... -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib- 2.0/include 
checking for libpango library... -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
checking for atk/atk.h header using pkg-config... -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib- 2.0/include 
checking for libatk library... -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
checking linker --as-needed support... yes
checking for mallinfo... yes
checking for autotrace... no
checking for dirent.h that defines DIR... (cached) yes
checking for library containing opendir... (cached) none required
checking for malloc.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for sqrt in -lm... yes
checking for getpwnam in -lc... yes
checking for exp2 in -lm... yes
checking for log2 in -lm... yes
checking for trunc in -lm... yes
checking for X11 headers... -I/usr/include
checking for X11 library... -lX11 -lXinerama -lXext -lSM -lICE
checking for XInput_find_display in -lXi... yes
checking for XDisableAccessControl in -lX11... yes
checking for shm_unlink in -lrt... yes
checking for shm_open... yes
checking for shm_unlink... yes
checking for vsnprintf... yes
checking for finite... yes
checking for isfinite... no
checking whether g++ implements __PRETTY_FUNCTION__... yes
checking whether g++ implements __FUNCTION__... yes
checking whether g++ implements __func__... yes
checking for getopt... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for tzset... yes
checking for localtime_r... yes
checking whether struct tm has tm_gmtoff... yes
checking whether timezone is a long... yes
checking for sysconf... yes
checking for shmget... yes
checking for shmat... yes
checking for shmdt... yes
checking for mmap... yes
checking for memmove... (cached) yes
checking for strlcpy... no
checking for strlcat... no
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for socket... yes
checking for CreateFileMappingA... no
checking ext/hash_map usability... yes
checking ext/hash_map presence... yes
checking for ext/hash_map... yes
checking for zlib.h header using pkg-config... not found
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for libz library...
checking for jpeglib.h header using pkg-config... not found
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for libjpeg library...
checking for dejagnu.h header using pkg-config... not found
checking dejagnu.h usability... no
checking dejagnu.h presence... no
checking for dejagnu.h... no
checking dejagnu/dejagnu.h usability... no
checking dejagnu/dejagnu.h presence... no
checking for dejagnu/dejagnu.h... no
checking for dejagnu/dejagnu.h... (cached) no
checking for dejagnu.h... (cached) no
checking for fc-match... /usr/bin/fc-match
checking for fontconfig/fontconfig.h header using pkg-config... 
checking for libfontconfig library... -lfontconfig 
checking for ming-config... /usr/bin/ming-config
checking for makeswf... /usr/bin/makeswf
checking for swfmill... /usr/local/bin/swfmill
checking for swfc... /usr/bin/swfc
checking for mtasc... /usr/bin/mtasc
checking for doxygen... /usr/bin/doxygen
checking for sdl-config... /usr/bin/sdl-config
(cached) checking for xml2-config... /usr/bin/xml2-config
checking for libxml2 header... -I/usr/include/libxml2
(cached) checking for libxml2 library...  -lxml2
checking for size_t... yes
checking size of size_t... 8
checking for long... yes
checking size of long... 8
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for kde-config... /usr/bin/kde-config
checking for kde header... -I/usr/include/kde -I/usr/include/kde/kio
checking for kdeui library... /usr/lib/libkdeui
checking for kdecore library... /usr/lib/libkdecore
checking for kdeprint library... /usr/lib/libkdeprint
checking for qt header... -I/usr/include/qt3
checking for qt library... /usr/lib/libqt-mt
checking for moc... /usr/bin/moc
checking for libglib header... -I/usr/include/glib- 2.0 -I/usr/lib/glib-2.0/include 
checking for glib library... -lglib-2.0 
checking for expat.h header using pkg-config... not found
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for libexpat library...
checking for ffmpeg version... 51404
checking for libdts library... -ldts_pic 
checking for libvorbisenc library... -lvorbisenc -lvorbis -lm -logg 
checking for libavformat library... -lavformat -lavcodec -lz -la52 -lgsm -lmp3lame -lx264 -ldc1394_control -lfaac -lfaad -lvorbisenc -lraw1394 -lavutil -lvorbis -lm -logg 
checking for libavutil library... -lavutil 
checking for libtheora library... -ltheora -logg 
checking for libgsm library... no
checking for gsm_destroy in -lgsm... yes
checking for libdc1394 library... no
checking for dc1394_is_camera in -ldc1394_control... yes
checking for libswscale library... -lswscale -lavutil 
checking for AGG headers... -I/usr/include/agg2 
checking for libagg library...  -lagg_pic 
checking for curl-config... no
checking curl/curl.h usability... no
checking curl/curl.h presence... no
checking for curl/curl.h... no
checking for libcurl header... no
checking for libcurl library... no
checking whether pthreads work with -pthread... yes
checking searching for pthread library... using -lpthread
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for the Boost Version...
checking for boost header... -I/usr/include
checking for Boost libraries... -L/usr/lib64 -lboost_thread -lboost_date_time -lboost_serialization
checking for gcc architecture flag...
checking for x86 cpuid 0 output... unknown
checking for x86 cpuid 1 output... unknown
checking for gcc architecture flag... unknown
checking if -fvisibility-inlines-hidden is broken... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libmedia/Makefile
config.status: creating po/Makefile
config.status: creating libbase/Makefile
config.status: creating libgeometry/Makefile
config.status : creating server/Makefile
config.status: creating server/asobj/Makefile
config.status: creating server/vm/Makefile
config.status: creating server/parser/Makefile
config.status: creating libamf/Makefile
config.status : creating backend/Makefile
config.status: creating utilities/Makefile
config.status: creating doc/Makefile
config.status: creating doc/C/Makefile
config.status: creating doc/C/asspec/Makefile
config.status : creating doc/Doxyfile
config.status: creating testsuite/Makefile
config.status: creating testsuite/libbase/Makefile
config.status: creating testsuite/libgeometry/Makefile
config.status: creating testsuite/actionscript.all/Makefile
config.status: creating testsuite/samples/Makefile
config.status: creating testsuite/swfdec/Makefile
config.status: creating testsuite/misc-ming.all/Makefile
config.status: creating testsuite/misc-mtasc.all/Makefile
config.status: creating testsuite/misc-swfmill.all/Makefile
config.status: creating testsuite/misc-swfc.all/Makefile
config.status: creating testsuite/movies.all/Makefile
config.status: creating testsuite/server/Makefile
config.status: creating testsuite/libamf.all/Makefile
config.status: creating gui/Makefile
config.status: creating gui/Info.plist
config.status: creating extensions/Makefile
config.status: creating extensions/dejagnu/Makefile
config.status: creating extensions/mysql/Makefile
config.status: creating extensions/fileio/Makefile
config.status: creating extensions/gtk2/Makefile
config.status: creating extensions/lirc/Makefile
config.status : creating extensions/dbus/Makefile
config.status: creating extensions/metome/Makefile
config.status: creating plugin/Makefile
config.status: creating plugin/klash/Makefile
config.status: creating cygnal/Makefile
config.status: creating cygnal/ACT/Makefile
config.status: creating cygnal/ACT/test_support/Makefile
config.status: creating cygnal/ACT/unit_tests/Makefile
config.status: creating cygnal/IO/Makefile
config.status : creating cygnal/HTTP/Makefile
config.status: creating cygnal/Net/Makefile
config.status: creating cygnal/unit_tests/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status : linking ./testsuite/libbase/gnashrc.in to testsuite/libbase/gnashrc
config.status: linking ./testsuite/libbase/gnashrc-local.in to testsuite/libbase/gnashrc-local
config.status: executing depfiles commands
config.status: executing default-1 commands

Configurable options are:
        Intel 810 LOD bias hack disabled (default). Use --enable-i810-lod-bias to enable.
        MIT-SHM X extension support enabled
        POSIX Threads support enabled (default)
        DMalloc support disabled (default). Use --enable-dmalloc to enable.
        Firefox plugin enabled (default). Use --disable-nsapi to disable.
        Konqueror plugin enabled (default). Use --disable-kparts to disable
        GNOME help disabled (default). Use --enable-ghelp to enable.
        Building Cygnal media server disabled.
        Building Flash debugger support (default). Use --disable-debugger to disable.
        Top level for cross compiling support files is:
        GUI toolkits supported: kde,gtk
        Renderers supported: agg
        Media handler: ffmpeg
        Using SDL for sound handling

Configured paths for x86_64-unknown-linux-gnu are:
        DocBook document processing disabled (default)
        XML flags are: -I/usr/include/libxml2
        XML libs are:  -lxml2
        KDE flags are: -I/usr/include/kde -I/usr/include/kde/kio
        KDE libs are: -lkdeui -lkdecore -lkdeprint
        QT flags are: -I/usr/include/qt3
        QT libs are: -L/usr/lib -lqt-mt
        JPEG flags are: default include path
        JPEG libs are: -ljpeg
        GTK2 flags are: -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk- 1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12  
        GTK2 libs are: -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf- 2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
        Pango flags are: -I/usr/include/pango- 1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
        Pango libs are: -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
        GLib flags are: -I/usr/include/glib-2.0 -I/usr/lib/glib- 2.0/include  
        GLib libs are: -lglib-2.0 
        ATK flags are: -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
        ATK libs are: -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl - lglib-2.0 
        MP3 and video support enabled through ffmpeg
        FFMPEG flags are: -I/usr/local/include -I/usr/local/include
        FFMPEG libs are:  -lavcodec -lz -la52 -lgsm -lmp3lame -lx264 -ldc1394_control -lfaac -lfaad -lvorbisenc -lraw1394 -lavutil -lvorbis -lm -logg   -ldts_pic   -lvorbisenc -lvorbis -lm -logg   -lavformat -lavcodec -lz -la52 -lgsm -lmp3lame -lx264 -ldc1394_control -lfaac -lfaad -lvorbisenc -lraw1394 -lavutil -lvorbis -lm -logg   -lavutil   -ltheora -logg   -lgsm -ldc1394_control -lswscale -lavutil 
        SDL flags are: -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
        SDL libs are:  -lSDL
        Plugin will be installed in /home/markcox/.mozilla/plugins
        POSIX Threads flags are: -pthread
        POSIX Threads lib is: -lpthread
        WARNING: CURL library not found.
                 Gnash will be built without support for streaming from URLs.
                 Why not install libcurl from http://curl.haxx.se/libcurl
                 or .deb users: apt-get install libcurl3-dev
                 or .rpm users: yum install curl-devel
        AGG Pixel format is: all
        AGG flags are: -I/usr/include/agg2 
        AGG libs are:  -lagg_pic 
        BOOST flags are: -I/usr/include
        BOOST libs are: -L/usr/lib64 -lboost_thread -lboost_date_time -lboost_serialization
        BOOST Extra libs are:  -lboost_unit_test_framework
        MING version code is 00030000
        MING flags are -I/usr/include
        MING libs are -L/usr/lib -lming
        MAKESWF is /usr/bin/makeswf
        MTASC is /usr/bin/mtasc
        MTASC CLASSPATH is /usr/share/ocaml/mtasc/std
        SWFMILL is /usr/local/bin/swfmill
        SWFC is /usr/bin/swfc
        Z flags are: default include path
        Z libs are: -lz
        FreeType flags are: -I/usr/include/freetype2 
        FreeType libs are: -lfreetype -lz 
        Fontconfig flags are: 
        Fontconfig libs are: -lfontconfig 

mark


reply via email to

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