Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Compile error with gcc #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. make

What is the expected output? What do you see instead?
# make
make  all-recursive
make[1]: Entering directory `/root/memcached-1.4.4'
Making all in doc
make[2]: Entering directory `/root/memcached-1.4.4/doc'
make  all-am
make[3]: Entering directory `/root/memcached-1.4.4/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/memcached-1.4.4/doc'
make[2]: Leaving directory `/root/memcached-1.4.4/doc'
make[2]: Entering directory `/root/memcached-1.4.4'
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT
memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o
memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
cc1: warnings being treated as errors
memcached.c: In function Б─≤complete_incr_binБ─≥:
memcached.c:1022: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1043: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1060: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_getБ─≥:
memcached.c:1192: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_updateБ─≥:
memcached.c:1888: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1904: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_append_prependБ─≥:
memcached.c:1948: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_deleteБ─≥:
memcached.c:2013: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤do_store_itemБ─≥:
memcached.c:2126: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2126: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2143: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2144: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2157: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2159: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2159: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2201: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2213: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_get_commandБ─≥:
memcached.c:2591: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_update_commandБ─≥:
memcached.c:2750: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤do_add_deltaБ─≥:
memcached.c:2869: error: dereferencing type-punned pointer will break
strict-aliasing
rules
make[2]: *** [memcached-memcached.o] Error 1
make[2]: Leaving directory `/root/memcached-1.4.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/memcached-1.4.4'
make: *** [all] Error 2

What version of the product are you using? On what operating system?

memcached-1.4.4
OS: Suse 11.2 64 bit
gcc: 4.4.1

Original issue reported on code.google.com by i...@quintura.com on 12 Mar 2010 at 6:37

GoogleCodeExporter commented 9 years ago
Do you have configure output from this?  We've tested on gcc 4.4 for a while 
now and 
haven't seen this.  While the gcc 4.4 support is a bit of a workaround, it 
should detect it 
and compile correctly.

Original comment by dsalli...@gmail.com on 12 Mar 2010 at 7:49

GoogleCodeExporter commented 9 years ago
Thanks for answer.
Memcached has compiled correctly with ./configure CC="gcc-4.3".
You can close this ticket.
I have some errors, when i tried with ./configure CC="gcc-4.4"
make  all-recursive
make[1]: Entering directory `/root/memcached-1.4.4'
Making all in doc
make[2]: Entering directory `/root/memcached-1.4.4/doc'
make  all-am
make[3]: Entering directory `/root/memcached-1.4.4/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/memcached-1.4.4/doc'
make[2]: Leaving directory `/root/memcached-1.4.4/doc'
make[2]: Entering directory `/root/memcached-1.4.4'
gcc-4.4 -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT
memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o
memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
cc1: warnings being treated as errors
memcached.c: In function Б─≤complete_incr_binБ─≥:
memcached.c:1022: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:1043: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:1060: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_getБ─≥:
memcached.c:1192: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_updateБ─≥:
memcached.c:1888: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:1904: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_append_prependБ─≥:
memcached.c:1948: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_deleteБ─≥:
memcached.c:2013: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c: In function Б─≤do_store_itemБ─≥:
memcached.c:2126: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:2126: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:2143: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:2144: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:2157: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:2159: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:2159: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:2201: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c:2213: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c: In function Б─≤process_get_commandБ─≥:
memcached.c:2591: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c: In function Б─≤process_update_commandБ─≥:
memcached.c:2750: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
memcached.c: In function Б─≤do_add_deltaБ─≥:
memcached.c:2869: error: dereferencing type-punned pointer will break 
strict-aliasing
rules
make[2]: *** [memcached-memcached.o] Error 1
make[2]: Leaving directory `/root/memcached-1.4.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/memcached-1.4.4'
make: *** [all] Error 2

Original comment by i...@quintura.com on 12 Mar 2010 at 8:22

GoogleCodeExporter commented 9 years ago
I'm seeing the same errors as reported above for both

 ./configure CC="gcc-4.4" ...
 ./configure CC="gcc-4.5" ...

fwiw,

 ./configure CC="gcc-4.3" ...

works just fine.

Original comment by BenDJ095...@gmail.com on 2 Apr 2010 at 10:28

GoogleCodeExporter commented 9 years ago
CC=gcc-4.3; ./configure

gives me similar gcc errors, followed by

mv -f .deps/memcached-util.Tpo .deps/memcached-util.Po
make[2]: *** [memcached-memcached.o] Error 1
make[2]: Leaving directory `/home/.../LAMP/memcached-1.4.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/.../LAMP/memcached-1.4.5'
make: *** [all] Error 2

Original comment by soleylev...@gmail.com on 13 Sep 2010 at 12:08

GoogleCodeExporter commented 9 years ago
dupe of issue #60

http://code.google.com/p/memcached/issues/detail?id=60

Original comment by lind...@inuus.com on 13 Sep 2010 at 5:44

GoogleCodeExporter commented 9 years ago
This should be fixed in 1.4.6, please reopn if it's not.

Original comment by dorma...@rydia.net on 12 Jul 2011 at 11:14