Re: compilation



On Nov 03 2000 20:59 sridhar@coolmail.net wrote:
> Can anyone help with this problem:
> 
> I'm compiling balsa under a UltraSPARC-60 Solaris 2.8 with GCC 2.95.2.
> 
> Anyway, here is the error:
> 
> gcc -DSHAREDIR=\"/usr/local/share\" -DSYSCONFDIR=\"/usr/local/etc\" -DLIBMUTT -I. -I./imap    -g -O2 -c mx.c
> mx.c: In function `mx_lock_file':
> mx.c:203: `LOCK_EX' undeclared (first use in this function)
> mx.c:203: (Each undeclared identifier is reported only once
> mx.c:203: for each function it appears in.)
> mx.c:203: `LOCK_SH' undeclared (first use in this function)
> mx.c:203: `LOCK_NB' undeclared (first use in this function)
> mx.c:250: `LOCK_UN' undeclared (first use in this function)
> mx.c: In function `mx_unlock_file':
> mx.c:271: `LOCK_UN' undeclared (first use in this function)
> make[2]: *** [mx.o] Error 1
> make[2]: Leaving directory `/users/hehe/programs/source/balsa-1.0.pre5/libmutt'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/users/hehe/programs/source/balsa-1.0.pre5/libmutt'
> make: *** [all-recursive-am] Error 2
> 
> 
> It seems that there constants (LOCK_XX) are not defined. Is there a system include file which should contains these?
> 
> Or, if you know the values for these variables, please let me know so I can edit the program to fix it.
> 

I'm pretty sure that configuring balsa with:

--disable-flock --enable-fcntl  

Should fix your problem.

MBG

-- 
  Matthew Guenther                       Houston, Tranquillity Base here.
  guentherm@asme.org                     The Eagle has landed.
  http://www.attcanada.ca/~mguenthe/     		-- Neil Armstrong




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