Re: Error compiling gnome core 1.0.41



[Perhaps some of this information could be added to the FAQ.]

To compile GNOME on libc 5 systems, you will need to hand-compile several
source files, removing all instances of -I/usr/include.  This is a strange bug
which I never got around to pinpointing exactly.  What it boils down to is that
gcc 2.7.2.3 (and probably other versions) under libc 5 includes header files in
a different order if you manually specify -I/usr/include.  This only affects
the source files that use INT_MAX and similar constants.  I've also found that
you must compile libgnome (part of gnome-libs) with -D_REENTRANT under libc 5
or many GNOME programs will crash on startup.  The other unusual aspect of my
libc 5 system is that I recompiled all of the X libraries -D_REENTRANT, which
may or may not be required for GNOME to work properly.  (It was required to
compile a threaded Wine.)

You will also need linuxthreads for libc 5 installed, but I assume you already
do if you're gotten this far.

John

In message <199909291005.GAA06358@calainar.pennswald.pri>, "Kevin D. Knerr, Sr.
" writes:

>I've scratched my head, revised the Makefile, and the include statements      
>                                
>to no avail.  While compiling gnome-core-1.0.41, I get the following:         
>                                
>                                                                              
>                                
>/----- start -----/                                                           
>                                
>gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.        -I../intl                     
>                                
>-I../intl      -I../panel                                                     
>                                
>-DGNOMELOCALEDIR=\""/usr/share/locale"\"        -I/usr/include                
>                                
>-I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include            
>                                
>-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/glib/include          
>                                
>-I/usr/include  -I/usr/X11R6/include -I/usr/lib/glib/include  -g -O2          
>                                
>-Wall -Wno-unused  -c session.c                                               
>                                
>session.c: In function `load_default_applets':                                
>                                
>session.c:669: `INT_MAX' undeclared (first use this function)                 
>                                
>session.c:669: (Each undeclared identifier is reported only once              
>                                
>session.c:669: for each function it appears in.)                              
>                                
>session.c: In function `init_user_applets':                                   
>                                
>session.c:721: `INT_MAX' undeclared (first use this function)                 
>                                
>make[2]: *** [session.o] Error 1                                              
>                                
>make[2]: Leaving directory                                                    
>                                
>`/u/barthel/src/gnome/gnome-core-1.0.41/panel'                                
>                                
>make[1]: *** [all-recursive] Error 1                                          
>                                
>make[1]: Leaving directory `/u/barthel/src/gnome/gnome-core-1.0.41'           
>                                
>make: *** [all-recursive-am] Error 2                                          
>                                
>/----- end -----/                                                             
>                                
>                                                                              
>                                
>I'm running Slackware 4.0 (libc5), w/ kernel 2.2.12. All prerequisite         
>                                
>libs/apps have been installed/updated. INT_MAX is defined in                  
>                                
>/usr/include/limits.h, which is #included in session.c. ./configure was       
>                                
>run w/ "--prefix=/usr --with-included-gettext"                                
>                                
>                                                                              
>                                
>Anyone have any bright ideas?????                                             
>                                
>                                                                              
>                                
>TIA                                                                           
>                                
>
>Barthel
>-- 
> kknerrsr@ptdprolog.net | http://geocities.com/Area51/Shire/4063
>      Organization: The Pennswald Group -- Linux powered!!
>
>If a train station is where the train stops, what is a work station?
>
>
>-- 
>        FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>         To unsubscribe: mail gnome-list-request@gnome.org with 
>                       "unsubscribe" as the Subject.
>

--
John GOTTS <jgotts@linuxsavvy.com>  http://www.linuxsavvy.com/staff/jgotts



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]