1 |
Solution ... |
2 |
|
3 |
--- src/ORBitutil/os-feature-alloca.h 2000-01-18 11:36:13.000000000 |
4 |
-0500 |
5 |
+++ src/ORBitutil/os-feature-alloca.h 2002-02-10 02:39:26.000000000 |
6 |
-0500 |
7 |
@@ -9,7 +9,7 @@ |
8 |
|
9 |
# if defined(__GNUC__) |
10 |
|
11 |
-# if defined(__STRICT_ANSI__) |
12 |
+# if defined(__STRICT_ANSI__) && !defined(alloca) |
13 |
# define alloca __builtin_alloca |
14 |
# endif |
15 |
|
16 |
Should be in a future ORBit. I'll post ebuilds when I'm done testing my |
17 |
packages ... ORBit, oaf, bonobo, gnome-applets and a few others. |
18 |
|
19 |
On Sun, 2002-02-10 at 01:08, Edward Muller wrote: |
20 |
> I put together some slightly newer ebuilds for ORBit, oaf ,bonobo. The |
21 |
> main motivation beign that they were supposed to fix a bug in that I was |
22 |
> having in evolution (according to the evolution mailing list anway). |
23 |
> Well they fixed the bug ... but ... |
24 |
> |
25 |
> I also started looking into what other gnome software hasn't been |
26 |
> updated so I started updating the ebuilds for those .... until ... |
27 |
> |
28 |
> I ran across the gnome-applets ebuild... |
29 |
> |
30 |
> My current ebuild dies compiling with the following error: |
31 |
> |
32 |
> make[1]: Entering directory |
33 |
> `/var/tmp/portage/gnome-applets-1.4.0.5/work/gnome-applets-1.4.0.5/charpick' |
34 |
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I../intl -I../intl |
35 |
> -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -I/usr/local/include |
36 |
> -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H |
37 |
> -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 |
38 |
> -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 |
39 |
> -I/usr/X11R6/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H |
40 |
> -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 |
41 |
> -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 |
42 |
> -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 |
43 |
> -I/usr/lib/glib/include -I/usr/X11R6/include -ansi -Werror |
44 |
> -Wmissing-prototypes -Wmissing-declarations -c charpick.c |
45 |
> In file included from /usr/include/orbit-1.0/ORBitutil/os-specifics.h:6, |
46 |
> from /usr/include/orbit-1.0/ORBitutil/util.h:34, |
47 |
> from /usr/include/orbit-1.0/IIOP/IIOP.h:5, |
48 |
> from /usr/include/orbit-1.0/orb/orbit.h:55, |
49 |
> from /usr/include/gnome-1.0/libgnorba/gnorba.h:4, |
50 |
> from /usr/include/applet-widget.h:12, |
51 |
> from charpick.c:6: |
52 |
> /usr/include/orbit-1.0/ORBitutil/os-feature-alloca.h:13: warning: |
53 |
> `alloca' redefined |
54 |
> /usr/include/alloca.h:36: warning: this is the location of the previous |
55 |
> definition |
56 |
> make[1]: *** [charpick.o] Error 1 |
57 |
> make[1]: Leaving directory |
58 |
> `/var/tmp/portage/gnome-applets-1.4.0.5/work/gnome-applets-1.4.0.5/charpick' |
59 |
> make: *** [all-recursive] Error 1 |
60 |
> |
61 |
> |
62 |
> So I took a look ... and /usr/include/alloca.h defines alloca as ... |
63 |
> |
64 |
> define alloca(size) __builtin_alloca (size) |
65 |
> |
66 |
> and /usr/include/orbit-1.0/ORBitutil/os-feature-alloca.h defines alloca |
67 |
> as ... |
68 |
> |
69 |
> define alloca __builtin_alloca |
70 |
> |
71 |
> This can't be right? Should I patch and re-build orbit with the correct |
72 |
> defs as a work around? Should I bring this up on the orbit list? |
73 |
> |
74 |
> Sorry if the questions are pretty basic (C wise) but I don't do much C |
75 |
> stuff (but I'm trying to learn ... hence the question). |
76 |
> |
77 |
> _______________________________________________ |
78 |
> gentoo-dev mailing list |
79 |
> gentoo-dev@g.o |
80 |
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev |