Compiling statically trickle

Asked by Claudio

Hello,

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 :

make

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

C.Marini

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu trickle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1
Revision history for this message
Claudio (claudio-marini-mail) said :
#2

Thank you for the answer.

I'm trying the procedure in :

http://indicium.us/cgi-bin/pages/get?view=trickle-wget-bandwidth-limiting

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

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

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

Thank,
c.Marini

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#3

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)

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

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.

Revision history for this message
Claudio (claudio-marini-mail) said :
#5

i'm tryiing even this but nothing :D

Thank you

Claudio

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.