Trickle bandwidth shaper

Ralph Seichter macports-ml at seichter.de
Tue Jul 19 13:30:54 PDT 2011


Hello list,

as I could not find a MacPorts version of Marius Eriksen's "trickle"
(see http://monkey.org/~marius/pages/?page=trickle), I tried to build
Trickle 1.06 on OS X 10.6.8 myself. After installing the libevent 2.0.10
port and running configure, the build fails with the following messages:

$ make
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Icompat -I/opt/local/include -g -O2 -c trickle-overload.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Icompat -I/opt/local/include -g -O2 -c trickle-overload.c -o trickle-overload.o
trickle-overload.c:486: error: conflicting types for ‘poll’
/usr/include/sys/poll.h:114: error: previous declaration of ‘poll’ was here
trickle-overload.c: In function ‘read’:
trickle-overload.c:589: warning: pointer targets in passing argument 2 of ‘delay’ differ in signedness
trickle-overload.c: In function ‘readv’:
trickle-overload.c:617: warning: pointer targets in passing argument 2 of ‘delay’ differ in signedness
trickle-overload.c: In function ‘recv’:
trickle-overload.c:640: warning: pointer targets in passing argument 2 of ‘delay’ differ in signedness
trickle-overload.c: In function ‘recvfrom’:
trickle-overload.c:670: warning: pointer targets in passing argument 2 of ‘delay’ differ in signedness
trickle-overload.c: In function ‘write’:
trickle-overload.c:692: warning: pointer targets in passing argument 2 of ‘delay’ differ in signedness
trickle-overload.c: In function ‘writev’:
trickle-overload.c:720: warning: pointer targets in passing argument 2 of ‘delay’ differ in signedness
trickle-overload.c: In function ‘send’:
trickle-overload.c:743: warning: pointer targets in passing argument 2 of ‘delay’ differ in signedness
trickle-overload.c: In function ‘sendto’:
trickle-overload.c:767: warning: pointer targets in passing argument 2 of ‘delay’ differ in signedness
trickle-overload.c: In function ‘getdelay’:
trickle-overload.c:926: warning: pointer targets in passing argument 2 of ‘trickled_getdelay’ differ in signedness
trickle-overload.c:932: warning: pointer targets in passing argument 2 of ‘bwstat_getdelay’ differ in signedness
make: *** [trickle-overload.lo] Error 1

I was wondering if you could either give me hint on how to circumvent
this problem, or, even better, if there is a MacPorts port of trickle
wich I have so far missed? The ports search returned zip, though...

-Ralph


More information about the macports-users mailing list