Subject: pkg/33197: [Solaris] iftop-016nb1 fails to compile
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 04/05/2006 08:15:01
>Number:         33197
>Category:       pkg
>Synopsis:       [Solaris] iftop-016nb1 fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 05 08:15:00 +0000 2006
>Originator:     Krzysztof Raczkowski
>Release:        pkgsrc-2006Q1
Rzeszow University of Technology
SunOS pkgsrc-i32 5.10 Generic_Patch_118844-30 i86pc i386 i86pc
net/iftop fails to compile on Solaris with pkgsrc-2006Q1.

During 'configure' phase:
checking size of u_int8_t... unknown type
checking size of u_int16_t... unknown type
checking size of u_int32_t... unknown type

During 'build' phase:
source='options.c' object='options.o' libtool=no  depfile='.deps/options.Po' tmpdepfile='.deps/options.TPo'  depmode=none /bin/ksh ./config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I.    -I/usr/pkg/include -I/usr/include  -O -xtarget=pentium3 -xarch=sse -xstrconst -xildoff -I/usr/pkg/include -I/usr/include -c `test -f 'options.c' || echo './'`options.c
"options.c", line 218: undefined symbol: u_int32_t
"options.c", line 218: syntax error before or at: mm
"options.c", line 219: undefined symbol: mm
"options.c", line 272: warning: implicit function declaration: config_set_string
"options.c", line 369: warning: implicit function declaration: config_get_enum
"options.c", line 466: undefined symbol: u_int32_t
"options.c", line 466: syntax error before or at: mm
"options.c", line 467: undefined symbol: mm
"options.c", line 501: warning: syntax error:  empty declaration
cc: acomp failed for options.c

cd /usr/pkgsrc/net/iftop
I found solution on

Applying this patch will solve the problem:

# cat patch-aa
--- options.c.orig      2004-01-20 12:33:55.000000000 +0100
+++ options.c   2006-04-05 10:01:05.054882000 +0200
@@ -5,6 +5,7 @@

 #include "config.h"
+#include "integers.h"

 #include <sys/types.h>