Just a cosmetic bug: consoletype.c: In function 'main': consoletype.c:17:14: warning: unused parameter 'argc' [-Wunused-parameter] int main(int argc, char *argv[]) ^ consoletype.c:17:26: warning: unused parameter 'argv' [-Wunused-parameter] int main(int argc, char *argv[]) ^ -int main(int argc, char *argv[]) +int main() fixes the warning for me and the execution of the programs returns pty.
This was actually fixed sometime back with commit 4832781 and will be part of gentoo-functions-0.9.