Re: gmc wont compile (undefined "MAX" reference ingscreen.c)



The good news is it's easy to fix!

But much harder to explain why (so I have no idea :-)

Just add: 
	#define MAX(a, b) (((a) > (b)) ? (a) : (b))
after the #includes in ./gnome/gscreen.c

Paul.

Asten wrote:
> 
> Greetings!!
> 
> I know that this is maybe a silly question, but I dont know better, so here
> I
> go:
> 
> When trying to compile the midnight command version 4.5.30 for
> gnome (I have all
> the latest gnome sources form the web page), i get the following error:
> 
> ===Cut===
> make[2]: Entering directory `/home/asten/todo/done/mc-4.5.30/gnome'
> gcc -o plain-gmc ... (many objfiles) gprint.o gprop.o
> gnome-file-property-dialog.o gnome-open-dialog.o gscreen.o
> gsession.o gtools.o
> gtree.o gutil.o gview.o gtkdtree.o gtkflist.o gwidget.o -L../vfs -lvfs-mc
> -L../gtkedit -lgtkedit   -rdynamic -L/usr/local/lib -L/usr/X11R6/lib
> -rdynamic
> -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule
> -lXext -lX11
> -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb -lglib -ldl
> -L/usr/local/lib
> -lglib
> 
> gscreen.o: In function `panel_widget_motion':
> /home/asten/todo/done/mc-4.5.30/gnome/gscreen.c:951: undefined
> reference to
> `MAX'
> make[2]: *** [plain-gmc] Error 1
> 
> I am trying to install gnome for the sources; my gcc is 2.7.2.3; my libc is
> libc.so.5.46;
> 
> I have all the other madatory gnome pkgs installed;
> 
> 
> My linux box has a 2.1.130 kernel, its a i586 m,achine running slackware
> 3.4
> (originally), altough I have installed much stuff from sources..
> 
> Thank you all for your help in advance!!!
> 
> Thnx&
> 
> See you,
> 
> Christian Fuchs
> 
> e-mail: asten@werwolf.com
> UIN: 398213
> 
> "get a taste for religion - lick a witch"
> 
> --
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with
>                        "unsubscribe" as the Subject.

-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~ Paul Barnfather ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
|  plb@clanger9.demon.co.uk  paul.barnfather@northern-electric.co.uk |
|      __           http://www.clanger9.demon.co.uk    .             |
     o--o-... 75TS                                    o'~o... 750SS



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