Same change is also required in src/util/Makefile.

On Tue, Nov 22, 2011 at 1:56 PM, Joseph Slagel <
[email protected]> wrote:

> Steven,
>
> Looks like ubuntu's version of gcc is being very strict about return
> values.  For the time being you could add the following compile flag to the
> compile flags in the main TPP makefile, " -Wno-unused-result"
>
> Here's a little sed snippet that should do the trick (for TPP 4.5.0):
>
> sed -i -e '113s/$/ -Wno-unused-result/'  Makefile
>
> -Joe
>
>
> On Tue, Nov 22, 2011 at 10:36 AM, hieronymus.b <[email protected]>wrote:
>
>> Now the following problem appears
>>
>> Parsers/mzParser/saxmzxmlhandler.cpp: In member function ‘f_off
>> SAXMzxmlHandler::readIndexOffset()’:
>> Parsers/mzParser/saxmzxmlhandler.cpp:553:24: error: ignoring return
>> value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with
>> attribute warn_unused_result [-Werror=unused-result]
>> cc1plus: all warnings being treated as errors
>>
>> adding "#include <stdlib.h> and "#include <stdint.h> does not help
>> here.
>>
>> Thanks for your help anyway.
>> Greets Steven
>>
>> On Nov 22, 7:19 pm, "hieronymus.b" <[email protected]> wrote:
>> > thanks this did work...at least for this file...
>> >
>> > On Nov 22, 12:27 am, Joseph Slagel <[email protected]>
>> > wrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > Hieronymus,
>> >
>> > > Try adding "#include <stdlib.h>" to ZeroSampleFiller.hpp
>> >
>> > > -Joe
>> >
>> > > On Mon, Nov 21, 2011 at 11:37 AM, hieronymus.b <
>> [email protected]>wrote:
>> >
>> > > > Compiling TTP on Ubuntu 11.10 gives the following error....any idea
>> > > > how to fix it?
>> >
>> > > > .......
>> > > > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
>> -DPWIZ_USER_VERSION_INFO_H=
>> > > > \"common/TPPVersion.h\"     -c -O2 -o /usr/local/src/TPP_4-5-0/
>> > > > trans_proteomic_pipeline/src/../build/Ubuntu-x86_64/
>> > > > ZeroSampleFiller.pwiz.o /usr/local/src/TPP_4-5-0/
>> > > >
>> trans_proteomic_pipeline/src/../extern/ProteoWizard/pwiz/pwiz/analysis/
>> > > > common/ZeroSampleFiller.cpp
>> > > > In file included from /usr/local/src/TPP_4-5-0/
>> > > >
>> trans_proteomic_pipeline/src/../extern/ProteoWizard/pwiz/pwiz/analysis/
>> > > > common/ZeroSampleFiller.cpp:25:0:
>> > > > /usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/../extern/
>> > > > ProteoWizard/pwiz/pwiz/analysis/common/ZeroSampleFiller.hpp:46:22:
>> > > > error: ‘size_t’ has not been declared
>> > > > /usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/../extern/
>> > > > ProteoWizard/pwiz/pwiz/analysis/common/ZeroSampleFiller.cpp:34:6:
>> > > > error: prototype for ‘void
>> > > > pwiz::analysis::ZeroSampleFiller::fill(const std::vector<double>&,
>> > > > const std::vector<double>&, std::vector<double>&,
>> > > > std::vector<double>&, size_t)’ does not match any in class
>> > > > ‘pwiz::analysis::ZeroSampleFiller’
>> > > > /usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/../extern/
>> > > > ProteoWizard/pwiz/pwiz/analysis/common/ZeroSampleFiller.hpp:44:17:
>> > > > error: candidate is: static void
>> > > > pwiz::analysis::ZeroSampleFiller::fill(const std::vector<double>&,
>> > > > const std::vector<double>&, std::vector<double>&,
>> > > > std::vector<double>&, int)
>> > > > remake: ***
>> [/usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/../
>> > > > build/Ubuntu-x86_64/ZeroSampleFiller.pwiz.o] Error 1
>> >
>> > > > #0  /usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/../build/
>> > > > Ubuntu-x86_64/ZeroSampleFiller.pwiz.o at ??
>> > > > #1  /usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/../build/
>> > > > Ubuntu-x86_64/libpwiz.a at /usr/local/src/TPP_4-5-0/
>> > > > trans_proteomic_pipeline/src//Makefile.pwiz.incl:75
>> > > > #2  xtandem at
>> /usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/
>> > > > Makefile:1102
>> > > > #3  all at /usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/
>> > > > Makefile:344
>> > > > #4  default at
>> /usr/local/src/TPP_4-5-0/trans_proteomic_pipeline/src/
>> > > > Makefile.incl:252
>> >
>> > > > thanks steven
>> >
>> > > > --
>> > > > You received this message because you are subscribed to the Google
>> Groups
>> > > > "spctools-discuss" group.
>> > > > To post to this group, send email to
>> [email protected].
>> > > > To unsubscribe from this group, send email to
>> > > > [email protected].
>> > > > For more options, visit this group at
>> > > >http://groups.google.com/group/spctools-discuss?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "spctools-discuss" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/spctools-discuss?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spctools-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spctools-discuss?hl=en.

Reply via email to