Re: mc-4.5.30 compilation
- From: Adam Moyes <adam macfar demon co uk>
- To: Brian M Dial <bdial rkkengineers com>
- CC: Federico Mena Quintero <federico nuclecu unam mx>, gnome-list gnome org
- Subject: Re: mc-4.5.30 compilation
- Date: Tue, 13 Apr 1999 10:31:40 +0100
Brian M Dial wrote:
>
> Wierd. I wound up pasting this into gscreen.c
>
> #define MAX(a, b) (((a) > (b)) ? (a) : (b))
>
> It compiled fine. I've had this problem earlier this week in several
> gnome packages but it was INT_MAX that was comming up undefined.
> INT_MAX is defined in limits.h which was included in whatever files (i
> remember gnome-core having this problem) were having problems, and gcc
> was getting the -I/usr/include, but it would just not include them. I
> thought this may be a problem with the 4.0beta tree but someone in 3.6
> reported that problem too. Wierd. ANyway, just copying that #define
> fixed gmc, and i'm up and going. Thank you
>
> -Brian
>
> Federico Mena Quintero wrote:
> >
> > > Blah, i'm thinking this has to be associated with the problem i was
> > > having with INT_MAX although this seems to be a function not a
> > > definition
> > >
> > > Compiing mc-4.5.30 on slackware 4.0 beta with egcs 1.1.2 glib/gtk 1.2.1,
> > > gnome-libs-1.0.8 (everything in gnome latest)
> > >
> > > In gscreen.c:951 there's
> > > if (MAX (abs (panel->click_x - event->x),
> > > abs (panel->click_y - event->y)) <= 3)
> > > return FALSE;
> > >
> > > I'm getting undefinfed references to that MAX function. I've been
> > > looking through all the header files included within gscreen.c but can't
> > > find any definition for it. Output from failed compilation is below
> >
> > This is weird, since the MAX macro is defined in glib.h, and this is
> > being included by gscreen.c.
> >
You could try doing the make to get the compile command on the screen, and then
pasting a copy of the command to the curent command line, replace the `-c' with
a `-E' and pipe the result to ``less''.
To do this you will have to go into the gnome directory and type ``make gscreen.o''
The altered command will look something like:
gcc -E -I.. -I./.. -I../slang -I./../vfs -I./../slang -I.. -DBINDIR=\""/usr/local/gnome/bin/"\"
-DLIBDIR=\""/usr/local/gnome/lib/mc/"\" -DICONDIR=\""/usr/local/gnome/share/pixmaps/mc/"\"
-DLOCALEDIR=\""/usr/local/gnome/share/locale/"\" -DCONFDIR=\""/usr/local/gnome/etc/"\"
-DDESKTOP_INIT_DIR=\""/usr/local/gnome/lib/mc/desktop-scripts/"\" -I./../vfs -DHAVE_X -DHAVE_GNOME
-I/usr/local/gnome/include -DNEED_GNOMESUPPORT_H -I/usr/local/gnome/lib/gnome-libs/include
-I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include -DHAVE_CONFIG_H -g -g
-I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include -I. -I./../src gscreen.c |
less
This runs only the C preprocessor and outputs the result to the pager ``less''.
search the output for the MAX definition, or if not found, a reference to glib.h.
you should get an idea from that.
Adam.
--
Signs of crime: screaming or cries for help.
-- from the Brown Security Crime Prevention Pamphlet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]