Opened 12 years ago
Closed 10 years ago
#38604 closed defect (worksforme)
memcached @1.4.14 build fails while libc-headers is active due to -Werror
Reported by: | cooljeanius (Eric Gallager) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | memcached |
Description
An example from the log:
In file included from memcached.c:43: /opt/local/include/string.h:172: warning: redundant redeclaration of ‘swab’ /opt/local/include/unistd.h:624: warning: previous declaration of ‘swab’ was here /usr/bin/llvm-gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -DNDEBUG -I/opt/local/include -I/opt/local/include -m64 -pipe -O2 -arch x86_64 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -c -o memcached-assoc.o `test -f 'assoc.c' || echo './'`assoc.c make[2]: *** [memcached-items.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [memcached-slabs.o] Error 1 make[2]: *** [memcached-memcached.o] Error 1 cc1: warnings being treated as errors
I'd vote for just removing the -Werror
flag.
Attachments (1)
Change History (4)
Changed 12 years ago by cooljeanius (Eric Gallager)
comment:2 Changed 10 years ago by cooljeanius (Eric Gallager)
Now that libc-headers installs elsewhere (as of r117043), this should no longer be an issue. To confirm, I have now been able to install newer versions of memcached successfully:
$ port installed memcached The following ports are currently installed: memcached @1.4.15_0+sasl+umem+universal memcached @1.4.15_0+universal memcached @1.4.17_0+sasl+umem+universal (active)
comment:3 Changed 10 years ago by mf2k (Frank Schima)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
main.log from memcached's failed build