Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

build problem

Help
Arnar Thor
2007-06-05
2013-06-03
  • Arnar Thor
    Arnar Thor
    2007-06-05

    Hi
    I get the following errors when trying to build recordmydisplay
    ...snip...
    init_encoder.c: In function `InitEncoder':
    init_encoder.c:95: error: structure has no member named `pixelformat'
    init_encoder.c:95: error: `OC_PF_420' undeclared (first use in this function)
    init_encoder.c:95: error: (Each undeclared identifier is reported only once
    init_encoder.c:95: error: for each function it appears in.)
    make[2]: *** [recordmydesktop-init_encoder.o] Error 1

    As far as I can see I have all the dependants so whats the problem ?

    Running on CentOS4.4 2.6.9-42.0.10.EL #1 Tue Feb 27 09:24:42 EST 2007 i686 i686 i386 GNU/Linux

    Thanks for any help

    output from configure and make below

    [recordmydesktop-0.3.4]$ ./configure
    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 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 for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking how to run the C preprocessor... gcc -E
    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 X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
    checking whether -R must be followed by a space... neither works
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    X libraries are found in /usr/X11R6/lib
    X includes are found in /usr/X11R6/include
    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 alsa/asoundlib.h usability... yes
    checking alsa/asoundlib.h presence... yes
    checking for alsa/asoundlib.h... yes
    checking endian.h usability... yes
    checking endian.h presence... yes
    checking for endian.h... yes
    checking sys/soundcard.h usability... yes
    checking sys/soundcard.h presence... yes
    checking for sys/soundcard.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking jack/jack.h usability... no
    checking jack/jack.h presence... no
    checking for jack/jack.h... no
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for unistd.h... (cached) yes
    checking vorbis/vorbisfile.h usability... yes
    checking vorbis/vorbisfile.h presence... yes
    checking for vorbis/vorbisfile.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking for u_int16_t... yes
    checking for u_int32_t... yes
    checking for u_int64_t... yes
    checking for isnan in -lm... yes
    checking for deflate in -lz... yes
    checking for IceOpenConnection in -lICE... yes
    checking for SmcOpenConnection in -lSM... yes
    checking for XOpenDisplay in -lX11... yes
    checking for XShmQueryVersion in -lXext... yes
    checking for XFixesQueryExtension in -lXfixes... yes
    checking for XDamageQueryExtension in -lXdamage... yes
    checking for vorbis_info_clear in -lvorbis... yes
    checking for ov_open in -lvorbisfile... yes
    checking for vorbis_encode_init in -lvorbisenc... yes
    checking for ogg_stream_init in -logg... yes
    checking for theora_encode_YUVin in -ltheora... yes
    checking for pthread_mutex_lock in -lpthread... yes
    checking for snd_pcm_drain in -lasound... yes
    checking whether closedir returns void... no
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating include/Makefile
    config.status: creating doc/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands

    ****************************************

    Audio driver that will be used: ALSA

    Compile with Jack support: Disabled

    ****************************************
    [recordmydesktop-0.3.4]$ make
    make  all-recursive
    make[1]: Entering directory `/home/art/Temps/recordmydesktop/recordmydesktop-0.3.4'
    Making all in src
    make[2]: Entering directory `/home/art/Temps/recordmydesktop/recordmydesktop-0.3.4/src'
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-recordmydesktop.o -MD -MP -MF ".deps/recordmydesktop-recordmydesktop.Tpo" \   -c -o recordmydesktop-recordmydesktop.o `test -f 'recordmydesktop.c' || echo './'`recordmydesktop.c; \ then mv -f ".deps/recordmydesktop-recordmydesktop.Tpo" ".deps/recordmydesktop-recordmydesktop.Po"; \ else rm -f ".deps/recordmydesktop-recordmydesktop.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-getzpixmap.o -MD -MP -MF ".deps/recordmydesktop-getzpixmap.Tpo" \   -c -o recordmydesktop-getzpixmap.o `test -f 'getzpixmap.c' || echo './'`getzpixmap.c; \ then mv -f ".deps/recordmydesktop-getzpixmap.Tpo" ".deps/recordmydesktop-getzpixmap.Po"; \ else rm -f ".deps/recordmydesktop-getzpixmap.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-parseargs.o -MD -MP -MF ".deps/recordmydesktop-parseargs.Tpo" \   -c -o recordmydesktop-parseargs.o `test -f 'parseargs.c' || echo './'`parseargs.c; \ then mv -f ".deps/recordmydesktop-parseargs.Tpo" ".deps/recordmydesktop-parseargs.Po"; \ else rm -f ".deps/recordmydesktop-parseargs.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-rectinsert.o -MD -MP -MF ".deps/recordmydesktop-rectinsert.Tpo" \   -c -o recordmydesktop-rectinsert.o `test -f 'rectinsert.c' || echo './'`rectinsert.c; \ then mv -f ".deps/recordmydesktop-rectinsert.Tpo" ".deps/recordmydesktop-rectinsert.Po"; \ else rm -f ".deps/recordmydesktop-rectinsert.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-setbrwindow.o -MD -MP -MF ".deps/recordmydesktop-setbrwindow.Tpo" \   -c -o recordmydesktop-setbrwindow.o `test -f 'setbrwindow.c' || echo './'`setbrwindow.c; \ then mv -f ".deps/recordmydesktop-setbrwindow.Tpo" ".deps/recordmydesktop-setbrwindow.Po"; \ else rm -f ".deps/recordmydesktop-setbrwindow.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-queryextensions.o -MD -MP -MF ".deps/recordmydesktop-queryextensions.Tpo" \   -c -o recordmydesktop-queryextensions.o `test -f 'queryextensions.c' || echo './'`queryextensions.c; \ then mv -f ".deps/recordmydesktop-queryextensions.Tpo" ".deps/recordmydesktop-queryextensions.Po"; \ else rm -f ".deps/recordmydesktop-queryextensions.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-register_callbacks.o -MD -MP -MF ".deps/recordmydesktop-register_callbacks.Tpo" \   -c -o recordmydesktop-register_callbacks.o `test -f 'register_callbacks.c' || echo './'`register_callbacks.c; \ then mv -f ".deps/recordmydesktop-register_callbacks.Tpo" ".deps/recordmydesktop-register_callbacks.Po"; \ else rm -f ".deps/recordmydesktop-register_callbacks.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-get_frame.o -MD -MP -MF ".deps/recordmydesktop-get_frame.Tpo" \   -c -o recordmydesktop-get_frame.o `test -f 'get_frame.c' || echo './'`get_frame.c; \ then mv -f ".deps/recordmydesktop-get_frame.Tpo" ".deps/recordmydesktop-get_frame.Po"; \ else rm -f ".deps/recordmydesktop-get_frame.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-update_image.o -MD -MP -MF ".deps/recordmydesktop-update_image.Tpo" \   -c -o recordmydesktop-update_image.o `test -f 'update_image.c' || echo './'`update_image.c; \ then mv -f ".deps/recordmydesktop-update_image.Tpo" ".deps/recordmydesktop-update_image.Po"; \ else rm -f ".deps/recordmydesktop-update_image.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-poll_damage.o -MD -MP -MF ".deps/recordmydesktop-poll_damage.Tpo" \   -c -o recordmydesktop-poll_damage.o `test -f 'poll_damage.c' || echo './'`poll_damage.c; \ then mv -f ".deps/recordmydesktop-poll_damage.Tpo" ".deps/recordmydesktop-poll_damage.Po"; \ else rm -f ".deps/recordmydesktop-poll_damage.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-encode_image_buffer.o -MD -MP -MF ".deps/recordmydesktop-encode_image_buffer.Tpo" \   -c -o recordmydesktop-encode_image_buffer.o `test -f 'encode_image_buffer.c' || echo './'`encode_image_buffer.c; \ then mv -f ".deps/recordmydesktop-encode_image_buffer.Tpo" ".deps/recordmydesktop-encode_image_buffer.Po"; \ else rm -f ".deps/recordmydesktop-encode_image_buffer.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-bgr_to_yuv.o -MD -MP -MF ".deps/recordmydesktop-bgr_to_yuv.Tpo" \   -c -o recordmydesktop-bgr_to_yuv.o `test -f 'bgr_to_yuv.c' || echo './'`bgr_to_yuv.c; \ then mv -f ".deps/recordmydesktop-bgr_to_yuv.Tpo" ".deps/recordmydesktop-bgr_to_yuv.Po"; \ else rm -f ".deps/recordmydesktop-bgr_to_yuv.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-flush_to_ogg.o -MD -MP -MF ".deps/recordmydesktop-flush_to_ogg.Tpo" \   -c -o recordmydesktop-flush_to_ogg.o `test -f 'flush_to_ogg.c' || echo './'`flush_to_ogg.c; \ then mv -f ".deps/recordmydesktop-flush_to_ogg.Tpo" ".deps/recordmydesktop-flush_to_ogg.Po"; \ else rm -f ".deps/recordmydesktop-flush_to_ogg.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-make_dummy_pointer.o -MD -MP -MF ".deps/recordmydesktop-make_dummy_pointer.Tpo" \   -c -o recordmydesktop-make_dummy_pointer.o `test -f 'make_dummy_pointer.c' || echo './'`make_dummy_pointer.c; \ then mv -f ".deps/recordmydesktop-make_dummy_pointer.Tpo" ".deps/recordmydesktop-make_dummy_pointer.Po"; \ else rm -f ".deps/recordmydesktop-make_dummy_pointer.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-opendev.o -MD -MP -MF ".deps/recordmydesktop-opendev.Tpo" \   -c -o recordmydesktop-opendev.o `test -f 'opendev.c' || echo './'`opendev.c; \ then mv -f ".deps/recordmydesktop-opendev.Tpo" ".deps/recordmydesktop-opendev.Po"; \ else rm -f ".deps/recordmydesktop-opendev.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-capture_sound.o -MD -MP -MF ".deps/recordmydesktop-capture_sound.Tpo" \   -c -o recordmydesktop-capture_sound.o `test -f 'capture_sound.c' || echo './'`capture_sound.c; \ then mv -f ".deps/recordmydesktop-capture_sound.Tpo" ".deps/recordmydesktop-capture_sound.Po"; \ else rm -f ".deps/recordmydesktop-capture_sound.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-encode_sound_buffer.o -MD -MP -MF ".deps/recordmydesktop-encode_sound_buffer.Tpo" \   -c -o recordmydesktop-encode_sound_buffer.o `test -f 'encode_sound_buffer.c' || echo './'`encode_sound_buffer.c; \ then mv -f ".deps/recordmydesktop-encode_sound_buffer.Tpo" ".deps/recordmydesktop-encode_sound_buffer.Po"; \ else rm -f ".deps/recordmydesktop-encode_sound_buffer.Tpo"; exit 1; \ fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -D_THREAD_SAFE -pthread -Wall -I/usr/X11R6/include  -g -O2 -MT recordmydesktop-init_encoder.o -MD -MP -MF ".deps/recordmydesktop-init_encoder.Tpo" \   -c -o recordmydesktop-init_encoder.o `test -f 'init_encoder.c' || echo './'`init_encoder.c; \ then mv -f ".deps/recordmydesktop-init_encoder.Tpo" ".deps/recordmydesktop-init_encoder.Po"; \ else rm -f ".deps/recordmydesktop-init_encoder.Tpo"; exit 1; \ fi
    init_encoder.c: In function `InitEncoder':
    init_encoder.c:95: error: structure has no member named `pixelformat'
    init_encoder.c:95: error: `OC_PF_420' undeclared (first use in this function)
    init_encoder.c:95: error: (Each undeclared identifier is reported only once
    init_encoder.c:95: error: for each function it appears in.)
    make[2]: *** [recordmydesktop-init_encoder.o] Error 1
    make[2]: Leaving directory `/home/art/Temps/recordmydesktop/recordmydesktop-0.3.4/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/art/Temps/recordmydesktop/recordmydesktop-0.3.4'
    make: *** [all] Error 2
    [recordmydesktop-0.3.4]$

     
    • The pixelformat member is new in libtheora1.0alpha7, so if you have an
      older one you will get this problem. Nevertheless it's very easy to
      solve by commenting that line out(init_encoder.c:95).
      Just place // in the beginning of the line and recompile. This change
      won't affect the operation of the program in any way.

      John.-

       
    • Arnar Thor
      Arnar Thor
      2007-06-05

      Thanks that worked