[ https://issues.apache.org/jira/browse/COUCHDB-2588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328136#comment-14328136 ]
Jan Lehnardt commented on COUCHDB-2588: --------------------------------------- For anyone looking at this, the sources are at https://github.com/apache/couchdb-b64url and https://github.com/apache/couchdb-khash > dereferencing type-punned pointer will break strict-aliasing rule > ----------------------------------------------------------------- > > Key: COUCHDB-2588 > URL: https://issues.apache.org/jira/browse/COUCHDB-2588 > Project: CouchDB > Issue Type: Bug > Security Level: public(Regular issues) > Components: Database Core > Affects Versions: 2.0.0 > Environment: FreeBSD 9 > Reporter: Alexander Shorin > Priority: Blocker > Fix For: 2.0.0 > > > Happens on FreeBSD 9: > {code} > # gcc -v > Using built-in specs. > Target: i386-undermydesk-freebsd > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 4.2.1 20070831 patched [FreeBSD] > ==> b64url (compile) > Compiled src/b64url.erl > Compiling /root/couchdb/src/b64url/c_src/b64url.c > cc1: warnings being treated as errors > /root/couchdb/src/b64url/c_src/b64url.c: In function 'b64url_encode_cont': > /root/couchdb/src/b64url/c_src/b64url.c:424: warning: dereferencing > type-punned pointer will break strict-aliasing rules > /root/couchdb/src/b64url/c_src/b64url.c: In function 'b64url_decode_cont': > /root/couchdb/src/b64url/c_src/b64url.c:579: warning: dereferencing > type-punned pointer will break strict-aliasing rules > ERROR: compile failed while processing /root/couchdb/src/b64url: rebar_abort > *** [couch] Error code 1 > ==> khash (compile) > Compiled src/khash.erl > Compiling c_src/hash.c > Compiling /root/couchdb/src/khash/c_src/khash.c > cc1: warnings being treated as errors > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_to_list': > /root/couchdb/src/khash/c_src/khash.c:232: warning: dereferencing type-punned > pointer will break strict-aliasing rules > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_clear': > /root/couchdb/src/khash/c_src/khash.c:264: warning: dereferencing type-punned > pointer will break strict-aliasing rules > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_lookup': > /root/couchdb/src/khash/c_src/khash.c:303: warning: dereferencing type-punned > pointer will break strict-aliasing rules > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_get': > /root/couchdb/src/khash/c_src/khash.c:337: warning: dereferencing type-punned > pointer will break strict-aliasing rules > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_put': > /root/couchdb/src/khash/c_src/khash.c:369: warning: dereferencing type-punned > pointer will break strict-aliasing rules > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_del': > /root/couchdb/src/khash/c_src/khash.c:409: warning: dereferencing type-punned > pointer will break strict-aliasing rules > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_size': > /root/couchdb/src/khash/c_src/khash.c:441: warning: dereferencing type-punned > pointer will break strict-aliasing rules > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_iter': > /root/couchdb/src/khash/c_src/khash.c:465: warning: dereferencing type-punned > pointer will break strict-aliasing rules > /root/couchdb/src/khash/c_src/khash.c: In function 'khash_iter_next': > /root/couchdb/src/khash/c_src/khash.c:514: warning: dereferencing type-punned > pointer will break strict-aliasing rules > ERROR: compile failed while processing /root/couchdb/src/khash: rebar_abort > *** [couch] Error code 1 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)