Ned,

I took a quick look and it seems to be the "unsigned" modifiers that cause
confusion.
Maybe your wrapper functions should just take long, short and char args and
then
they perform the casting for the internal calls.

I did that and the script compiled and loaded properly (it crashed in
read_port
though, but I'm not sure what it's doing exactly...)

Cheers,

Patrick


----- Original Message -----
From: "Ned Konz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 11, 2001 2:33 PM
Subject: Re: Problems with Inline (more info)


> More info: after deleting my ~/.Inline directory, I now get this:
> $ perl powerMonitor.pl
> Use of inherited AUTOLOAD for non-method main::allow_access() is
deprecated
> at powerMonitor.pl line 25.
> Can't locate auto/main/allow_acces.al in @INC (@INC contains:
> /home/ned/wander/batmon/_Inline/lib /usr/lib/perl5/5.6.1/i686-linux
> /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux
> /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0
> /usr/lib/perl5/site_perl/5.005 /usr/lib/perl5/site_perl .) at
powerMonitor.pl
> line 25
>
> And when I examine the _Inline directory, I see this:
>
> $ ls -lR $PWD/_Inline
> /home/ned/wander/batmon/_Inline:
> total 12
> drwxrwxr-x    2 ned      ned          4096 Dec 11 11:29 build
> -rw-rw-r--    1 ned      ned           216 Dec 11 11:29 config
> drwxrwxr-x    3 ned      ned          4096 Dec 11 11:29 lib
>
> /home/ned/wander/batmon/_Inline/build:
> total 0
>
> /home/ned/wander/batmon/_Inline/lib:
> total 4
> drwxr-xr-x    3 ned      ned          4096 Dec 11 11:29 auto
>
> /home/ned/wander/batmon/_Inline/lib/auto:
> total 4
> drwxr-xr-x    2 ned      ned          4096 Dec 11 11:29
powerMonitor_pl_675e
>
> /home/ned/wander/batmon/_Inline/lib/auto/powerMonitor_pl_675e:
> total 12
> -rw-rw-r--    1 ned      ned           510 Dec 11 11:29
> powerMonitor_pl_675e.inl-r-xr-xr-x    1 ned      ned          7089 Dec 11
> 11:29 powerMonitor_pl_675e.so
>
>
> And then when I look at the global symbols in the .so file I see:
>
> $ nm _Inline/lib/auto/powerMonitor_pl_675e/*.so | grep ' T '
> 00000950 T allow_access
> 0000098c T boot_powerMonitor_pl_675e
> 00000974 T read_port
> 00000980 T write_port
>
> So it's getting compiled, it just doesn't load.
>
> --
> Ned Konz
> currently: Stanwood, WA
> email:     [EMAIL PROTECTED]
> homepage:  http://bike-nomad.com
>

Reply via email to