Hi,
You're compiling with -Werror, which treats warnings as errors (check
line cc1plus: warnings being treated as errors). Usage of fwrite(3)
issues a warning if the result is ignored:
galera/src/saved_state.cpp:238:40: error: ignoring return value of
'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with
attribute warn_unused_result
Try removing it from CXXFLAGS if you've set it there -- or if galera is
setting it itself, try setting your own CXXFLAGS before compiling. I'm
not familiar on how the build is performed in gentoo (steps?) so if you
can elaborate maybe I can pinpoint it.
N.
El 21/06/12 07:05, LeCouz escribi�:
> Hi.
>
> I tried to compil Galera from the bzr repository on a Gentoo server.
> But I have this error:
>
> g++ -o galera/src/saved_state.o -c -Wno-long-long -Wno-deprecated
> -ansi -pipe -Weffc++ -Wold-style-cast -g -O3 -DNDEBUG -m64 -Wall
> -Wextra -Werror -Wno-unused-parameter -pedantic -D_XOPEN_SOURCE=600
> -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H
> -DHAVE_ENDIAN_H -DHAVE_BOOST_SHARED_PTR_HPP
> -DHAVE_BOOST_UNORDERED_MAP_HPP
> -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1
> -DGALERA_USE_BOOST_POOL_ALLOC=1 -DHAVE_ASIO_HPP -DHAVE_ASIO_SSL_HPP
> -Icommon -Iasio -Igalerautils/src -Igcomm/src -Igcomm/src/gcomm
> -Igcache/src -Igcs/src -Iwsdb/src -Igalera/src galera/src/saved_state.cpp
> cc1plus: warnings being treated as errors
> galera/src/saved_state.cpp: In member function 'void
> galera::SavedState::write_and_flush(const wsrep_uuid_t&, wsrep_seqno_t)':
> galera/src/saved_state.cpp:238:40: error: ignoring return value of
> 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with
> attribute warn_unused_result
> scons: *** [galera/src/saved_state.o] Error 1
> scons: building terminated because of errors.
>
> Is anybody have an idea?
> Dependences missing?
>
> Thanks.
> --
> You received this message because you are subscribed to the Google
> Groups "Percona Discussion" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/percona-discussion/-/ceIhfnJ5x_EJ.
> To post to this group, send email to
percona-d...@googlegroups.com.
> To unsubscribe from this group, send email to
>
percona-discuss...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/percona-discussion?hl=en.
--
Ignacio Nin
Build Engineer, Percona Inc.
http://www.percona.com/
(+1 877) 862-4316 ext 524
skype ignacio-nin
Our blog:
http://www.mysqlperformanceblog.com/
Got MySQL support?
http://tinyurl.com/mysql-support