function "open"

View: New views
6 Messages — Rating Filter:   Alert me  

function "open"

by bblochl2-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Obviously you are using Objective-C (Macintosh)? There are some error messages desiring for the GNU Objective-C Compiler. After installing GNU Objective-C there are two more errors (and a lot of the usual warnings) left:

I get two errors with Ubuntu (and debian with a somewhat different text):

In Funktion »open«,
    eingefügt von »callsystem_open« bei source/callsystem.c:569:
/usr/include/bits/fcntl2.h:51: Fehler: Aufruf von »__open_missing_mode« mit Attributfehler deklariert: open with O_CREAT in second argument needs 3 arguments
In Funktion »open«,
    eingefügt von »callsystem_open« bei source/callsystem.c:581:
/usr/include/bits/fcntl2.h:51: Fehler: Aufruf von »__open_missing_mode« mit Attributfehler deklariert: open with O_CREAT in second argument needs 3 arguments

I cannot interpret this messages, as I do not know the function "open". (At least Io is running anyway after repairing that frequently described library problem with libiovmall.so. I cannot anticipate if there may arise problems in real work on larger projects with Io with this.)

I am far away from the discussion what Objective-C has and C++ has not and vice versa. But with Objective-C you lock out the SBC-users (SBC=Single board computer) and embedded application. I do not know any SBC offering an Objective-C compiler?) That would be a great pity. Is it possible to transfer the code to plain ANSI C and C++? At least, is it possible to break down the code to a common version compiling on both, Objective-C and C++? Are there any plans?

Lua as a might be competitor and compiles easily on SBC`s with simple ANSI C and GNU g++ as well (certainly only if there is enough Memory available). Certaily I know that Lua is not like Io, but exactly that`s the point why Io is interesting in that field.

Regards BB





Re: function "open"

by Samuel A. Falvo II :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jun 19, 2009 at 8:28 AM, bblochl2<bblochl2@...> wrote:
> I am far away from the discussion what Objective-C has and C++ has not and vice versa. But with Objective-C you lock out the SBC-users (SBC=Single board computer) and embedded application. I do not know

Any SBC that runs Linux can run Objective-C.

--
Samuel A. Falvo II

Re: function "open"

by bblochl2-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Any Linux can run Objective-C, there is no doubt. I know, that there are Linux SBC`s. (See for instance http://www.linuxdevices.com/ as a good source for examples.)

But as a rule (not as a law!) most embeded SBC`s do not run any OS but simple a program in an endless loop in limited memory. (That is a matter of cost.) Such a loop with an integrated interpreter of a reflective language is an interesting thing. I would recommend the Io makers not to cut off that "exotic" application branch without an impediment.

Do not understand that as any critics on Io, but just to check the application limits and to answer the question for myself: only for fun or just for fun with an unlimited application perspective.

Regards BB

 

--- In iolanguage@..., "Samuel A. Falvo II" <sam.falvo@...> wrote:
>
> On Fri, Jun 19, 2009 at 8:28 AM, bblochl2<bblochl2@...> wrote:
> > I am far away from the discussion what Objective-C has and C++ has not and vice versa. But with Objective-C you lock out the SBC-users (SBC=Single board computer) and embedded application. I do not know
>
> Any SBC that runs Linux can run Objective-C.
>
> --
> Samuel A. Falvo II
>



Re: function "open"

by James Burgess-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi BB,
 The function open() is a operating system call. You can learn more about it by looking at the manual page:

man 2 open

Note it's in section "2" (which contains all the system calls). Your compiler is telling you that the code is trying to pass two arguments when in fact the call takes three. This is a historical problem, open() used to take only 2. Most system's are set up to allow either, yours is set to be strict. There's probably a define or a switch to gcc that will relax the requirement.

- James







Re: function "open"

by bblochl2-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In iolanguage@..., "ljnrf" <jamesrburgess@...> wrote:
>
> Hi BB,
>  The function open() is a operating system call. You can learn more about it by looking at the manual page:
... There's probably a define or a switch to gcc that will relax the requirement.
>
> - James
>

Thanx! I remember now - Library io.h, I had that problem a couple of years ago with another software. AFAIK are the compiler switches set in the make file. A suggestion for the Io mantainers to calm frightened users like me.

BB


Re: function "open"

by James Burgess-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wiki.ubuntu.com/CompilerFlags

"Reduced checking via -D_FORTIFY_SOURCE=1 in CPPFLAGS. Disabled with -U_FORTIFY_SOURCE or -D_FORTIFY_SOURCE=0 in CPPFLAGS."

- James