Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xfree-4.3.0-r5 on my PowerBook g4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
rsumner
n00b
n00b


Joined: 04 Mar 2004
Posts: 7
Location: Austin, TX

PostPosted: Thu Mar 04, 2004 5:02 pm    Post subject: xfree-4.3.0-r5 on my PowerBook g4 Reply with quote

Well, I started to run "emerge --update world" on my "PowerBook G4" (ppc) last night and got an error when compiling xfree-4.3.0-r5.

--------------
In file included from text-mode.c:47:
loader.h:78: unnamed fields of type other than struct or union are not allowed
make[5]: *** [text-mode.o] Error 1
make[5]: Leaving directory '/var/tmp/portage/xfree-4.3.0-r5/work/xc/programs/Xserver/hw/xfree86/xf86cfg'
-------------
I went ahead and looked in loader.h on line 78 and found (prefaced with the line number):

74 typedef union {
75 unsigned long num;
76 char * str;
77 double realnum;
78 Bool bool;
79 OptFrequency freq;
80 } ValueUnion;

I'm using the following versions of the needed apps:
gcc 3.2.3
make 3.80
binutils 2.14.90.0.6

Any help would be greatly appreciated. This may be a bug in the loader.h file -- not sure.
Back to top
View user's profile Send private message
LoneStar92c
n00b
n00b


Joined: 03 Mar 2004
Posts: 5

PostPosted: Thu Mar 04, 2004 8:10 pm    Post subject: Re: xfree-4.3.0-r5 on my PowerBook g4 Reply with quote

rsumner wrote:
Well, I started to run "emerge --update world" on my "PowerBook G4" (ppc) last night and got an error when compiling xfree-4.3.0-r5.

--------------
In file included from text-mode.c:47:
loader.h:78: unnamed fields of type other than struct or union are not allowed
make[5]: *** [text-mode.o] Error 1
make[5]: Leaving directory '/var/tmp/portage/xfree-4.3.0-r5/work/xc/programs/Xserver/hw/xfree86/xf86cfg'
-------------
I went ahead and looked in loader.h on line 78 and found (prefaced with the line number):

74 typedef union {
75 unsigned long num;
76 char * str;
77 double realnum;
78 Bool bool;
79 OptFrequency freq;
80 } ValueUnion;.


I've googled on this until my googler got blisters.
I found one discussion at http://www.mail-archive.com/xfree86@xfree86.org/msg13369.html that recognized the problem being in ncurses (pertaining to the 'bool' statement) and to change certain things would break a lot of things.
I have a PC with xfree-4.3.0 that works just fine. so I compared the PC with the PPC I'm installin on now that has the failure problem. The PC has ncurses-5.3.-r5 and the PPC has ncurses-5.4

I have executed 'emerge -v =ncurses-5.3-r5' on the PPC and am now emerging xfree again.
This will take a few hours, so I'll let you know if it is sucessful.
_________________
----------
Sistumz Injunear
Back to top
View user's profile Send private message
rsumner
n00b
n00b


Joined: 04 Mar 2004
Posts: 7
Location: Austin, TX

PostPosted: Thu Mar 04, 2004 10:58 pm    Post subject: updated ncurses Reply with quote

Well, I updated curses and a bunch of other CRAP and it still won't compile. The whole thing compiles and it starts to do the install, which is where it compiles xf86cfg and this is where it fails.

From your note, it looks to apply this patch would be the fix. Now, if I can figure out how to do that with emerge...Ugggg:

Submitted By: Kelledin (kelledin at users dot sourceforge dot net)
Date: 2004-02-18
Initial Package Version: 4.3.0
Upstream Status: Reported to maintainers
Origin: Kelledin
Description: XFree86 4.3.x uses a loaded name ("bool") for a union type field.
This causes nasty compile problems when other stuff (like
ncurses-5.4) includes the <stdbool.h> header. This patch is a
workaround for this issue.

diff -Naur xc/programs/Xserver/hw/xfree86/common/xf86Opt.h xc-bool/programs/Xserver/hw/xfree86/common/xf86Opt.h
--- xc/programs/Xserver/hw/xfree86/common/xf86Opt.h 2001-05-04 14:05:30.000000000 -0500
+++ xc-bool/programs/Xserver/hw/xfree86/common/xf86Opt.h 2004-02-18 14:27:07.000000000 -0600
@@ -5,6 +5,10 @@
#ifndef _XF86_OPT_H_
#define _XF86_OPT_H_

+#ifdef bool
+# undef bool
+#endif
+
typedef struct {
double freq;
int units;
diff -Naur xc/programs/Xserver/hw/xfree86/xf86cfg/loader.h xc-bool/programs/Xserver/hw/xfree86/xf86cfg/loader.h
--- xc/programs/Xserver/hw/xfree86/xf86cfg/loader.h 2001-07-09 18:45:24.000000000 -0500
+++ xc-bool/programs/Xserver/hw/xfree86/xf86cfg/loader.h 2004-02-18 14:26:51.000000000 -0600
@@ -66,6 +66,10 @@

#ifndef LOADER_PRIVATE
/* common/xf86Opt.h */
+#ifdef bool
+# undef bool
+#endif
+
typedef struct {
double freq;
int units;
Back to top
View user's profile Send private message
LoneStar92c
n00b
n00b


Joined: 03 Mar 2004
Posts: 5

PostPosted: Thu Mar 04, 2004 11:30 pm    Post subject: Re: updated ncurses Reply with quote

rsumner wrote:
Well, I updated curses and a bunch of other CRAP and it still won't compile. The whole thing compiles and it starts to do the install, which is where it compiles xf86cfg and this is where it fails.


hmmmmm ........
After I downgraded ncurses, xfree compiled without errors.
I've run xf86conf (Xeasyconf for the PPC) and I'm starting the emerge of KDE now.
_________________
----------
Sistumz Injunear
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Tue Mar 09, 2004 3:59 pm    Post subject: Reply with quote

this thread says which version of ncurses to downgrade to:

https://forums.gentoo.org/viewtopic.php?p=939001#939001
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum