ports/149049: [patch] editors/emacs-devel: silence warning: 'alloca' macro redefined

Anonymous swell.k at gmail.com
Wed Jul 28 22:50:02 UTC 2010


>Number:         149049
>Category:       ports
>Synopsis:       [patch] editors/emacs-devel: silence warning: 'alloca' macro redefined
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 28 22:50:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
During build there is one noisy warining that affects every source file
that includes config.h.
>How-To-Repeat:
(same for gcc42 and gcc45)

  $ make
  ...
  clang -c -I/usr/pkg/include -Demacs -DHAVE_CONFIG_H  -I. -I/a/pkgbuild/a/freebsd-ports/editors/emacs-devel/work/emacs-24.0.50.100884/src               -Wold-style-definition -Wdeclaration-after-statement -Wno-pointer-sign  -O2 -pipe -march=native -fno-strict-aliasing ccl.c
  In file included from ccl.c:27:
  ./config.h:1143:10: warning: 'alloca' macro redefined
  # define alloca __builtin_alloca
           ^
  In file included from ccl.c:27:
  In file included from ./config.h:1137:
  /usr/include/stdlib.h:233:9: note: previous definition is here
  #define alloca(sz) __builtin_alloca(sz)
          ^
>Fix:
--- a.diff begins here ---
Index: editors/emacs-devel/files/patch-config.in
===================================================================
RCS file: editors/emacs-devel/files/patch-config.in
diff -N editors/emacs-devel/files/patch-config.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ editors/emacs-devel/files/patch-config.in	10 Jul 2010 16:42:44 -0000
@@ -0,0 +1,11 @@
+--- src/config.in~
++++ src/config.in
+@@ -1138,6 +1138,8 @@ SYSTEM_PURESIZE_EXTRA seems like the lea
+ 
+ #ifdef HAVE_ALLOCA_H
+ # include <alloca.h>
++#elif __FreeBSD__
++# include <stdlib.h>
+ #elif defined __GNUC__
+ # define alloca __builtin_alloca
+ #elif defined _AIX
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list