Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box chef/fedora-20 unavailable #77

Open
smalleni opened this issue Sep 30, 2015 · 9 comments
Open

Box chef/fedora-20 unavailable #77

smalleni opened this issue Sep 30, 2015 · 9 comments

Comments

@smalleni
Copy link
Contributor

Vagrant up fails with the message that the box chef/fedora-20 not found.
[root@localhost wcbench]# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'chef/fedora-20' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'chef/fedora-20' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
vagrant login. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/chef/fedora-20"]
Error: The requested URL returned error: 404 Not Found

@dfarrell07
Copy link
Owner

Thanks for the bug report, @smallen3!

That box no longer exists, we need to move to a new one. For most projects affected by this, we've moved to boxcutter/fedora22.

If you're up for changing it, verifying it and sending a PR, I'd love to merge it. :)

Thanks again for the contribution!

@smalleni
Copy link
Contributor Author

smalleni commented Oct 3, 2015

@dfarrell07 ..thanks for the quick response :) I have started to try with the box you mentioned but vagrant up seems to fail at the part where CBench is Built. It says undefined reference to time_diff but the header file utilities.h in the oflops code has the definition and this header file is included in traffic_generator.c

The error trace is as below:
[root@localhost oflops]# make
make all-recursive
make[1]: Entering directory '/home/vagrant/oflops'
Making all in .
make[2]: Entering directory '/home/vagrant/oflops'
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -I/home/vagrant/openflow//include -Wshadow pkg-config --cflags libconfig -static -Wl,-E -L/home/vagrant/openflow//lib pkg-config --libs libconfig -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 -ldl -lpcap -lnetsnmp -loflops_test -lpthread
libtool: link: gcc -g -O2 -Wall -I/home/vagrant/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/vagrant/openflow//lib -ldl -lpcap /home/vagrant/oflops/.libs/liboflops_test.a -L/home/vagrant/openflow/lib -lconfig -lnetsnmp -lpthread
traffic_generator.o: In function get_next_pkt': /home/vagrant/oflops/traffic_generator.c:140: undefined reference totime_diff'
collect2: error: ld returned 1 exit status
Makefile:574: recipe for target 'oflops' failed
make[2]: *** [oflops] Error 1
make[2]: Leaving directory '/home/vagrant/oflops'
Makefile:639: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/vagrant/oflops'
Makefile:431: recipe for target 'all' failed
make: *** [all] Error 2

I tried sshing into the vm and install a few dependencies that were missing as per http://archive.openflow.org/wk/images/3/3e/Manual.pdf. I tried to configure and make in the vm manually and it fails with the same message. Is this a linker problem? Am I missing something here. Thanks in advance :)

@dfarrell07
Copy link
Owner

Sounds like it's missing a C-related dependency, gcc* or similar. I'm taking a quick look now.

@dfarrell07
Copy link
Owner

Sounds like it's missing a C-related dependency, ggc* or similar. I'm taking a quick look now.

Didn't come up with a good answer, but I did replicate what you're seeing.

@smalleni
Copy link
Contributor Author

@dfarrell07 Tried many different things, and tried a different box too. Do you think its missing the netfpga-packet-generator-c-library when it clones the oflops repository?

@dfarrell07
Copy link
Owner

@smallen3 - Wanted to send a quick ACK.

Do you think its missing the netfpga-packet-generator-c-library when it clones the oflops repository?

What makes you say this? I haven't had the cycles to debug in more detail yet.

@rkamath3
Copy link

Any solution ? I am stuck with same error. I did not have this issue with Ubuntu 14. I updated to ubuntu 15 today and it throws me error.

traffic_generator.c:140: undefined reference to `time_diff'

@smalleni
Copy link
Contributor Author

@dfarrell07 ..apologies for the delayed response. https://github.com/andi-bigswitch/oflops is the repo that wcbench.sh clones and that repo has a "netfpga-packet-generator-c-library" directory that links to another repository but is not cloned. So, was just a wild guess. I don't know if that is essential to wcbench.

@anastop
Copy link

anastop commented Apr 15, 2016

Just came up to the same error while building Cbench on a Fedora 23 machine:

traffic_generator.o: In function get_next_pkt': /home/vagrant/oflops/traffic_generator.c:140: undefined reference totime_diff'

My workaround was to bypass the complete config process of oflops, after noticing that a Makefile within the cbench folder was already created. I simply ran make within cbench and the binary was built. oflops contains many other things on which Cbench does not seem to depend on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants