Subject: port-amiga/2319: g++ link problem under NetBSD-amiga
To: None <gnats-bugs@NetBSD.ORG>
From: Matthias Scheler <tron@colwyn.owl.de>
List: netbsd-bugs
Date: 04/11/1996 10:49:14
>Number:         2319
>Category:       port-amiga
>Synopsis:       g++ link problem under NetBSD-amiga
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 11 06:35:00 1996
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler
tron@colwyn.owl.de
>Release:        960407
>Environment:
System: NetBSD lyssa 1.1B NetBSD 1.1B (LYSSA) #1: Wed Apr 10 02:58:11 MET DST 1996     tron@lyssa:/usr/src/sys/arch/amiga/compile/LYSSA amiga

>Description:
If a program uses C++ stream I/O under NetBSD-amiga it has to be linked
manually with "termcap" or it won't start. Under NetBSD-i386 this isn't
necessary.

>How-To-Repeat:
tron@lyssa:~>cat hallo.cc 

tron@lyssa:~>cat hello.cc

#include <stream.h>

int main(void)

{
 cout<<"Hello!\n";
 return 0;
}
tron@lyssa:~>g++ hello.cc -o hello
tron@lyssa:~>hello
/usr/libexec/ld.so: Undefined symbol "_tgetstr" in hello:/usr/lib/libcurses.so.2.1

tron@lyssa:~>g++ hello.cc -o hello -ltermcap
tron@lyssa:~>hello
Hello!

>Fix:
Sorry, no idea.

>Audit-Trail:
>Unformatted: