Search squid archive

Address.cc: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I caved and installed gcc 4.7 in /usr/local/ and a pre-compiled openssl-1.0.0g pkg in /usr/local/ssl. I got the following error, when compiling squid-3.2.0.16-20120316-r11543 on OS X 10.7.3. Is this something that can be worked around without removing -Werror from Makefile(s)?

export CPPFLAGS="-I/usr/local/ssl/include"
export CFLAGS="-I/usr/local/ssl/include"
export LDFLAGS="-L/usr/local/ssl/lib"
export LIBS="-ldl"

./configure --prefix=/usr/local/squid --build=i686-apple-darwin --mandir=
/usr/local/share/man --with-large-files --disable-ident-lookups --disable-dependency-tracking --enable-filters --enable-removal-policies=heap,lru --enable-delay-pools --enable-multicast-miss --enable-default-err-language=templates --enable-fd-config --with-filedescriptors=16384 --with-dl --enable-ltdl-convenience --enable-http-violations --enable-build-info --enable-log-daemon-helpers --enable-auth-basic=PAM,NCSA,LDAP,NCSA --enable-auth-digest=password --enable-external-acl-helpers=ip_user,ldap_group --enable-internal-dns --disable-eui --enable-ssl --with-ssl=openssl --with-ssldir=/usr/local/ssl

...
Making all in ip
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I../.. -I../../include -I../../lib -I../../src -I../../include   -I../../libltdl  -I/usr/local/ssl/include   -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -c -o Address.lo Address.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I/usr/local/ssl/include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -c Address.cc  -fno-common -DPIC -o .libs/Address.o
Address.cc: In member function 'bool Ip::Address::IsIPv4() const':
Address.cc:176:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc:176:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc:176:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc: In member function 'bool Ip::Address::IsAnyAddr() const':
Address.cc:188:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc:188:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc:188:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc:188:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc: In member function 'bool Ip::Address::IsLocalhost() const':
Address.cc:255:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc:255:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc:255:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Address.cc:255:12: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
cc1plus: all warnings being treated as errors
make[3]: *** [Address.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux