[RPi2] Trouble building Device::BCM2835 perl module

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[RPi2] Trouble building Device::BCM2835 perl module

Postby TheAmigo » Tue Dec 08, 2015 2:59 am

I started with a fresh install according to http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2.

I ran: $this->bbcode_second_pass_code('', 'pacman -Syu base-devel libbcm2835')
But when try to build Device::BCM2835 (either using cpan or by downloading, extracting and running make), I get this error:

$this->bbcode_second_pass_code('', '/usr/bin/ld: /usr/local/lib/libbcm2835.a(bcm2835.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC')

I tried setting CFLAGS=-fPIC and rebuilding both libbcm2835 and the perl module again, but that didn't change anything. Suggestions?
TheAmigo
 
Posts: 1
Joined: Tue Dec 08, 2015 2:50 am

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 12 guests