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

perl: symbol lookup error: wiringpi.so: undefined symbol: softPwmStop #6

Open
karstengit opened this issue Aug 4, 2015 · 2 comments

Comments

@karstengit
Copy link

The compilation works and i can initialize the module.
When the first pinMode command is called it crashes with an error.

perl -e 'use wiringpi; print wiringpi::wiringPiSetup()."\n";wiringpi::pinMode(1, 0);'
perl: symbol lookup error: /usr/lib/perl/5.14/wiringpi.so: undefined symbol: softPwmStop

@karstengit
Copy link
Author

I could solve the problem.
You need to compile and link additional files to the result.

gcc -fpic -c -Dbool=char -I/usr/lib/perl/5.14.2/CORE wiringpi_wrap.c WiringPi/wiringPi/wiringPi.c WiringPi/wiringPi/softPwm.c WiringPi/wiringPi/softTone.c -D_GNU_SOURCE

gcc -shared wiringPi.o softPwm.o softTone.o wiringpi_wrap.o -o wiringpi.so

I hope gordon will add the corrected version now to his wiringpi project.

Gadgetoid added a commit that referenced this issue Oct 31, 2016
@Gadgetoid
Copy link
Member

I've added this fix into the build.sh script, pending it being remixed into a proper makefile.

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