CANfestival with peak driver gives undefined symbol

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
obe1line
Posts: 2
Joined: Sat 28. Apr 2012, 05:24

CANfestival with peak driver gives undefined symbol

Post by obe1line » Sat 28. Apr 2012, 05:56

Has anyone built CANfestival with the peak_linux driver and can run the examples successfully?
My config is a PCAN-USB on Ubuntu 11.10 and 12.04 with the v7.5 PEAK driver and latest CANFestival3.

If I configure with --can=peak_linux and make, the build is fine but running:
./CANOpenShell load#libcanfestival_can_peak_linux.so,1,1M,1,1,1
I get:
./CANOpenShell: symbol lookup error: /usr/local/lib/libcanfestival_can_peak_linux.so: undefined symbol: LINUX_CAN_Open

I can use the libpcan.so directly from my application so I don't think the problem lies in the 7.5 drivers, I just wondered if anyone had come across this problem?

Regards,
Chris

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: CANfestival with peak driver gives undefined symbol

Post by PEAK-Support » Mon 30. Apr 2012, 10:13

Hi, we are sorry, but we have not tested the CANFestival with the latest Version of our drivers.
Maybe you could conatct some of the CANFestival developers, or post in the Mailing List:
http://sourceforge.net/mail/?group_id=29577
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

obe1line
Posts: 2
Joined: Sat 28. Apr 2012, 05:24

Re: CANfestival with peak driver gives undefined symbol

Post by obe1line » Mon 30. Apr 2012, 14:15

The good news is the new drivers work okay :) - I built one of their examples by adding an explicit call to LINUX_CanOpen to force library loading of libpcan.

Thanks for the link, I will check with them and see if there is a fix.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: CANfestival with peak driver gives undefined symbol

Post by PEAK-Support » Mon 30. Apr 2012, 15:13

OK, if you like you could post your solution later on in this Thread...
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

vagnusde67
Posts: 4
Joined: Fri 3. Aug 2012, 14:34

Re: CANfestival with peak driver gives undefined symbol

Post by vagnusde67 » Fri 3. Aug 2012, 14:38

I added in the main function of the application a call to the shared library to force the loading of the libpcan shared library:

h = LINUX_CAN_Open("/dev/pcan0", O_RDWR | O_NONBLOCK);

For some reason the code of Canfestival use LoadCanDriver(LibraryPath) == NULL) which doesn't load the shared library libpcan.

Post Reply