|
On 30/09/18 16:59, mngr wrote:
That should not be so You got that error because you only included cpu_info.h but nothing else. I included the actual code by using #include "cpu_info.c" When I do a check on the module my code produced and the functions defined I get root@INTEL-i7:/usr/src/machinekit/rtlib/rt-preempt# nm -C hal_spi.so 0000000000005370 b accum 0000000000005358 b accum_diff 00000000000053a0 b BCM2835_PERI_BASE U close@@GLIBC_2.2.5 00000000000052d8 b comp_id 00000000000052c0 b completed.7389 w __cxa_finalize@@GLIBC_2.2.5 00000000000011a0 t deregister_tm_clones 0000000000001210 t __do_global_dtors_aux 0000000000004e08 t __do_global_dtors_aux_fini_array_entry 00000000000050d0 d __dso_handle 00000000000052e0 b dt 0000000000004e10 d _DYNAMIC U fclose@@GLIBC_2.2.5 U feof@@GLIBC_2.2.5 U fgets@@GLIBC_2.2.5 0000000000002fdc t _fini U fopen@@GLIBC_2.2.5 0000000000001250 t frame_dummy 0000000000004e00 t __frame_dummy_init_array_entry 0000000000003760 r __FRAME_END__ 00000000000012e0 t get_cpuinfo_revision 0000000000001422 t get_rpi_revision .... So get_cpuinfo_revision() and get_rpi_revision() are both in the text section of the module and are local to it. If they were undefined they would have a U in front of them Are you somehow trying to run your old module again? Run the nm command above on your module.
-- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout. |
- Re: [Machinekit] using hal_spi module [email protected]
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module [email protected]
- Re: [Machinekit] using hal_spi module thematsche
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module [email protected]
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module [email protected]
- Re: [Machinekit] using hal_spi module [email protected]
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module [email protected]
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module [email protected]
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module [email protected]
- Re: [Machinekit] using hal_spi module mngr
