Subject: Re: pkg/36404: x11/vte build error on Linux
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Ondrej Tuma <pkgsrc@blackmouse.biz>
List: pkgsrc-bugs
Date: 06/08/2007 23:50:03
The following reply was made to PR pkg/36404; it has been noted by GNATS.

From: Ondrej Tuma <pkgsrc@blackmouse.biz>
To: pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/36404: x11/vte build error on Linux
Date: Sat, 9 Jun 2007 00:04:39 +0200

 --Signature=_Sat__9_Jun_2007_00_04_39_+0200_=l=L6ODSJPT_gMGw
 Content-Type: text/plain; charset=ISO-8859-2
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 I found the problem,
 it's in patch-aa witch adds in front of pty.c file's begin this line:
 #include <sys/types.h>
 
 i don't found why, but this create the problem in glibc headers, when
 probably test about strdup() in bits/string2.h runs too early, and
 __need_malloc_and_calloc definition was be set.
 
 This i test on glibc-2.3.6 and glibc-2.5.
 
 build without this fisrt patch line, all work fine on linux.
 
 litle note: there is vte-0.16.5 ;)
 
 On Tue, 29 May 2007 11:55:00 +0000 (UTC)
 pkgsrc@blackmouse.biz wrote:
 
 > >Environment:
 > Linux ip1 2.6.20.1 #3 Thu Mar 8 18:42:01 CET 2007 i686 athlon-4 i386 GNU/=
 Linux
 > >Description:
 > pty.c: In function `_vte_pty_ptsname':
 > pty.c:534: error: implicit declaration of function `ptsname_r'
 > pty.c:534: warning: nested extern declaration of `ptsname_r'
 > pty.c: In function `_vte_pty_getpt':
 > pty.c:572: error: implicit declaration of function `getpt'
 > pty.c:572: warning: nested extern declaration of `getpt'
 > pty.c: In function `_vte_pty_grantpt':
 > pty.c:591: error: implicit declaration of function `grantpt'
 > pty.c:591: warning: nested extern declaration of `grantpt'
 > pty.c: In function `_vte_pty_unlockpt':
 > pty.c:601: error: implicit declaration of function `unlockpt'
 > pty.c:601: warning: nested extern declaration of `unlockpt'
 > make[2]: *** [pty.lo] Error 1
 > make[2]: Leaving directory `/usr/pkgsrc/x11/vte/work/vte-0.16.1/src'
 
 
 
 --
 Ond=F8ej T=F9ma
 
 Unix-like system is the best operation system from the top of the world.
 I'm lucky BSD and linux user. :) Use unix-like, be free. :)
 
 www.blackmouse.biz                                        hash.webjet.cz
 ICQ: 107760454       JABBER: mcbig@jabber.cz      MSN: ondra.tu@atlas.cz
 
 --Signature=_Sat__9_Jun_2007_00_04_39_+0200_=l=L6ODSJPT_gMGw
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (GNU/Linux)
 
 iD8DBQFGadJ3BmNIPxOnb/IRAmhNAKDE1qHEOG7ukH1ctodnUIlNzUQvGQCePmAV
 l9rsLEI/bJe2W6e4D0I/DoA=
 =ck5V
 -----END PGP SIGNATURE-----
 
 --Signature=_Sat__9_Jun_2007_00_04_39_+0200_=l=L6ODSJPT_gMGw--