On 01/19/2014 07:30 PM, Sebastian Kuzminsky wrote:
> On 01/19/2014 06:11 PM, Michael Haberler wrote:
>>
>> Am 19.01.2014 um 16:42 schrieb Sebastian Kuzminsky <s...@highlab.com>:
>>
>>> I'm trying to get ubc ready to merge, and i'm running into a problem
>>> that i'd like help debugging.
>>>
>>> I have a machine (Precise, x86, with memleak's RTAI kernel) that runs
>>> the ubc branch fine when configured for rip, but throws errors when
>>> installed from the debian packages i've made (with the seb/ubc3-deb branch).
>>>
>>> Here's the output for the RTAI flavor:
>>>
>>>> 0 09:33:47 seb@precise-rtai-x86 /home/seb> which linuxcnc
>>>> /usr/bin/linuxcnc
>>>> 0 09:33:48 seb@precise-rtai-x86 /home/seb> dpkg -s linuxcnc | grep Version
>>>> Version: 1:2.6.0~pre~seb.ubc3.deb~8579fcd
>>>> 0 09:33:51 seb@precise-rtai-x86 /home/seb> DEBUG=5 linuxcnc -l
>>>> LINUXCNC - 2.6.0~pre~seb-ubc3-deb~8579fcd
>>>> Machine configuration directory is '/home/seb/linuxcnc/configs/sim.axis'
>>>> Machine configuration file is 'axis.ini'
>>>> Starting LinuxCNC...
>>>> io started
>>>> halcmd: hal_init() failed: -22
>>>> NOTE: 'rtapi' module must be loaded
>>
>> This particular error happens if a HAL userland application (io in that 
>> case) fails to init the thread-dependent userland side of RTAPI. That code 
>> is in the ulapi-<flavor>.so shared object; in the RIP builds those files are 
>> in lib/:
>>
>> ./lib/ulapi-xenomai.so
>> ./lib/ulapi-rtai-kernel.so
>> ./lib/ulapi-xenomai-kernel.so
>> ./lib/ulapi-posix.so
>>
>> it is loaded in rtapi/ulapi_autoload.c with dlopen(), hence dlopen path 
>> resolution applies
>>
>> Assuming the .so's are built, it comes down to where they are installed 
>> (/usr/lib/linuxcnc?) and tell ldconfig about it (maybe a linuxcnc entry in 
>> /etc/ld.conf.d)
> 
> That fixed it, thanks.

I just pushed a couple of commits to the seb/ubc3-deb branch that fix
this problem (b87d3e1 and 8a0c9a4).  With those commits i can now start
linuxcnc when it's installed via .debs (and when it's build rip).


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to