Menu

#35 CVS - [mjpeg_simd_helper] Error

closed
nobody
None
5
2007-12-07
2006-05-30
Anonymous
No

I had to go with CVS 1.9.0 because of release 1.8.0
doing this:

lav_io.c: In function `lav_fileno':
lav_io.c:1370: error: dereferencing pointer to
incomplete type
make[1]: *** [liblavfile_la-lav_io.lo] Error 1

I've seen the error a few times on google but none had
an answer. Anywho... CVS now bombs with this:

gcc -mcpu=740 -mtune=740 -pipe -O2 -pthread
-DHAVE_ALTIVEC_H=1 -maltivec -mabi=altivec -Wall
-Wunused -o .libs/mjpeg_simd_helper mjpeg_simd_helper.o
../utils/.libs/libmjpegutils.so
../mpeg2enc/.libs/libmpeg2encpp.so
/usr/lib/libstdc++.so
-L/tmp/gcc-build/powerpc-unknown-linux-gnu/libstdc++-v3/src
-L/tmp/gcc-build/powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/tmp/gcc-build/gcc
-L/usr/lib/gcc/powerpc-unknown-linux-gnu/../.. -lm
../mpeg2enc/.libs/libmpeg2encpp.so: undefined reference
to `ImagePlanes::ImagePlanes(EncoderParams&)'
../mpeg2enc/.libs/libmpeg2encpp.so: undefined reference
to `ImagePlanes::~ImagePlanes()'
collect2: ld returned 1 exit status
make[2]: *** [mjpeg_simd_helper] Error 1
make[2]: Leaving directory
`/root/Desktop/mjpeg_play/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/mjpeg_play'
make: *** [all] Error 2

So.... Guess I'll forsake mjpegtools for now, unless
ofcourse someone offers a fix.. Thanks for your time.

Jon

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Hmmm... Look at it trying to link against an ancient
    gcc-build directory in /tmp... What's up with that? :-(

    This is a DIY PPC build with a total of 278 packages
    installed and not ONCE have I ever had a problem with this.

    So, I'm still inclined to think this is a problem with CVS
    mjpegtools...

     
  • Bernhard Praschinger

    Logged In: YES
    user_id=155293

    On which system do you try to build the mjpegtools ?
    Which compiler do you use ?

    Can you add the output of the configure script to your next
    answer. That will help much in finding the problem.

     
  • Nobody/Anonymous

    Logged In: NO

    Thanks for your help. Much appreciated.
    It's a DIY Linux build on a G3 Powerbook Pismo running:

    gcc-3.4.6
    glibc-2.3.6
    binutils-2.16.1

    CVS pulled on 6-6-2006 results with this:

    checking build system type... powerpc-unknown-linux-gnu
    checking host system type... powerpc-unknown-linux-gnu
    checking target system type... powerpc-unknown-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of
    Makefiles... no
    checking for style of include used by make... 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 ANSI C... none needed
    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... no
    checking for f77... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... no
    checking for fort... no
    checking for xlf95... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for gfortran... 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) 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++ static flag -static 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
    appending configuration tag "F77" to libtool
    checking for gawk... (cached) gawk
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    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 for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking whether byte ordering is bigendian... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking for special C compiler options needed for large
    files... no
    checking for _FILE_OFFSET_BITS value needed for large
    files... 64
    checking for _LARGE_FILES value needed for large files... no
    checking for stdint.h... (cached) yes
    checking for inttypes.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking getopt.h usability... yes
    checking getopt.h presence... yes
    checking for getopt.h... yes
    checking sys/soundcard.h usability... yes
    checking sys/soundcard.h presence... yes
    checking for sys/soundcard.h... yes
    checking for sin in -lm... yes
    checking for posix_memalign... yes
    checking for memalign... yes
    checking for fmax... yes
    checking for fmin... yes
    checking for lround... yes
    checking for getopt_long... yes
    checking return type of signal handlers... void
    configure: The host is powerpc-unknown-linux-gnu powerpc
    unknown linux-gnu .
    checking for alpha architecture... no
    checking linux/videodev.h usability... yes
    checking linux/videodev.h presence... yes
    checking for linux/videodev.h... yes
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute...
    PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking for cc_r... gcc
    checking for pthread_attr_getstacksize... yes
    checking for jpeg_start_compress in -ljpeg... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for LIBQUICKTIME... yes
    checking for LIBPNG... yes
    checking for LIBDV... yes
    checking for X... libraries /usr/X11R6/lib, headers
    /usr/X11R6/include
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking for __progname... yes
    checking for XF86DGAQueryExtension in -lXxf86dga... yes
    checking for GTK... yes
    checking for sdl-config... /usr/bin/sdl-config
    checking for SDL - version >= 1.1.3... yes
    checking for vlineColor in -lSDL_gfx... no
    checking Architecture... PowerPC
    checking compiler support for AltiVec... yes
    checking sub-architecture settings... -mcpu=740 -mtune=740
    checking what warning flags to pass to the C compiler...
    -Wall -Wunused

    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating debian/Makefile
    config.status: creating debian/control
    config.status: creating docs/Makefile
    config.status: creating lavtools/Makefile
    config.status: creating yuvcorrect/Makefile
    config.status: creating yuvdenoise/Makefile
    config.status: creating yuvdeinterlace/Makefile
    config.status: creating yuvscaler/Makefile
    config.status: creating y4munsharp/Makefile
    config.status: creating y4mutils/Makefile
    config.status: creating yuvfilters/Makefile
    config.status: creating mpeg2enc/Makefile
    config.status: creating aenc/Makefile
    config.status: creating mplex/Makefile
    config.status: creating scripts/Makefile
    config.status: creating utils/Makefile
    config.status: creating utils/altivec/Makefile
    config.status: creating utils/mmxsse/Makefile
    config.status: creating y4mdenoise/Makefile
    config.status: creating mjpegtools.pc
    config.status: creating mjpegtools.spec
    config.status: creating config.h
    config.status: executing depfiles commands
    configure:
    configure: MJPEG tools 1.9.0 build configuration :
    configure:
    configure: - PowerPC Optimizations:
    configure: - AltiVec enabled : true
    configure: - arch/cpu compiler flags : -mcpu=740
    -mtune=740
    configure: - video4linux recording/playback: true
    configure: - software MJPEG playback : true
    configure: - MPEG Z/Alpha : false
    configure: - Quicktime playback/recording : true
    configure: - PNG input support : true
    configure: - AVI MJPEG playback/recording : true (always)
    configure: - libDV (digital video) support : true
    configure: - Gtk+ support for glav : true
    configure:

     
  • Bernhard Praschinger

    Logged In: YES
    user_id=155293

    I think that there is a problem with you g++, I guess that
    there could be a problem with the gcc (g++) you use. I only
    have a 4.1.0 (Suse on PC) and 4.0.0 on a OSX. And I can
    compile the CVS version without problems.

    If it is possible please try a newer GCC.
    I'm sorry I have no patch at hand.

    The output from the configure script lookes Ok.

     
  • Nobody/Anonymous

    Logged In: NO

    Well, thanks again for the help but I'm not big into gcc-4.x

    3.4.6 is the most widely used and stable version out there.
    If it's a gcc-3.4.6 problem then it needs to be fixed in
    mjpegtools. I'm not sure thats what is going on anyway
    except that the problem seems to be with mpeg2enc in mjpegtools.

    Again, I have no idea why it's picking up that
    /tmp/gcc-build crap. Besides, that's not even what my error
    is steming from. My compiler has been flawless thus far; the
    entire 300 package system built with my bootstrapped
    3.4.6... All of a sudden I have a problem at the very tail
    end with mjpegtools?!^*? Nah....

    I just wish someone would acknowledge the original problem
    with mjpegtools-1.8.0 and come out with a patch. A poster on
    the mailing list a couple months back had the same problem
    and got ignored. People on LQ.org have posted about it too
    along with various refrences in general doing a google search.

    Pfffftttt... Oh well. :-( Time to chuck mjpegtools I guess.
    Don't want to but I'm choiceless at the moment. Thanks again
    for your responses. I'll wait and see what CVS does over the
    next few months.

     
  • Bernhard Praschinger

    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.