Skip to content

run iperf in ns3 DCE #298

@teto

Description

@teto

Hi,

I would like to load iperf3 in the network simulator ns3 with DCE. Thus I tried compiling it with the flags described here: https://www.nsnam.org/docs/dce/manual/html/dce-user-newapps.html such as

$ make CFLAGS="-fPIC -U_FORTIFY_SOURCE" LDFLAGS="-pie -rdynamic" 
libtool: link: gcc -pg -g -fPIC -U_FORTIFY_SOURCE -pg -g -pie -rdynamic -o .libs/iperf3_profile iperf3_profile-main.o iperf3_profile-cjson.o iperf3_profile-iperf_api.o iperf3_profile-iperf_error.o iperf3_profile-iperf_client_api.o iperf3_profile-iperf_locale.o iperf3_profile-iperf_server_api.o iperf3_profile-iperf_tcp.o iperf3_profile-iperf_udp.o iperf3_profile-iperf_sctp.o iperf3_profile-iperf_util.o iperf3_profile-net.o iperf3_profile-tcp_info.o iperf3_profile-tcp_window_size.o iperf3_profile-timer.o iperf3_profile-units.o  ./.libs/libiperf.so
/usr/bin/ld.bfd.real: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/gcrt1.o: relocation R_X86_64_32S against `__libc_csu_fini' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/gcrt1.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:784: recipe for target 'iperf3_profile' failed
make[2]: *** [iperf3_profile] Error 1
make[2]: Leaving directory '/home/teto/iperf3/src'
Makefile:632: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/teto/iperf3/src'
Makefile:381: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Would it be possible to fix this please ?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions