Compiling statically trickle

Asked by Claudio on 2010-05-26


i'm trying to compile statically trickle without result.

i've type the command:

./configure LDFLAGS=-static

and that command returns without errors.

Then i've type :


and that command return this error:

gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Icompat -g -O2 -c trickle.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Icompat -g -O2 -c util.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Icompat -g -O2 -c getopt.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Icompat -g -O2 -c strlcat.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Icompat -g -O2 -c strlcpy.c
/bin/bash ./libtool --mode=link gcc -Wall -Icompat -g -O2 -static -o trickle trickle.o util.o getopt.o strlcat.o strlcpy.o -lnsl -ldl
mkdir .libs
gcc -Wall -Icompat -g -O2 -o trickle trickle.o util.o getopt.o strlcat.o strlcpy.o -lnsl -ldl
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Icompat -g -O2 -c trickled.c
In file included from trickled.c:33:
/usr/include/netinet/in.h:141: error: two or more data types in declaration specifiers
/usr/include/netinet/in.h:141: error: two or more data types in declaration specifiers
make: *** [trickled.o] Errore 1

and the binary file created, by using the command file is :

trickle: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

that is dinamically linked!!!!!!!

Any suggestion??

thank to everybody


Question information

English Edit question
Ubuntu trickle Edit question
No assignee Edit question
Last query:
Last reply:
Claudio (claudio-marini-mail) said : #2

Thank you for the answer.

I'm trying the procedure in :

and the issue now is chaged...
Now the output after the make command is:

(cd .libs && rm -f && ln -s ../
cp: impossibile eseguire stat di ".libs/": Nessun file o directory
make: *** [] Errore 1

Now i'm asking if this problem is caused by the attempt to statically compile the source?


All I can suggest, is following the procedure to the letter, meaning using ./configure without any extra flags.

If you want to compile it with special flags, then we need advice from an expert on this subject (which I am not :-p)

One more thing: It may be a good idea to first run the following 2 commands before trying to compile trickle from source:

sudo apt-get update
sudo apt-get build-dep trickle

The packages that will be installed are the packages needed in order for trickle to be built correctly.

Claudio (claudio-marini-mail) said : #5

i'm tryiing even this but nothing :D

Thank you


Can you help with this problem?

Provide an answer of your own, or ask Claudio for more information if necessary.

To post a message you must log in.