Subject: Re: pkg/29425: package games/netmaj fails build
To: None <kei@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
List: pkgsrc-bugs
Date: 03/20/2005 15:17:02
The following reply was made to PR pkg/29425; it has been noted by GNATS.

From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
To: gnats-bugs@netbsd.org, almeyers@consult-meyers.com
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/29425: package games/netmaj fails build
Date: Mon, 21 Mar 2005 00:16:23 +0900 (JST)

 Hi,
 
 There are lines as hbelow in netmaj's Makefile.
 
 ----------
 # for linux
 .if (${OPSYS} == "Linux")
 CC=cc
 OS_CFLAGS= -O -DUSE_TERMIOS -DUSE_TERMCAP -DDEF_OPTARG -DHAVE_GETTIMEOFDAY
 RANLIB=ranlib
 LIBS = 
 CURSES= lib/libcurses.a -ltermcap
 LDFLAGS =  -Llib 
 .endif
 ----------
 
 "client" is linked to /usr/lib/libtermcap.so.0 in NetBSD.
 What is the corresponding library in Mandrake Linux?
 
 
 > >Release:        latest cvs pkgsrc bootstrapped to Mandrake Linux 10.1 i386
 > >Organization:
 > >Environment:
 > Linux localhost.localdomain 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686 AMD Athlon(tm) XP 2800+ unknown GNU/Linux
 > >Description:
 > cc -I. -Ilib -DNETMAJ_LIB=\"/usr/pkg/lib/netmaj\" -O -DUSE_TERMIOS -DUSE_TERMCAP -DDEF_OPTARG -DHAVE_GETTIMEOFDAY   -I/usr/pkg/include -c cui.c
 > cui.c:181: warning: built-in function 'log' declared as non-function
 > cc -o client client.o cui.o libnetmaj.a -Llib  lib/libcurses.a -ltermcap
 > /usr/bin/ld: cannot find -ltermcap
 > collect2: ld returned 1 exit status
 > *** Error code 1
 > 
 > Stop.
 
 --
 SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>