waywardgeek / infnoise

The world's easiest TRNG to get right
Creative Commons Zero v1.0 Universal
723 stars 99 forks source link

Cannot build on Fedora #10

Closed maztaim closed 7 years ago

maztaim commented 9 years ago

I created a pull request a while back that poorly suggests fixing library naming differences between Debian and Fedora based distributions. My solution wasn't very graceful and another solution was proposed and implemented. Still, when I try to build on Fedora, I get the following error.

$ make cc -Wall -std=c99 -O3 -I Keccak -I /usr/include/libftdi1 -o infnoise infnoise.c healthcheck.c writeentropy.c daemon.c Keccak/KeccakF-1600-reference.c -lftdi -lm -lrt /usr/bin/ld: cannot find -lftdi collect2: error: ld returned 1 exit status Makefile:6: recipe for target 'infnoise' failed make: *\ [infnoise] Error 1

If I adjust just the -lftdi on line 6 of Makefile to -lftdi1, it builds successfully.

I still don't like my original merge, but I can't think of an easy way to cleanly make this work. Some searching suggest using automake to figure out libraries (which seems heavy-handed for such a simple difference). Still digging around and testing a bit, but I am not as comfortable as I'd like to be with building or development in general to suggest something else.

For now, I guess I am just leaving this here as a reminder to myself and others running Fedora on how to build successfully.