Trouble linker

34 views
Skip to first unread message

Kaj Toet

unread,
May 14, 2012, 2:00:20 PM5/14/12
to minix3
I'm trying to built the chardriver, however I get undefined references
in libsys.a, for chardriver_task, chardriver_announce, and the nop*
calls. Any idea how to solve this? I used the same makefile as in the
tutorial.

pikpik

unread,
May 15, 2012, 9:46:38 AM5/15/12
to minix3
Hi,

On May 14, 2:00 pm, Kaj Toet wrote:

> I'm trying to built the chardriver, however I get undefined references
> in libsys.a, for chardriver_task, chardriver_announce, and the nop*
> calls.

Are you trying to build the system with or without modifications?

> Any idea how to solve this? I used the same makefile as in the
> tutorial.

I'm not quite sure what you're doing, so it would help if you could
explain a few more details.

Could you please post the information suggested by the following page?

http://wiki.minix3.org/en/GettingHelp#Be_Detailed_and_Clear

Thank you,
pikpik

Kaj Toet

unread,
May 15, 2012, 9:55:08 AM5/15/12
to minix3
Hi,

I'm running the latest Minix 3 version (from the download page) in
Virtualbox.

I mistakenly said I was building the chardriver, but I did try to use
the chardriver as with the example here:
http://wiki.minix3.org/en/DevelopersGuide/DriverProgramming

I followed every step accordingly. However, as said I get undefined
references (in libsys.a, for chardriver_task, chardriver_announce, and
the nop*
calls) when compiling the example (linker errors).

I do not think I needed to install extra packages (as far as I know).

Thank you for you time,

kutkut

Tomas Hruby

unread,
May 16, 2012, 2:20:37 AM5/16/12
to min...@googlegroups.com
On Tue, May 15, 2012 at 06:46:38AM -0700, pikpik wrote:
> Hi,
>
> On May 14, 2:00�pm, Kaj Toet wrote:
>
> > I'm trying to built the chardriver, however I get undefined references
> > in libsys.a, for chardriver_task, chardriver_announce, and the nop*
> > calls.

In libsys.a???

Are you linking with libchardriver?

T.

>
> Are you trying to build the system with or without modifications?
>
> > Any idea how to solve this? I used the same makefile as in the
> > tutorial.
>
> I'm not quite sure what you're doing, so it would help if you could
> explain a few more details.
>
> Could you please post the information suggested by the following page?
>
> http://wiki.minix3.org/en/GettingHelp#Be_Detailed_and_Clear
>
> Thank you,
> pikpik
>
> --
> You received this message because you are subscribed to the Google Groups "minix3" group.
> To post to this group, send email to min...@googlegroups.com.
> To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/minix3?hl=en.
>

Kaj Toet

unread,
May 16, 2012, 1:23:58 PM5/16/12
to minix3
Yes, I am linking with libchardriver.

pikpik

unread,
May 20, 2012, 10:04:15 PM5/20/12
to minix3
Hi,

On May 15, 9:55 am, Kaj Toet wrote:


> I mistakenly said I was building the chardriver, but I did try to use
> the chardriver as with the example here:
> http://wiki.minix3.org/en/DevelopersGuide/DriverProgramming

I followed the guide as well, and I found that it is a bit outdated in
some places. In some places I had to deviate from the examples to
avoid errors or other problems. From what I saw, the first and second
Hello driver examples basically worked, while the Time driver example
had many errors.

> I followed every step accordingly. However, as said I get undefined
> references (in libsys.a, for chardriver_task, chardriver_announce,

I don't remember seeing these.

> and the nop* calls) when compiling the example (linker errors).

I did see this for nop_signal. I used "nop_alarm" instead, since it
seems to have the same behavior. I don't know what "nop_signal" would
correspond to more correctly though.

Basically, the examples need to be updated. I was about to, but I
don't know what is preferred for some sections.

I hope this helps,
pikpik
Reply all
Reply to author
Forward
0 new messages