symbol '_gotoxy' in /usr/lib/bcc/libdos.a should be exported to match <conio.h>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux86 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bcc
I ran into a problem while trying to compile this file:
/*
home.c - home the cursor using Borland-style conio
compile with:
bcc -ansi -Md -o home home.c
*/
#include <conio.h>
int main(int argc, char **argv)
{
gotoxy(1,1);
return 0;
}
The error was:
undefined symbol: _gotoxy
Upon inspection of the library we see why:
$ nm86 /usr/lib/
00000000 t _gotoxy
00000004 a gotoxy.off
The symbol '_gotoxy' is defined as non-exported code (t) rather than
exported code (T)... maybe there is a missing 'extern' somewhere?
-- System Information:
Debian Release: lenny/sid
APT prefers hardy-updates
APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy-backports'), (500, 'hardy')
Architecture: i386 (i686)
Kernel: Linux 2.6.20-16-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=
Shell: /bin/sh linked to /bin/dash
Versions of packages bcc depends on:
ii bin86 0.16.17-2ubuntu1 16-bit x86 assembler and loader
ii libc6 2.7-10ubuntu3 GNU C Library: Shared libraries
Versions of packages bcc recommends:
ii elks-libc 0.16.17-2ubuntu1 16-bit x86 C library and include f
-- no debconf information