[netflow-tools] softflowd-0.9.9 compile on Solaris 10

Hitoshi Irino irino at sfc.wide.ad.jp
Wed Sep 26 00:18:27 EST 2012


Please use gmake (GNU make) instead of make.

$ uname -a
SunOS solaris 5.11 11.0 i86pc i386 i86pc

$ make
gcc -g -O2 -I. -c  softflowd.c
In file included from softflowd.h:31:0,
                  from softflowd.c:48:
treetype.h:52:2: error: #error No flow tree type defined
treetype.h:80:2: error: #error No expiry tree type defined
In file included from softflowd.c:48:0:
softflowd.h:90:2: error: expected specifier-qualifier-list before 
‘FLOW_HEAD’
softflowd.h:162:2: error: expected specifier-qualifier-list before 
‘FLOW_ENTRY’
softflowd.h:200:2: error: expected specifier-qualifier-list before 
‘EXPIRY_ENTRY’

$ gmake
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
softflowd.o softflowd.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
log.o log.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
netflow1.o netflow1.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
netflow5.o netflow5.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
netflow9.o netflow9.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
freelist.o freelist.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
convtime.o convtime.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
strlcpy.o strlcpy.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
strlcat.o strlcat.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
closefrom.o closefrom.c
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
daemon.o daemon.c
gcc  -o softflowd softflowd.o log.o netflow1.o netflow5.o netflow9.o 
freelist.o convtime.o strlcpy.o strlcat.o closefrom.o daemon.o -lpcap 
-lsocket -lnsl
gcc -g -O2 -DFLOW_SPLAY          -DEXPIRY_RB             -I.   -c -o 
softflowctl.o softflowctl.c
gcc  -o softflowctl softflowctl.o convtime.o strlcpy.o strlcat.o 
closefrom.o daemon.o -lpcap -lsocket -lnsl

I think that softflowd-0.9.9 will be failed to compile with solaris 10 
because it uses strsep function. Solaris 10 does not have strsep.
Please checkout newest version from google code 
(http://code.google.com/p/softflowd/source/checkout). It uses strtok 
instead of strsep.

regards,
Hitoshi Irino

(2012/08/02 2:58), Canell, Stephen E (2240) wrote:
> Tried to compile softflowd-0.9.9 on Solaris 10 using gcc and got the following:
>
> This is just the start of the error messages….
>
> make
> gcc -g -O2 -I. -c  softflowd.c
> In file included from softflowd.h:31,
>                   from softflowd.c:48:
> treetype.h:52:2: #error No flow tree type defined
> treetype.h:80:2: #error No expiry tree type defined
> In file included from softflowd.c:48:
> softflowd.h:90: error: syntax error before "FLOW_HEAD"
> softflowd.h:90: warning: no semicolon at end of struct or union
> softflowd.h:91: error: syntax error before "expiries"
> softflowd.h:91: warning: data definition has no type or storage class
> softflowd.h:149: error: syntax error before '}' token
> softflowd.h:162: error: syntax error before "FLOW_ENTRY"
> softflowd.h:162: warning: no semicolon at end of struct or union
> softflowd.h:181: error: conflicting types for 'octets'
> softflowd.h:126: error: previous declaration of 'octets' was here
> softflowd.h:182: error: conflicting types for 'packets'
> softflowd.h:127: error: previous declaration of 'packets' was here
> softflowd.h:183: error: syntax error before '}' token
> softflowd.h:200: error: syntax error before "EXPIRY_ENTRY"
> softflowd.h:200: warning: no semicolon at end of struct or union
> softflowd.h:208: error: syntax error before '}' token
> In file included from softflowd.c:49:
> treetype.h:52:2: #error No flow tree type defined
> treetype.h:80:2: #error No expiry tree type defined
> softflowd.c: In function `flow_compare':
> softflowd.c:142: error: dereferencing pointer to incomplete type
> softflowd.c:142: error: dereferencing pointer to incomplete type
> softflowd.c:143: error: dereferencing pointer to incomplete type
> softflowd.c:143: error: dereferencing pointer to incomplete type
> softflowd.c:145: error: dereferencing pointer to incomplete type
> softflowd.c:145: error: dereferencing pointer to incomplet……………………………….
>
> -=Steve
> --
>
>
>
>
> _______________________________________________
> netflow-tools mailing list
> netflow-tools at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/netflow-tools
>



More information about the netflow-tools mailing list