Richard,

Can you please elaborate on your fix? I'm getting this same type of error on my system. I did have to add a CFLAG at configure time because for some reason the configure scripts were failing to handle xvid support because they didn't include -lpthread. However, I'm not sure what CFLAGS you removed, and I'm guessing that it was only for the linkage of tcmodinfo related files?

-Mishehu Mashehu

richard cinema wrote:
ok, problem solved by removing the CFLAGS stuff.

On Wed, Feb 4, 2009 at 10:48 AM, richard cinema <richard.cin...@gmail.com <mailto:richard.cin...@gmail.com>> wrote:

    my system specs at the bottom.

    problem: got ld returned 1 exit status error when compiling the 1.1.0
    release(i can't get into cvs because of login failed). seems ld get
    confusing whenl linking tcmodinfo.


    detailed error msg,( this error still exist when compiling without
    -march=k8 -mtune=k8):

    transcode/transcode-1.1.0/tools'
    /bin/bash ../libtool --tag=CC   --mode=link gcc  -Wall
    -Wstrict-prototypes -Wmissing-prototypes -march=k8 -mtune=k8
    -export-dynamic  -o tcmodinfo tcmodinfo-tcmodinfo.o tcmodinfo-tcstub.o
     ../aclib/libac.la <http://libac.la> ../avilib/libavi.la
    <http://libavi.la> ../avilib/libwav.la <http://libwav.la>
    ../libtc/libtc.la <http://libtc.la> ../libtcvideo/libtcvideo.la
    <http://libtcvideo.la> -lpthread -lm -lm -lz
    -ldl
    gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -march=k8 -mtune=k8
    -o tcmodinfo tcmodinfo-tcmodinfo.o tcmodinfo-tcstub.o
    -Wl,--export-dynamic  ../aclib/.libs/libac.a ../avilib/.libs/libavi.a
    ../avilib/.libs/libwav.a ../libtc/.libs/libtc.a
    ../libtcvideo/.libs/libtcvideo.a -lpthread -lm -lz -ldl
    ../libtc/.libs/libtc.a(tcframes.o): In function `tc_new_video_frame':
    tcframes.c:(.text+0x475): multiple definition of `tc_new_video_frame'
    tcmodinfo-tcstub.o:tcstub.c:(.text+0x2f6): first defined here
    ../libtc/.libs/libtc.a(tcframes.o): In function `tc_new_audio_frame':
    tcframes.c:(.text+0x51a): multiple definition of `tc_new_audio_frame'
    tcmodinfo-tcstub.o:tcstub.c:(.text+0x300): first defined here
    ../libtc/.libs/libtc.a(tcframes.o): In function `tc_del_video_frame':
    tcframes.c:(.text+0x73b): multiple definition of `tc_del_video_frame'
    tcmodinfo-tcstub.o:tcstub.c:(.text+0x319): first defined here
    ../libtc/.libs/libtc.a(tcframes.o): In function `tc_del_audio_frame':
    tcframes.c:(.text+0x78a): multiple definition of `tc_del_audio_frame'
    tcmodinfo-tcstub.o:tcstub.c:(.text+0x31e): first defined here
    collect2: ld returned 1 exit status


    ffmpeg is a svn build FFmpeg version SVN-r16513

    FFmpeg version SVN-r16513, Copyright (c) 2000-2009 Fabrice
    Bellard, et al.
     configuration: --prefix=/usr --enable-shared --enable-libmp3lame
    --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads
    --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab
    --enable-libgsm --enable-libx264 --enable-libtheora --enable-swscale
    --enable-libdc1394 --enable-nonfree --disable-stripping
    --enable-avfilter --enable-libdirac --disable-decoder=libdirac
    --enable-libschroedinger --disable-encoder=libschroedinger
    --enable-avfilter-lavf --enable-libamr-nb --enable-libamr-wb
    --enable-vdpau
     libavutil     49.12. 0 / 49.14. 0
     libavcodec    52.10. 0 / 52.11. 0
     libavformat   52.23. 1 / 52.25. 0
     libavdevice   52. 1. 0 / 52. 1. 0
     libavfilter    0. 1. 0 /  0. 3. 0
     libswscale     0. 6. 1 /  0. 6. 1
     libpostproc   51. 2. 0 / 51. 2. 0
     built on Jan 10 2009 12:04:07, gcc: 4.3.2


    and my-configure-output.txt:

    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 a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of
    Makefiles... no
    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 style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking whether gcc and cc understand -c and -o together... yes
    checking how to run the C preprocessor... gcc -E
    checking for gawk... (cached) gawk
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking dependency style of gcc... gcc3
    checking for gawk... /usr/bin/gawk
    checking for dlopen in -ldl... yes
    checking for dlopen... yes
    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 /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking how to recognize dependent libraries... pass_all
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking the maximum length of command line arguments... 98304
    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) 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... (cached) 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... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    appending configuration tag "F77" to libtool
    checking for standard header files... yes
    checking endian.h usability... yes
    checking endian.h presence... yes
    checking for endian.h... yes
    checking malloc.h usability... yes
    checking malloc.h presence... yes
    checking for malloc.h... yes
    checking sys/mman.h usability... yes
    checking sys/mman.h presence... yes
    checking for sys/mman.h... yes
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking whether byte ordering is bigendian... no
    checking __attribute__((...)) support... yes
    checking __attribute__((aligned())) support... 64
    checking stdlib.h usability... yes
    checking stdlib.h presence... yes
    checking for stdlib.h... yes
    checking for GNU libc compatible malloc... yes
    checking return type of signal handlers... void
    checking for getopt_long_only... yes
    checking for getpagesize... yes
    checking for gettimeofday... yes
    checking for mmap... yes
    checking for strlcat... no
    checking for strlcpy... no
    checking for strtof... yes
    checking for vsscanf... yes
    checking for sysconf(_SC_PAGESIZE)... checking for special C compiler
    options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking for pthreads in -lpthread... yes
    checking for build architecture... Intel Pentium architecture (IA32)
    checking if $CC groks MMX inline assembly... yes
    checking if $CC groks 3DNow inline assembly... yes
    checking if $CC groks SSE inline assembly... yes
    checking if $CC can handle SSE2 inline asm... yes
    checking if $CC groks AltiVec inline assembly... no
    checking if $CC groks AltiVec C extensions... no
    checking if linker needs -framework vecLib...
    checking for pkg-config... /usr/bin/pkg-config
    checking for X... libraries , headers
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking for XvQueryExtension in -lXv... yes
    checking for XShmQueryExtension in -lX11... yes
    checking X11/Xaw/Simple.h usability... yes
    checking X11/Xaw/Simple.h presence... yes
    checking for X11/Xaw/Simple.h... yes
    checking for XpmFreeAttributes in -lXpm... yes
    checking for gzopen in -lz... yes
    checking for sin in -lm... yes
    checking for pkgconfig support for libavcodec... yes
    checking how to determine LIBAVCODEC_CFLAGS... pkg-config
    checking libavcodec/avcodec.h usability... yes
    checking libavcodec/avcodec.h presence... yes
    checking for libavcodec/avcodec.h... yes
    checking how to determine LIBAVCODEC_LIBS... pkg-config
    checking for avcodec_thread_init in -lavcodec... yes
    VER=52.11.0
    BUILD=3410688
    checking for pkgconfig support for libavformat... yes
    checking how to determine LIBAVFORMAT_CFLAGS... pkg-config
    checking libavformat/avformat.h usability... yes
    checking libavformat/avformat.h presence... yes
    checking for libavformat/avformat.h... yes
    checking how to determine LIBAVFORMAT_LIBS... pkg-config
    checking for av_register_all in -lavformat... yes
    VER=52.25.0
    BUILD=3414272
    checking for pkgconfig support for libmpeg2... no
    checking how to determine LIBMPEG2_CFLAGS... default
    checking mpeg2dec/mpeg2.h usability... yes
    checking mpeg2dec/mpeg2.h presence... yes
    checking for mpeg2dec/mpeg2.h... yes
    checking how to determine LIBMPEG2_LIBS... default
    checking for mpeg2_init in -lmpeg2... yes
    checking enable new or experimental components... no
    checking enable deprecated components... no
    checking for internal static framebuffer support... yes
    checking whether v4l support is requested... yes
    checking linux/videodev.h usability... yes
    checking linux/videodev.h presence... yes
    checking for linux/videodev.h... yes
    checking for linux/videodev2.h... yes
    checking for struct v4l2_buffer in videodev2.h... no
    checking whether bktr support is requested... no
    checking whether sunau support is requested... no
    checking whether OSS support is requested... yes
    checking sys/soundcard.h usability... yes
    checking sys/soundcard.h presence... yes
    checking for sys/soundcard.h... yes
    checking whether ALSA support is requested... yes
    checking alsa/asoundlib.h usability... yes
    checking alsa/asoundlib.h presence... yes
    checking for alsa/asoundlib.h... yes
    checking encore2.h usability... no
    checking encore2.h presence... no
    checking for encore2.h... no
    checking whether libpostproc support is requested... yes
    checking for pkgconfig support for libpostproc... yes
    checking how to determine LIBPOSTPROC_CFLAGS... pkg-config
    checking libpostproc/postprocess.h usability... yes
    checking libpostproc/postprocess.h presence... yes
    checking for libpostproc/postprocess.h... yes
    checking how to determine LIBPOSTPROC_LIBS... pkg-config
    checking for pp_postprocess in -lpostproc... yes
    checking whether freetype2 support is requested... yes
    checking for pkgconfig support for freetype2... no
    checking for freetype-config... /usr/bin/freetype-config
    checking how to determine FREETYPE2_CFLAGS... /usr/bin/freetype-config
    checking ft2build.h usability... yes
    checking ft2build.h presence... yes
    checking for ft2build.h... yes
    checking how to determine FREETYPE2_LIBS... /usr/bin/freetype-config
    checking for FT_Init_FreeType in -lfreetype... yes
    checking whether lame support is requested... yes
    checking for pkgconfig support for lame... no
    checking how to determine LAME_CFLAGS... default
    checking how to determine LAME_LIBS... default
    checking for lame_init in -lmp3lame... yes
    checking lame/lame.h usability... yes
    checking lame/lame.h presence... yes
    checking for lame/lame.h... yes
    checking lame version... 398
    checking whether xvid support is requested... yes
    checking for pkgconfig support for xvid... no
    checking how to determine xvid_CFLAGS... default
    checking xvid.h usability... yes
    checking xvid.h presence... yes
    checking for xvid.h... yes
    checking how to determine xvid_LIBS... default
    checking for xvid_global in -lxvidcore... yes
    checking xvid version >= 1.0... yes
    checking whether x264 support is requested... yes
    checking for pkgconfig support for x264... yes
    checking how to determine X264_CFLAGS... pkg-config
    checking x264.h usability... yes
    checking x264.h presence... yes
    checking for x264.h... yes
    checking how to determine X264_LIBS... pkg-config
    checking for x264_param_default in -lx264... yes
    checking x264 version... 65
    checking whether ogg support is requested... yes
    checking for pkgconfig support for ogg... yes
    checking how to determine OGG_CFLAGS... pkg-config
    checking ogg/ogg.h usability... yes
    checking ogg/ogg.h presence... yes
    checking for ogg/ogg.h... yes
    checking how to determine OGG_LIBS... pkg-config
    checking for ogg_stream_init in -logg... yes
    checking whether vorbis support is requested... yes
    checking for pkgconfig support for vorbis... yes
    checking how to determine VORBIS_CFLAGS... pkg-config
    checking vorbis/codec.h usability... yes
    checking vorbis/codec.h presence... yes
    checking for vorbis/codec.h... yes
    checking how to determine VORBIS_LIBS... pkg-config
    checking for vorbis_info_init in -lvorbis... yes
    checking whether theora support is requested... yes
    checking for pkgconfig support for theora... yes
    checking how to determine THEORA_CFLAGS... pkg-config
    checking theora/theora.h usability... yes
    checking theora/theora.h presence... yes
    checking for theora/theora.h... yes
    checking how to determine THEORA_LIBS... pkg-config
    checking for theora_info_init in -ltheora... yes
    checking whether libdvdread support is requested... yes
    checking for pkgconfig support for libdvdread... no
    checking how to determine LIBDVDREAD_CFLAGS... default
    checking how to determine LIBDVDREAD_LIBS... default
    checking for DVDOpen in -ldvdread... yes
    checking dvdread/dvd_reader.h usability... yes
    checking dvdread/dvd_reader.h presence... yes
    checking for dvdread/dvd_reader.h... yes
    checking whether pvm3 support is requested... no
    checking whether libdv support is requested... yes
    checking for pkgconfig support for libdv... yes
    checking how to determine LIBDV_CFLAGS... pkg-config
    checking libdv/dv.h usability... yes
    checking libdv/dv.h presence... yes
    checking for libdv/dv.h... yes
    checking how to determine LIBDV_LIBS... pkg-config
    checking for dv_encoder_new in -ldv... yes
    checking whether libquicktime support is requested... yes
    checking for pkgconfig support for libquicktime... yes
    checking how to determine LIBQUICKTIME_CFLAGS... pkg-config
    checking quicktime.h usability... yes
    checking quicktime.h presence... yes
    checking for quicktime.h... yes
    checking how to determine LIBQUICKTIME_LIBS... pkg-config
    checking for quicktime_open in -lquicktime... yes
    checking for lqt_encode_video in -lquicktime... yes
    checking whether lzo support is requested... yes
    checking for pkgconfig support for lzo... no
    checking how to determine LZO_CFLAGS... default
    checking lzo/lzo1x.h usability... yes
    checking lzo/lzo1x.h presence... yes
    checking for lzo/lzo1x.h... yes
    checking how to determine LZO_LIBS... default
    checking for lzo_version in -llzo2... yes
    checking whether a52 support is requested... yes
    checking for pkgconfig support for a52... no
    checking how to determine A52_CFLAGS... default
    checking a52dec/a52.h usability... yes
    checking a52dec/a52.h presence... yes
    checking for a52dec/a52.h... yes
    checking how to determine A52_LIBS... default
    checking for a52_init in -la52... yes
    checking whether faac support is requested... yes
    checking for pkgconfig support for faac... no
    checking how to determine FAAC_CFLAGS... default
    checking faac.h usability... yes
    checking faac.h presence... yes
    checking for faac.h... yes
    checking how to determine FAAC_LIBS... default
    checking for faacEncGetVersion in -lfaac... yes
    checking whether libxml2 support is requested... yes
    checking for pkgconfig support for libxml2... yes
    checking for xml2-config... /usr/bin/xml2-config
    checking how to determine LIBXML2_CFLAGS... pkg-config
    checking libxml/parser.h usability... yes
    checking libxml/parser.h presence... yes
    checking for libxml/parser.h... yes
    checking how to determine LIBXML2_LIBS... pkg-config
    checking for xmlStrcmp in -lxml2... yes
    checking whether ibp and lors support is requested... no
    checking whether mjpegtools support is requested... yes
    checking for pkgconfig support for mjpegtools... yes
    checking for mjpegtools-config... no
    checking how to determine MJPEGTOOLS_CFLAGS... pkg-config
    checking mjpegtools/yuv4mpeg.h usability... yes
    checking mjpegtools/yuv4mpeg.h presence... yes
    checking for mjpegtools/yuv4mpeg.h... yes
    checking how to determine MJPEGTOOLS_LIBS... pkg-config
    checking for y4m_si_get_height in -lmjpegutils... yes
    checking whether sdl support is requested... yes
    checking for pkgconfig support for sdl... no
    checking for sdl-config... /usr/bin/sdl-config
    checking how to determine SDL_CFLAGS... /usr/bin/sdl-config
    checking SDL.h usability... yes
    checking SDL.h presence... yes
    checking for SDL.h... yes
    checking how to determine SDL_LIBS... /usr/bin/sdl-config
    checking for SDL_Init in -lSDL... yes
    checking whether imagemagick support is requested... yes
    checking for pkgconfig support for imagemagick... yes
    checking how to determine IMAGEMAGICK_CFLAGS... pkg-config
    checking magick/api.h usability... yes
    checking magick/api.h presence... yes
    checking for magick/api.h... yes
    checking how to determine IMAGEMAGICK_LIBS... pkg-config
    checking wand/magick-wand.h usability... yes
    checking wand/magick-wand.h presence... yes
    checking for wand/magick-wand.h... yes
    checking whether libjpegmmx support is requested... no
    checking whether libjpeg support is requested... yes
    checking for pkgconfig support for libjpeg... no
    checking how to determine LIBJPEG_CFLAGS... default
    checking jpeglib.h usability... yes
    checking jpeglib.h presence... yes
    checking for jpeglib.h... yes
    checking how to determine LIBJPEG_LIBS... default
    checking for jpeg_CreateCompress in -ljpeg... yes
    checking whether bsdav support is requested... no
    checking whether iconv support is requested... yes
    checking for pkgconfig support for iconv... no
    checking how to determine ICONV_CFLAGS... default
    checking iconv.h usability... yes
    checking iconv.h presence... yes
    checking for iconv.h... yes
    checking how to determine ICONV_LIBS... default
    checking for iconv_open in -liconv... no
    checking for libiconv_open in -liconv... no
    checking for iconv_open in -lc... yes
    checking for PV3 support... no
    checking for NuppelVideo support... no
    checking if gcc supports -Wall -Wstrict-prototypes
    -Wmissing-prototypes -march=k8 -mtune=k8 flags... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating aclib/Makefile
    config.status: creating avilib/Makefile
    config.status: creating docs/Makefile
    config.status: creating docs/html/Makefile
    config.status: creating docs/man/Makefile
    config.status: creating docs/pvm3/Makefile
    config.status: creating docs/tech/Makefile
    config.status: creating docs/tech/html/Makefile
    config.status: creating encode/Makefile
    config.status: creating export/Makefile
    config.status: creating filter/Makefile
    config.status: creating filter/divxkey/Makefile
    config.status: creating filter/extsub/Makefile
    config.status: creating filter/preview/Makefile
    config.status: creating filter/subtitler/Makefile
    config.status: creating filter/tomsmocomp/Makefile
    config.status: creating filter/yuvdenoise/Makefile
    config.status: creating filter/stabilize/Makefile
    config.status: creating import/Makefile
    config.status: creating import/nuv/Makefile
    config.status: creating import/v4l/Makefile
    config.status: creating multiplex/Makefile
    config.status: creating libdldarwin/Makefile
    config.status: creating libtc/Makefile
    config.status: creating libtcaudio/Makefile
    config.status: creating libtcvideo/Makefile
    config.status: creating pvm3/Makefile
    config.status: creating src/Makefile
    config.status: creating testsuite/Makefile
    config.status: creating tools/Makefile
    config.status: creating transcode.spec
    config.status: creating filter/parse_csv.awk
    config.status: creating filter/filter_list.awk
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands

    ----------------------------------------
    Summary for transcode 1.1.0:
    ----------------------------------------

    core options
    ----------------------------------------
    enable experimental code       no
    enable deprecated code         no
    static AV-frame buffering      yes
    A52 default decoder            yes

    ffmpeg libraries
    ----------------------------------------
    libavcodec  build              3410688
    libavcodec  version            52.11.0
    libavformat build              3414272
    libavformat version            52.25.0

    hardware support
    ----------------------------------------
    v4l/v4l2                       yes
    ALSA                           yes
    OSS                            yes
    bktr                           no
    sunau                          no

    optional module support
    ----------------------------------------
    PV3                            no
    NuppelVideo                    no

    optional package support
    ----------------------------------------
    IBP (libxio)                   no
    X11                            yes
       Xv      extension          yes
       Xshm    extension          yes
       Xaw     library            yes
       Xpm     library            yes

    libmpeg2                       yes
    libpostproc                    yes
    freetype2                      yes
    lame                           yes
    xvid                           yes
    x264                           yes
    ogg                            yes
    vorbis                         yes
    theora                         yes
    libdvdread                     yes
    pvm3                           no
    libdv                          yes
    libquicktime                   yes
    lzo                            yes
    a52                            yes
    faac                           yes
    libxml2                        yes
    mjpegtools                     yes
    sdl                            yes
    imagemagick                    yes
    libjpeg                        yes
    bsdav                          no
    iconv                          yes



Reply via email to