qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl L. Pierce (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-6128) Error when casting from 'sockaddr*' to 'sockaddr_in*' on ARM platforms
Date Wed, 01 Oct 2014 15:08:34 GMT
Darryl L. Pierce created QPID-6128:
--------------------------------------

             Summary: Error when casting from 'sockaddr*' to 'sockaddr_in*' on ARM platforms
                 Key: QPID-6128
                 URL: https://issues.apache.org/jira/browse/QPID-6128
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
            Reporter: Darryl L. Pierce


When building on ARM the following error occurs:

[ 18%] Building CXX object src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/SystemInfo.cpp.o
cd /builddir/build/BUILD/qpid-cpp-0.30/src && /usr/bin/c++   -DXQ_EFFECTIVE_BOOLEAN_VALUE_HPP
-Dqpidcommon_EXPORTS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -march=armv7-a -mfpu=vfpv3-d16
 -mfloat-abi=hard  -fvisibility-inlines-hidden -Werror -pedantic -Wall -Wextra -Wno-shadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
-Wno-system-headers -Woverloaded-virtual -O2 -g -DNDEBUG -fPIC -I/builddir/build/BUILD/qpid-cpp-0.30/src
-I/builddir/build/BUILD/qpid-cpp-0.30/src/../include -I/usr/include/nss3 -I/usr/include/nspr4
   -pthread -o CMakeFiles/qpidcommon.dir/qpid/sys/posix/SystemInfo.cpp.o -c /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SystemInfo.cpp
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp: In member function
'bool qpid::sys::SocketAddress::compareAddresses(const addrinfo&, const addrinfo&,
int&) const':
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:290:62: error: cast
from 'sockaddr*' to 'sockaddr_in*' increases required alignment of target type [-Werror=cast-align]
         struct sockaddr_in* sin4lo = (struct sockaddr_in*)lo.ai_addr;
                                                              ^
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:291:62: error: cast
from 'sockaddr*' to 'sockaddr_in*' increases required alignment of target type [-Werror=cast-align]
         struct sockaddr_in* sin4hi = (struct sockaddr_in*)hi.ai_addr;
                                                              ^
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:294:64: error: cast
from 'sockaddr*' to 'sockaddr_in6*' increases required alignment of target type [-Werror=cast-align]
         struct sockaddr_in6* sin6lo = (struct sockaddr_in6*)lo.ai_addr;
                                                                ^
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:295:64: error: cast
from 'sockaddr*' to 'sockaddr_in6*' increases required alignment of target type [-Werror=cast-align]
         struct sockaddr_in6* sin6hi = (struct sockaddr_in6*)hi.ai_addr;
                                                                ^
cc1plus: all warnings being treated as errors
src/CMakeFiles/qpidcommon.dir/build.make:2909: recipe for target 'src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/SocketAddress.cpp.o'
failed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message