#187 error: redefinition of typedef 'weed_bootstrap_f'


Can't compile lives from 1.6.2 or similar and newer. Tested 1.8.0 and same issue:

In file included from effects-data.c:22:
../libweed/weed-effects.h:129: error: redefinition of typedef 'weed_bootstrap_f'
plugins.h:40: note: previous declaration of 'weed_bootstrap_f' was here
make[1]: *** [effects-data.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Attached log of the error.

1 Attachments


  • Salsaman

    Salsaman - 2012-12-15

    I do not get this error when compiling...

    However, try this:
    - edit effects-data.c, audio.c and pangotext.c; in each of those files, move all of the weed* #includes before the #include "main.h", then try to compile again.

  • Tomas Forsman

    Tomas Forsman - 2012-12-26

    Sorry, didn't do any difference at all. Changed all 3 files and getting same error.

  • Salsaman

    Salsaman - 2012-12-27

    Please try with the current subversion version.

  • Tomas Forsman

    Tomas Forsman - 2013-01-25

    Tried to build it from svn, but I hit another issue before this issue:

    checking libavc1394/rom1394.h usability... yes
    checking libavc1394/rom1394.h presence... yes
    checking for libavc1394/rom1394.h... yes
    checking for WEED... no
    ...this is not a problem if we have WEED_SLICE
    checking for WEED_SLICE... no
    ...will try to build from included sources
    checking for WEED_UTILS... no
    ...will try to build from included sources
    checking for WEED_COMPAT... no
    ...will try to build from included sources
    checking for WEED_PLUGIN_UTILS... no
    ...will try to build from included sources
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating libOSC/Makefile
    config.status: creating libOSC/client/Makefile
    config.status: creating libOSC/sendOSC/Makefile
    config.status: creating po/Makefile.in
    config.status: creating Makefile
    config.status: creating intl/Makefile
    config.status: creating m4/Makefile
    config.status: creating src/Makefile
    config.status: creating resources/Makefile
    config.status: creating lives-plugins/Makefile
    config.status: creating lives-plugins/plugins/effects/RFXscripts/Makefile
    config.status: creating lives-plugins/plugins/effects/compound/Makefile
    config.status: creating lives-plugins/plugins/effects/Makefile
    config.status: creating lives-plugins/plugins/encoders/Makefile
    config.status: creating lives-plugins/plugins/decoders/Makefile
    config.status: creating lives-plugins/plugins/Makefile
    config.status: creating lives-plugins/plugins/playback/video/Makefile
    config.status: creating lives-plugins/plugins/playback/audiostream/Makefile
    config.status: creating lives-plugins/plugins/playback/Makefile
    config.status: creating lives-plugins/icons/Makefile
    config.status: creating lives-plugins/themes/cutting_room/Makefile
    config.status: creating lives-plugins/themes/pinks/Makefile
    config.status: creating lives-plugins/themes/camera/Makefile
    config.status: creating lives-plugins/themes/editor/Makefile
    config.status: creating lives-plugins/themes/crayons/Makefile
    config.status: creating lives-plugins/themes/crayons-bright/Makefile
    config.status: creating lives-plugins/themes/Makefile
    config.status: error: cannot find input file: `libweed/Makefile.in'

    built from:
    r1674 | gfinch | 2013-01-24 12:23:14 +0100 (tor, 24 jan 2013) | 1 line
    widget updates

  • Salsaman

    Salsaman - 2013-01-25

    OK, you can edit configure.in, and find the AC_OUTPUT section. In there, replace $WEED_MAKEFILES with libweed/Makefile.

    Then run autoconf, configure and make.

  • Tomas Forsman

    Tomas Forsman - 2013-01-25

    Had to do the opposite, it already had: libweed/Makefile and i changed it to $WEED_MAKEFILES and this issue was gone.
    But hitting a issue down the road:

    make[1]: Leaving directory /home/tforsman/conary/builds/lives/lives--/libOSC' Making all in intl make[1]: Entering directory/home/tforsman/conary/builds/lives/lives--/intl'
    make[1]: Nothing to be done for all'. make[1]: Leaving directory/home/tforsman/conary/builds/lives/lives--/intl'
    Making all in libweed
    make[1]: Entering directory /home/tforsman/conary/builds/lives/lives--/libweed' make[1]: *** No rule to make targetall'. Stop.
    make[1]: Leaving directory `/home/tforsman/conary/builds/lives/lives--/libweed'
    make: *** [all-recursive] Error 1
    error: Shell command "cd '/home/tforsman/conary/builds/lives/lives--/'; CFLAGS="-O2 -g -D_FORTIFY_SOURCE=2 -fstack-protector" CXXFLAGS="-O2 -g -D_FORTIFY_SOURCE=2 -fstack-protector " CPPFLAGS="" CLASSPATH="" LDFLAGS="-g -O1 " CC=gcc CXX=g++ make -j2 " exited with exit code 2

    Attached a build log, if that might help to maybe solve this and be able to get lives into Foresight again.

  • Salsaman

    Salsaman - 2013-01-26

    I think something has gotten messed up with your build.

    Change the line back to libweed/Makefile.in, then run:
    ./configure && make

  • Tomas Forsman

    Tomas Forsman - 2013-01-26

    Back to main issue with a clean lives and building from svn.
    Building from: r1677 | gfinch | 2013-01-26 02:41:37 +0100 (Sat, 26 Jan 2013)

    Your first comment in this thread is now already fixed in the source.

    Still gets:
    In file included from osc.c:23:
    ../libweed/weed-effects.h:129: error: redefinition of typedef 'weed_bootstrap_f'
    plugins.h:40: note: previous declaration of 'weed_bootstrap_f' was here
    make[1]: [osc.o] Error 1
    Waiting for unfinished jobs....
    mv -f .deps/events.Tpo .deps/events.Po
    make[1]: Leaving directory `/home/tforsman/conary/builds/lives/lives--/src'
    make: *** [all-recursive] Error 1

    Added build log from building svn.

    This is a clean and nothing modified in the source, just a pure autogen.sh, configure, make.....

  • Salsaman

    Salsaman - 2013-01-26

    Aghh...I missed that one !

    Just edit osc.c and move the #include "main.c" and #ifdef ENABLE_OSC lower down, after the weed* includes.

  • Tomas Forsman

    Tomas Forsman - 2013-01-27

    Thank you, the issue is now gone. thank you very much. Tested build from svn r1681.

  • Salsaman

    Salsaman - 2013-01-27
    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks