missing symbols from termios.h and stdio.h

1,173 views
Skip to first unread message

seoushi

unread,
Oct 28, 2010, 4:55:53 PM10/28/10
to android-ndk
I've been working on getting gambit scheme compiling on android using
the ndk and I've made some good progress but during linking I have
some missing symbols:

i/4.4.0/../../../../arm-eabi/bin/ld: warning: cannot find entry symbol
_start; defaulting to 00009d50
../lib/libgambc.a(os_tty.o): In function `___device_tty_mode_get':
os_tty.c:(.text+0x6f4): undefined reference to `tcgetattr'
../lib/libgambc.a(os_tty.o): In function `___device_tty_mode_update':
os_tty.c:(.text+0xc90): undefined reference to `cfsetispeed'
os_tty.c:(.text+0xca0): undefined reference to `cfsetospeed'
os_tty.c:(.text+0xcc8): undefined reference to `tcsetattr'
../lib/libgambc.a(os_tty.o): In function `___device_tty_force_open':
os_tty.c:(.text+0x11e4): undefined reference to `ctermid'
../lib/libgambc.a(os_io.o): In function `setup_terminal_slave':
os_io.c:(.text+0x44e8): undefined reference to `tcgetattr'
os_io.c:(.text+0x454c): undefined reference to `tcsetattr'
collect2: ld returned 1 exit status
make: *** [gsc] Error 1


termios.h defines:
tcgetattr
cfsetispeed
cfsetospeed

stdio.h defines:
ctermid


I'm only linking with libc at the moment, is there another lib I
should be linking with as well or are these symbols just missing? If
they are missing does anyone know some replacements?

Onur Cinar

unread,
Oct 28, 2010, 7:30:54 PM10/28/10
to andro...@googlegroups.com

Hi,

I did a quick test with android-ndk-r4, and tried to link tcgetattr, tcsetattr, cfsetispeed, cfsetospeed, and ctermid. Except the ctermid, everything else linked without any problem. So you may want to try the android-ndk-r4 or a newer version.

The ctermid looks like missing in bionic, so you may want to try adding a dummy function for now.

Regards,

-onur


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

---
www.zdo.com

sean chapel

unread,
Oct 28, 2010, 8:30:39 PM10/28/10
to andro...@googlegroups.com
Thanks,

apparently ctermid is always suppose to return "/dev/tty" so it's trival to replace. 
Reply all
Reply to author
Forward
0 new messages