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

Build fails on linux, no srandomdev() #11

Open
M-a-r-k opened this issue Feb 5, 2017 · 2 comments · May be fixed by #21
Open

Build fails on linux, no srandomdev() #11

M-a-r-k opened this issue Feb 5, 2017 · 2 comments · May be fixed by #21

Comments

@M-a-r-k
Copy link

M-a-r-k commented Feb 5, 2017

Building on Linux (x86-64) fails. It looks like srandomdev() doesn't exist on Linux?

make[2]: Entering directory '/home/mark/Work/v-usb/examples/drivertest/commandline'
gcc  `libusb-config --cflags` -O -g -Wall -c opendevice.c
gcc  `libusb-config --cflags` -O -g -Wall -c runtest.c
runtest.c: In function ‘main’:
runtest.c:114:9: warning: implicit declaration of function ‘srandomdev’ [-Wimplicit-function-declaration]
         srandomdev();
         ^~~~~~~~~~
gcc -o runtest opendevice.o runtest.o `libusb-config --libs`
runtest.o: In function `main':
/home/mark/Work/v-usb/examples/drivertest/commandline/runtest.c:114: undefined reference to `srandomdev'
collect2: error: ld returned 1 exit status
Makefile:41: recipe for target 'runtest' failed
make[2]: *** [runtest] Error 1
make[2]: Leaving directory '/home/mark/Work/v-usb/examples/drivertest/commandline'
make[1]: Leaving directory '/home/mark/Work/v-usb'
@starkjohann
Copy link
Contributor

You can simply remove this line if you want to run the tests on Linux.

mexchip added a commit to mexchip/v-usb that referenced this issue Nov 1, 2019
@mexchip mexchip linked a pull request Nov 1, 2019 that will close this issue
@tickelton
Copy link
Contributor

This issue can probably get closed as it should be fixed by 981b285.

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

Successfully merging a pull request may close this issue.

3 participants