Subject: "`popen' undeclared" on new pkgsrc ; Was: get "SIGWINCH undefined" on new pkgsrc
To: Thomas Klausner <wiz@NetBSD.org>
From: Joel CARNAT <joel@carnat.net>
List: tech-pkg
Date: 10/21/2004 23:46:20
On Thu, Oct 21 2004 - 22:31, Thomas Klausner wrote:
> On Thu, Oct 21, 2004 at 03:37:10PM +0200, Joel CARNAT wrote:
> > command.C: In member function `bool rxvt_term::cmd_parse()':
> > command.C:2587: error: `SIGWINCH' undeclared (first use this function)
> > command.C:2587: error: (Each undeclared identifier is reported only once for 
> >    each function it appears in.)
> > command.C:2587: error: `kill' undeclared (first use this function)
> 
> These two are in <signal.h>.
> 

 thanks thomas ; this solved the problem !

> > command.C: In member function `FILE* rxvt_term::popen_printer()':
> > command.C:2748: error: `popen' undeclared (first use this function)
> > command.C: In member function `int rxvt_term::pclose_printer(FILE*)':
> > command.C:2760: error: `pclose' undeclared (first use this function)
> 
> These two are in <stdio.h>.
> 

 this didn't :( I don't know why, but it seems it just doesn't use it.
**********
--- src/command.C.orig  2004-09-05 11:25:22.000000000 +0200
+++ src/command.C       2004-10-21 22:35:57.000000000 +0200
@@ -53,4 +53,7 @@
 #include <wchar.h>
 
+#include <signal.h>
+#include <stdio.h>
+
 /*----------------------------------------------------------------------*/
**********

 I wonder if some weirdness (Compiler=g++ != Linker=gcc) in config's result can be a clue :
**********
  Rxvt version:               4.0 : 2004-09-13
  Source code location:       .
  Install path:               /usr/pkg/bin
  Compiler:                   g++
  Compiler flags:             -O2 -pipe -I/usr/pkg/include -I/usr/X11R6/include -DXTHREADS -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2  
  Linker:                     gcc
  malloc support:             system default
  Xpm library:                -L/usr/X11R6/lib -lXpm
**********
 On the rxvt pkgsrc, both Compiler and Linker and set to gcc.

 I tried not to use GNU_make, same error.
 I tried to set USE_PKGINSTALL, now the wrapper thing is configured but the error is still there.

 any other clue/idea ?

TIA,
	Jo