Raul, just curious, where do you work and what do you do? Would give some
context.
On Mar 13, 2014 10:36 AM, "Raul Miller" <[email protected]> wrote:

> Interesting. Still fails for me, building with your more direct build of
> the shared object.
>
> It's *probably* a bug at the OS level, but that could easily reflect a bug
> in the standards. (But that's the nice thing about standards: there are so
> many to choose from.)
>
> Thanks,
>
> --
> Raul
>
>
>
> On Thu, Mar 13, 2014 at 11:23 AM, Joe Bogner <[email protected]> wrote:
>
> > On Thu, Mar 13, 2014 at 11:14 AM, Raul Miller <[email protected]>
> > wrote:
> > > 2!:13 was a concept I invented a few minutes ago.
> > >
> > > And, yes, I could probably do this in a library. so I started on that.
> I
> > > went into a linux instance and in j602/bin I created a file named
> errno.c
> > > which contains the text:
> > >
> > > #include <errno.h>
> > >
> > > int get_errno() {
> > >   return errno;
> > > }
> > >
> > > Then:
> > >
> > > ~/j602/bin$ CFLAGS=-fPIC make errno.o
> > >  cc -fPIC   -c -o errno.o errno.c
> > > ~/j602/bin$ gcc -shared -Wl,-soname,liberrno.so.1 -o liberrno.so.1.0.0
> > > errno.o
> > > ~/j602/bin$ ./jconsole
> > >    require 'dll'
> > >    'liberrno.so.1.0.0 get_errno n' cd ''
> > > |domain error: cd
> > > |   'liberrno.so.1.0.0 get_errno n'    cd''
> > >    cder''
> > > 1 0
> > >
> > > (file not found)
> > >
> >
> > For what it's worth, it worked for me with an absolute path. No changes
> to
> > the c
> >
> > gcc -shared -fPIC errno.c -o errno.so
> >
> >    '/home/joebo/j64-701/errno.so get_errno n' cd ''
> > âââ
> > â0â
> > âââ
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to