Skip Menu |

This queue is for tickets about the Device-PiFace CPAN distribution.

Report information
The Basics
Id: 119252
Status: resolved
Priority: 0/
Queue: Device-PiFace

People
Owner: ROBERTOF [...] cpan.org
Requestors: w_schefe [...] web.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: installation problem
Date: Thu, 15 Dec 2016 14:41:19 +0100
To: bug-Device-PiFace [...] rt.cpan.org
From: "W. Schefe" <w_schefe [...] web.de>
hallo, I have a problem while installing PiFace 2 via "cpanm Device::PiFace" on a Raspberry Pi 3 Model B with raspian-jessie-lite for running FHEM after installing libpifacedigital and libmcp23s17 via git. The excerpt of error area in the build.log before finishing: ... cp lib/Device/PiFace.pm blib/lib/Device/PiFace.pm Running Mkbootstrap for Device::PiFace () chmod 644 PiFace.bs /usr/bin/perl "-Iinc" /usr/share/perl/5.20/ExtUtils/xsubpp -typemap /usr/share/perl/5.20/ExtUtils/typemap -typemap typ$ cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE$ In file included from PiFace.xs:8:0: const-c.inc: In function ‘constant_5’: const-c.inc:33:20: error: ‘OLATA’ undeclared (first use in this function) *iv_return = OLATA; ^ const-c.inc:33:20: note: each undeclared identifier is reported only once for each function it appears in const-c.inc:38:20: error: ‘OLATB’ undeclared (first use in this function) *iv_return = OLATB; ^ const-c.inc:45:20: error: ‘IOCON’ undeclared (first use in this function) *iv_return = IOCON; ^ ... and so on for every delaration in functions 'constant_5' ... 'constant_9'. While looking in /usr/local/include i found in file mcp23x08.h from Gordon Henderson MCP23x17 the searched(?) Register definitions... What can I do? Thanks for spending time! Best regards and a happy christmas time for you! Wolfgang
Hi, thanks for your ticket. That's indeed strange. I don't see any breaking change in libpiface or libmcp23s17 too, so it probably does not depend on that. I'm going to do a bit of testing and I'll update you.
Alright, let's try a few things. First off: are you sure you *installed* both mcp23s17 and libpifacedigital? If so, you should have /usr/local/include/mcp23s17.h, which as you can see here <https://github.com/piface/libmcp23s17/blob/master/src/mcp23s17.h> contains all the constants you need. If you don't have this file, then please complete the installation of mcp23s17. If you do have it, try installing ExtUtils::Constant and re-running the cpan installation of Device::PiFace. This will force the module to re-generate the constants files (even though the provided one should work - or at least travis-ci says so). If this is still not working, then please let me know. Which Perl version are you using, by the way?
Subject: Re: [rt.cpan.org #119252] installation problem
Date: Sat, 17 Dec 2016 13:00:57 +0100
To: bug-Device-PiFace [...] rt.cpan.org
From: "W. Schefe" <w_schefe [...] web.de>
Am 17.12.2016 um 02:53 schrieb Roberto Frenna via RT: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=119252 > > > Alright, let's try a few things. > > First off: are you sure you *installed* both mcp23s17 and libpifacedigital? If so, you should have /usr/local/include/mcp23s17.h, which as you can see here <https://github.com/piface/libmcp23s17/blob/master/src/mcp23s17.h> contains all the constants you need. > > If you don't have this file, then please complete the installation of mcp23s17. > > If you do have it, try installing ExtUtils::Constant and re-running the cpan installation of Device::PiFace. This will force the module to re-generate the constants files (even though the provided one should work - or at least travis-ci says so). > > If this is still not working, then please let me know. Which Perl version are you using, by the way?
Hallo Roberto, thanks for the tip- the file mcp23s17.h was in earlier state(?) - it includes only "... extern int mcp23s17Setup (int pinBase, int spiPort, int devId) ; ... " after copying the content from the github- file instead installation runs perfectly- thank you for quick help! (installed on the Raspi is Perl5.20.2) best rards! Wolfgang
Thank you for your collaboration, and sorry for the delay. Merry Christmas!