From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1eaa3e69c61ea63d X-Google-Attributes: gidfee84,public From: Pierre-Luc Boucheron Subject: Re: gnu make compilation probs Date: 1997/06/16 Message-ID: <33A55274.2781@seinf.unige.ch>#1/1 X-Deja-AN: 248840936 References: <33a119ba.0@rainbow.hrz.uni-siegen.de> Organization: University of Geneva Newsgroups: comp.unix.osf.osf1 Pedro Saraiva wrote: > > Hi folks, > > I am in the stage of compiling gnu make. Unfortunately I get the following > error during compilation > > cd glob; make libglob.a > gcc -I. -I. -c -DSTDC_HEADERS=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRI > NG_H=1 -DHAVE_DIRENT_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRCOLL=1 -g > -O glob.c > glob.c: In function `glob': > glob.c:356: `GLOB_MAGCHAR' undeclared (first use this function) > glob.c:356: (Each undeclared identifier is reported only once > glob.c:356: for each function it appears in.) > glob.c: In function `glob_in_dir': > glob.c:573: `GLOB_MAGCHAR' undeclared (first use this function) > *** Exit 1 > Stop. > *** Exit 1 > Stop. > > I know that this error is somehow related with glob.h but I can't figure out > what is really going on. Can someone point me to the solution ? Thanks in > advance, > > Pedro I'm not sure but I think that I've already seen this error message... Compiling glob.c with _BSD_SOURCE defined ( -D_BSD_SOURCE ) should works. Hope this helps ... -- Pierre-Luc Boucheron Tel: (+41 22) 705 7578 Services Informatiques Secr.: (+41 22) 705 7568 University of Geneva Fax: (+41 22) 705 7986 Rue General-Dufour, 24 mailto:Pierre-Luc.Boucheron@seinf.unige.ch 1211 Geneva 4 / Switzerland http://www.unige.ch/~bouchero