question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compilation error in oflops with Ubuntu 18.04

See original GitHub issue

util/mininet.sh does not work with Ubuntu 18.04

/bin/bash ./libtool  --tag=CC   --mode=link gcc  -g -O2 -Wall -I/home/tom/workspace/mininet/openflow/include -Wshadow `pkg-config --cflags libconfig`  -L/home/tom/workspace/mininet/openflow/lib `pkg-config --libs libconfig` -o liboflops_test.la -rpath /usr/local/lib test_module.lo msgbuf.lo pcap_track.lo oflops_snmp.lo utils.lo wc_event.lo -lnetsnmp
libtool: link: gcc -g -O2 -Wall -I/home/tom/workspace/mininet/openflow/include -Wshadow -Wl,-E -o oflops channel_info.o context.o control.o module_run.o module_default.o oflops.o oflops_pcap.o timer_event.o msg.o log.o traffic_generator.o usage.o  -L/home/tom/workspace/mininet/openflow/lib -lconfig -ldl -lpcap -lnetsnmp -loflops_test -lpthread
/usr/local/bin/ld: cannot find -loflops_test
collect2: error: ld returned 1 exit status
Makefile:576: recipe for target 'oflops' failed
make[2]: *** [oflops] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: gcc -shared  -fPIC -DPIC  .libs/test_module.o .libs/msgbuf.o .libs/pcap_track.o .libs/oflops_snmp.o .libs/utils.o .libs/wc_event.o   -L/home/tom/workspace/mininet/openflow/lib -lconfig -lnetsnmp  -g -O2   -Wl,-soname -Wl,liboflops_test.so.0 -o .libs/liboflops_test.so.0.0.0
libtool: link: (cd ".libs" && rm -f "liboflops_test.so.0" && ln -s "liboflops_test.so.0.0.0" "liboflops_test.so.0")
libtool: link: (cd ".libs" && rm -f "liboflops_test.so" && ln -s "liboflops_test.so.0.0.0" "liboflops_test.so")
libtool: link: ar cru .libs/liboflops_test.a  test_module.o msgbuf.o pcap_track.o oflops_snmp.o utils.o wc_event.o
libtool: link: ranlib .libs/liboflops_test.a
libtool: link: ( cd ".libs" && rm -f "liboflops_test.la" && ln -s "../liboflops_test.la" "liboflops_test.la" )
make[2]: Leaving directory '/home/tom/workspace/mininet/oflops'
Makefile:641: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/tom/workspace/mininet/oflops'
Makefile:433: recipe for target 'all' failed
make: *** [all] Error 2

I tried with master, 2.3.0d5 and 2.2.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ishitachaturvedicommented, Nov 5, 2020

I am facing the same issue, was it resolved?

1reaction
svenchen90commented, Sep 5, 2020

Do shown below before installing mininet

$ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get dist-upgrade

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compilation error in oflops with Ubuntu 18.04 - Bountysource
Coming soon: A brand new website interface for an even better experience!
Read more >
Compiling error when running model in Ubuntu 18.04. Any ...
I have a linux server I want to use for running some brms models. So far I have been able to install the...
Read more >
[waves2Foam] Compilation Error with OF-2.4.0 on Ubuntu 18.04
I'm trying to compile waves2Foam on ubuntu 18.04 and with OF-2.4.0. I'm getting an error when the compiler trys to make waveFoam.
Read more >
Compile error in Ubuntu 18.04 - Arduino Stack Exchange
A better solution is to determine the group which the port belongs to and to add the users expected to access these connected...
Read more >
Caffe Compilation Error - Ubuntu 18.04.4 Live Server in a ...
You are missing hdf5_serial and gflags according to the compilation error. Try installing them using sudo apt-get install libhdf5-serial-dev ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found