> What should I do to fix it ?A compiler complaining about extra brackes within initializers is a "stupid" compiler. Disable the warning and you should be fine. Christian --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
When I tried to compile the vorbis module as a Framework, using ProjectBuilder, I got 1058 warnings (excess elements in scalar initializer, near initialization for ''psy_set0.toneatt', 'vorbis_ftoi' defined but not used, unused variable 'k', braces around scalar initializer, and so on) and 65 errors. Some examples of errors: ------- vorbis/lib/psytune.c: undefined type, found 'vp_part': static vp_part _vp_part0[]={ { 1,9e10f, 9e10f, 1.f,9999.f}, { 9999, .75f, 9e10f, .5f,9999.f}, /*{ 9999, 1.5f, 9e10f, .5f,9999.f},*/ { 18,9e10f, 9e10f, .5f, 30.f}, { 9999,9e10f, 9e10f, .5f, 30.f} }; ------- vorbis/lib/psytune.c: extra brace group at end of initializer vorbis/lib/psytune.c: (near initialization for '_vp_couple0[0]') tatic vp_couple _vp_couple0[]={ { 1, {9e10f,9e10f,0}, { 0.f, 0.f,0}, { 0.f, 0.f,0}, {0.f,0.f,0}}, { 18, {9e10f,9e10f,0}, { 0.f, 0.f,0}, { 0.f, 0.f,0}, {0.f,0.f,0}}, { 9999, {9e10f,9e10f,0}, { 0.f, 9e10f,0}, { 0.f,22.f,1}, {0.f,0.f,0}} }; Now I ask: why is it possible to compile the vorbis module using ./autogen.sh and make, but when using PB, so many warnings and errors pop up ? What should I do to fix it ? Elifarley C. Coelho http://www.geocities.com/elifarley/ --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> >Now I ask: why is it possible to compile the vorbis module using >./autogen.sh and make, but when using PB, so many warnings and errors >pop up ? > >What should I do to fix it ?If all the errors are (like the ones you've given here) in psytune.c, then just don't compile that file. There are several files in there (psytune.c, misc.c, maybe another) which aren't part of a normal build, they're extra debugging or tuning tools which often suffer bitrot and shouldn't be built. The canonical list of files which SHOULD be compiled is given in lib/Makefile.am (plus various extras in the modes directory, depending on what you're building Michael --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Elifarley C.Coelho
2001-Oct-28 06:50 UTC
[vorbis-dev] Re: vorbis won't compile as a Framework
------------------------------------------------------------------------ From: Michael Smith (msmith@labyrinth.net.au) Date: Sat 27 Oct 2001 - 20:08:51 PDT * Previous message: Christian.Buchner: "Re: [vorbis-dev] vorbis won't compile as a Framework" * In reply to: Elifarley C.Coelho: "[vorbis-dev] vorbis won't compile as a Framework" * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] ------------------------------------------------------------------------> If all the errors are (like the ones you've given here) in psytune.c, > then just don't compile that file. There are several files in there > (psytune.c, misc.c, maybe another) which aren't part of a normal build, > they're extra debugging or tuning tools which often suffer bitrot and > shouldn't be built. > > The canonical list of files which SHOULD be compiled is given in > lib/Makefile.am (plus various extras in the modes directory, depending > on what you're building > > MichaelAfter disabling psytune.c, the following errors occur: BuildPhase vorbis.framework Completed phase <DeriveAndCompileSources> for vorbis.framework MasterObjectFile.Combine /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/master.o /usr/bin/ld: multiple definitions of symbol _IIR_clear /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/envelope.o definition of _IIR_clear in section (__TEXT,__text) /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/iir.o definition of _IIR_clear in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _IIR_filter /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/envelope.o definition of _IIR_filter in section (__TEXT,__text) /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/iir.o definition of _IIR_filter in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _IIR_filter_Band /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/envelope.o definition of _IIR_filter_Band in section (__TEXT,__text) /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/iir.o definition of _IIR_filter_Band in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _IIR_init /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/envelope.o definition of _IIR_init in section (__TEXT,__text) /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/iir.o definition of _IIR_init in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _IIR_reset /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/envelope.o definition of _IIR_reset in section (__TEXT,__text) /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/iir.o definition of _IIR_reset in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _main /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/barkmel.o definition of _main in section (__TEXT,__text) /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/ppc/tone.o definition of _main in section (__TEXT,__text) /usr/bin/cc -arch ppc -keep_private_externs -nostdlib -filelist "/Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/Objects/LinkFileListPrelink" -r -o "/Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/master.o" ...failed MasterObjectFile.Combine /Volumes/User 1 GB/ecc/Projects/MacOS X/vorbis/build/intermediates/vorbis.build/master.o ... I don't have a clue as to how to fix them. Can anyone help me ? Elifarley C. Coelho http://www.geocities.com/elifarley/ --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.