Hi,

On Thu, 2002-12-05 at 10:30, Eero af Heurlin wrote:
> >
> > ... again it doesn't find the header files that declare flock, LOCK_EX
> > and LOCK_UN. It still doesn't have the '-I/usr/include' line. If you
> > can't get it done by configure options or environment variables, you
> > might want to go into the lib/src/Makefile and edit the first line
> > starting with INCLUDES
> > 
> 
> This is getting rather frustrating, getting almost the same errors over 
> and over again and now it should be including the file.h. Anyone happen 
> to have got midgard compiled on solaris 9 sparc (Sun Fire 120 to be 
> specific) ?

Sorry, can't help on that one. I sympathize however, I've been in
situations too where Solaris wasn't my friend...

> midgard.c: In function `mgd_log_debug_default':
> midgard.c:61: warning: implicit declaration of function `fileno'
> midgard.c:63: warning: implicit declaration of function `flock'
> midgard.c:63: `LOCK_EX' undeclared (first use in this function)
> midgard.c:63: (Each undeclared identifier is reported only once
> midgard.c:63: for each function it appears in.)
> midgard.c:110: `LOCK_UN' undeclared (first use in this function)

The missing flock seems to be Solaris specific, on google I found:

Paul,
        Some thoughts on Solaris...

        flock is the ucb version of lockf (or vice-versa). Try setting both
-DSYSV and -DSVR4 in the makefile to try and make it use lockf instead.
If that doesn't work, try -I/usr/ucbinclude. Since this is a ucb
function, the definition of LOCK_EX and LOCK_UN is under /usr/ucbinclude
rather than under /usr/include (/usr/ucbinclude/sys/file.h to be exact).

Just hoping this will get you somewhere, I can't get my hands on a
Solaris 9 box right now.

wkr,
 
-- 
Envida                     http://www.envida.net/
Armand A. Verstappen       Graadt van Roggenweg 328
[EMAIL PROTECTED]       3531 AH Utrecht
tel: +31 (0)30 298 2255    Postbus 19127
fax: +31 (0)30 298 2111    3501 DC Utrecht

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to