[
https://issues.apache.org/jira/browse/MESOS-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13768816#comment-13768816
]
Vinod Kone commented on MESOS-688:
----------------------------------
This is what config.log shows
configure:18133: checking for the pthreads library -lpthreads
configure:18166: gcc -o conftest -g -Wno-unused-local-typedefs conftest.c
-lpthreads >&5
cc1: error: unrecognized command line option "-Wno-unused-local-typedefs"
configure:18166: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mesos"
| #define PACKAGE_TARNAME "mesos"
| #define PACKAGE_VERSION "0.15.0"
| #define PACKAGE_STRING "mesos 0.15.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "mesos"
| #define VERSION "0.15.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
| pthread_attr_init(0); pthread_cleanup_push(0, 0);
| pthread_create(0,0,0,0); pthread_cleanup_pop(0);
| ;
| return 0;
| }
configure:18175: result: no
configure:18078: checking whether pthreads work without any flags
configure:18166: gcc -o conftest -g -Wno-unused-local-typedefs conftest.c
>&5
cc1: error: unrecognized command line option "-Wno-unused-local-typedefs"
configure:18166: $? = 1
> error of "unused_local_typedefs" in thirdparty/boost
> ----------------------------------------------------
>
> Key: MESOS-688
> URL: https://issues.apache.org/jira/browse/MESOS-688
> Project: Mesos
> Issue Type: Bug
> Components: release
> Affects Versions: 0.12.0
> Environment: Fedora 19, Linux 3.10.9, x86_64, g++ 4.8.1
> Reporter: Yong Fu
> Assignee: Brenden Matthews
> Labels: build
> Fix For: 0.12.0
>
>
> Compilation error under g++ 4.8.1 (Fedora 19)
> ....
> ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/variant/variant.hpp: In
> member function 'void boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9,
> T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>::operator<(const U&) const':
> ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/variant/variant.hpp:2254:135:
> error: typedef 'boost_static_assert_typedef_2254' locally defined but not
> used [-Werror=unused-local-typedefs]
> BOOST_STATIC_ASSERT( false && sizeof(U) );
>
> ^
> cc1plus: all warnings being treated as errors
> ....
> It is a well-known bug in boost.
> https://svn.boost.org/trac/boost/ticket/8546
> https://groups.google.com/forum/#!topic/v8-dev/vxzTVQ5fJ4s
> Before it is fixed totally in boost, the error can be just suppressed here
> mesos/src/Makefile.am: line 73
> MESOS_CPPFLAGS += -Wall -Werror
> =======
> MESOS_CPPFLAGS += -Wall -Werror -Wno-unused-local-typedefs.
> yf
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira