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

cannot compile: undefined reference to `crypt' #3

Closed
pauledd opened this issue Apr 7, 2018 · 4 comments
Closed

cannot compile: undefined reference to `crypt' #3

pauledd opened this issue Apr 7, 2018 · 4 comments

Comments

@pauledd
Copy link

pauledd commented Apr 7, 2018

Hi @magnue
I just changed from gentoo to a fresh Ubuntu Mate in my RPi2 but now I am not able to compile
indi_wiringpi_gpio anymore. I followed exactly you instructions but sudo make install failes with:

...
[ 83%] Building CXX object CMakeFiles/indi_wiringpi_gpio.dir/wiringpi_gpio/wiringpi_updater.cpp.o
[100%] Linking CXX executable indi_wiringpi_gpio
/usr/local/lib/libwiringPi.so: undefined reference to `crypt'
collect2: error: ld returned 1 exit status
CMakeFiles/indi_wiringpi_gpio.dir/build.make:200: recipe for target 'indi_wiringpi_gpio' failed
make[2]: *** [indi_wiringpi_gpio] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/indi_wiringpi_gpio.dir/all' failed
make[1]: *** [CMakeFiles/indi_wiringpi_gpio.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

any ideas what might be wrong with wiringPi?

@pauledd
Copy link
Author

pauledd commented Apr 7, 2018

Someone says:
https://stackoverflow.com/a/30424785
it has to be compiled with "-L" flag but I have no clue how to implement this in this cmake thing...

@pauledd
Copy link
Author

pauledd commented Apr 7, 2018

problem solved somehow by adding "crypt" to this line in CMakeLists.txt
target_link_libraries(indi_wiringpi_gpio ${INDI_DRIVER_LIBRARIES} ${WIRING_PI_LIBRARIES} crypt)

It compiles now fine but sadly I hit my prevous issue #1 again. I think there is something totally broken with indi_wiringpi_gpio and I consider to change my hardware to use usb relay.

@pauledd
Copy link
Author

pauledd commented Apr 7, 2018

issue #1 solved again by doing my stupid fix from here:
http://indilib.org/forum/embedded-indi/2477-help-on-indi-wiringpi-gpio-crash.html?start=12#18546
I somehow forgot to apply this fix into my fork of this repo...
I stay with indi_wiringpi_gpio if no further problems pop up...
closed...

@pauledd pauledd closed this as completed Apr 7, 2018
@magnue
Copy link
Owner

magnue commented Apr 10, 2018

Isuue fixed in commit 89bb502

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

No branches or pull requests

2 participants