9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] postmountsrv reference?
@ 2006-07-27  2:29 ISHWAR RATTAN
  2006-07-27  4:02 ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: ISHWAR RATTAN @ 2006-07-27  2:29 UTC (permalink / raw)
  To: 9fans


What library might contain postmountsrv():
lib9p?

I keep on getting undefined reference to postmountsrv().

-ishwar



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] postmountsrv reference?
  2006-07-27  2:29 [9fans] postmountsrv reference? ISHWAR RATTAN
@ 2006-07-27  4:02 ` Russ Cox
  2006-07-27 14:41   ` ISHWAR RATTAN
  0 siblings, 1 reply; 4+ messages in thread
From: Russ Cox @ 2006-07-27  4:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Make sure you #include <9p.h> in the source files
that use it.  Then postmountsrv (and the rest of lib9p)
will link in automatically.

On 7/26/06, ISHWAR RATTAN <rattan@cps.cmich.edu> wrote:
>
> What library might contain postmountsrv():
> lib9p?
>
> I keep on getting undefined reference to postmountsrv().
>
> -ishwar
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] postmountsrv reference?
  2006-07-27  4:02 ` Russ Cox
@ 2006-07-27 14:41   ` ISHWAR RATTAN
  2006-07-27 15:27     ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: ISHWAR RATTAN @ 2006-07-27 14:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Forgot to mention that it is plan9port question.
----------
Includes:

#include <u.h>
#include <libc.h>
#include <auth.h>
#include <fcall.h>
#include <thread.h>
#include <9p.h>

Error:
9l  serv.o
serv.o: In function `p9main':/media/hda6/home/ishwar/serv.c:90: undefined reference to `postmountsrv'
collect2: ld returned 1 exit status

Even tried:
SHORTLIB=9p

in mkfile.
--------------
-ishwar

On Wed, 26 Jul 2006, Russ Cox wrote:

> Make sure you #include <9p.h> in the source files
> that use it.  Then postmountsrv (and the rest of lib9p)
> will link in automatically.
>
> On 7/26/06, ISHWAR RATTAN <rattan@cps.cmich.edu> wrote:
>>
>> What library might contain postmountsrv():
>> lib9p?
>>
>> I keep on getting undefined reference to postmountsrv().
>>
>> -ishwar
>>
>>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] postmountsrv reference?
  2006-07-27 14:41   ` ISHWAR RATTAN
@ 2006-07-27 15:27     ` Russ Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2006-07-27 15:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> 9l  serv.o
> serv.o: In function `p9main':/media/hda6/home/ishwar/serv.c:90: undefined reference to `postmountsrv'
> collect2: ld returned 1 exit status

There is no postmountsrv on plan9port.  That would require
a shared memory fork.  Instead you should use the thread
library and threadpostmountsrv.

Russ


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-27 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-27  2:29 [9fans] postmountsrv reference? ISHWAR RATTAN
2006-07-27  4:02 ` Russ Cox
2006-07-27 14:41   ` ISHWAR RATTAN
2006-07-27 15:27     ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).