[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with ports_manage_port_operations_multithread
From: |
Neal H Walfield |
Subject: |
Re: Problem with ports_manage_port_operations_multithread |
Date: |
Thu, 14 Jun 2001 21:05:24 -0500 |
User-agent: |
Mutt/1.3.18i |
> I am currently trying to learn how to write translator and I have used the
> trans/hello.c and trans/hello-mt.c files.
> I didn't have any problem with trans/hello.c but the trans/hello-mt.c
> doesn't work.
> I managed to compile it using gcc -g -o hello-mt hello-mt.c -ltrivfs
> -lfshelp -lports, and it starts alright, but as soon as I try to access the
> device file, it fails.
> I debugged it using gdb and the error is EXC_BAD_INSTRUCTION in
> cthread_fork_child.
>
> Any thoughts?
Try inserting `-lthreads' before `-lports' and appending `-lihash
-lshouldbeinlibc'.
pgpTrSiuWmePy.pgp
Description: PGP signature