2008-11-27 07:34:56     undefined reference to `_forkpty'

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-11-27 07:34:56     undefined reference to `_forkpty'

Parimala Baggiri (INDIA)

Message: 65905   

 

Hello,

 

           I am getting the error "undefined reference to 'forkpty'" function, even though I included pty.h file and linking it with -lutil. As I am not facing this problem for 'openpty' function, which is there in the same header(pty.h) file.

 

why is it? Am I missing something?

 

uClinux-Dist version:  uClinux-dist-2008R1-RC8

 

Thank You.

 

Regards,

 

Parimla.

 

 

QuoteReplyEditDelete

 

 

2008-11-27 09:17:17     Re: undefined reference to `_forkpty'

Wolfgang Muees (GERMANY)

Message: 65910   

 

Please explain why you expect to have "fork" in uclinux.

 

 

TranslateQuoteReplyEditDelete

 

 

2008-11-27 21:01:58     Re: undefined reference to `_forkpty'

Mike Frysinger (UNITED STATES)

Message: 65930   

 

like Wolfgang says, fork() does not work on no-mmu so why would forkpty() ?

QuoteReplyEditDelete

 

 

2008-11-27 23:34:25     Re: undefined reference to `_forkpty'

Parimala Baggiri (INDIA)

Message: 65937   

 

Hello Mike,

 

                     I am cross compiling my software for Blackfin which is written for Linux. I wanted to fork the telnet client process in my application. Now, I had gone through uClinux docs came to know that it is not supporting fork system call, instead vfork supported.

 

Thank you.

 

Regards,

 

Parimala.

Attachments

    Outcomes