[Top][All Lists]

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

Re: gsnd compile trouble on solaris

From: Robert Slover
Subject: Re: gsnd compile trouble on solaris
Date: Sat, 07 Sep 2002 05:38:43 -0500

I've encountered this a number of times when porting to Solaris.  Solaris
(at least 2.7 and below, I don't know about newer versions) does not
have 'flock()'.  You can implement your own flock in terms of lockf().
The caveats are that lockf doesn't handle all of the options of flock()
(shared locking is missing, IIRC).  What I did was find a linux flock()
man page and implement an 'flock.c' that uses lockf() underneath and
returns the same result codes.  If my Sparc weren't down right now, I'd
grab you some code.  Googling might turn up something, as I am sure
others have encountered this.  You might also look at fcntl()...I don't
remember if it does shared locks on Solaris or not.  Something has to.
I haven't had to do this in a couple of years or so, or I would remember.



Wim Bakker wrote:

> On Thu, 05 Sep 2002 12:34:57 -0600
> Adam Fedor <address@hidden> wrote:
> > Wim Bakker wrote:
> > > Hello,
> > > Is it possible to disable gsnd during configure??
> >
> > configure checks for libaudiofile to determine whether to compile gsnd
> > or not, although that's a real indirect check. Perhaps I should add some
> > more checks.
> >
> Yes , I edited the configure script and removed gsnd and now it did build ok.
> I have libaudiofile installed on the solaris machine because it is used by
> other programs, but gsnd is not (yet?) ready for solaris I think.
> My next problem is GNUMail, I get a linker error:
>  Linking app GNUMail ...
> Undefined                       first referenced
>  symbol                             in file
> flock                               
> shared_obj/sparc/solaris2.9/gnu-gnu-gnu/LocalMailDelivery.o
> ld: fatal: Symbol referencing errors. No output written to 
> GNUMail.app/sparc/solaris2.9/gnu-gnu-gnu/GNUMail
> collect2: ld returned 1 exit status
> gmake[1]: *** [GNUMail.app/sparc/solaris2.9/gnu-gnu-gnu/GNUMail] Error 1
> gmake: *** [GNUMail.all.app.variables] Error 2
> Any idea what might be causing this??
> Wim Bakker
> --
> (remove X)
> _______________________________________________
> Discuss-gnustep mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep

reply via email to

[Prev in Thread] Current Thread [Next in Thread]