For what it's worth, here's what I've done to work around that interface
error issue:

#!/bin/sh
set -e # stop this script at first error
sudo dd if=/dev/zero of=/swap.file bs=1M count=1024
sudo mkswap /swap.file
sudo swapon /swap.file
if ! grep /swap.file /etc/fstab; then
sudo sh -c 'echo >>/etc/fstab /swap.file none swap sw 0 0'
fi

In other words: I'm adding swap to the system. Works great so far.

Abusing sudo like that, and using a swap file instead of a swap partition,
is not by any means the best approach, but the best approach would be to
give J a more direct mechanism for creating directories. And since I have
other priorities right now, I'm going to put that off for later.

FYI,

-- 
Raul



On Thu, Mar 13, 2014 at 11:35 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

Reply via email to