LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 09-04-2014, 08:42 PM   #1
mohammad taqy bayat
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Rep: Reputation: Disabled
error: call to ‘__open_too_many_args’ declared with attribute error: open can be call


Hi there,
While compiling a makefile on ubuntu 12.04 LTS (64-bit) encountered with this error:

gcc -c -O -DLinux -I /usr/include/readline -I ./inc f_evt.c
In file included from /usr/include/fcntl.h:252:0,
from ./inc/f_evt.h:10,
from f_evt.c:43:
In function ‘open’,
inlined from ‘f_evt_put_open’ at f_evt.c:738:37:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:45:26: error: call to ‘__open_too_many_args’ declared with attribute error: open can be called either with 2 or 3 arguments, not more
make: *** [f_evt.o] Error 1

in these lines:

f_evt.h : 10 : #include <fcntl.h>
f_evt.c : 43 : #include "f_evt.h"
f_evt.c: 738: if((ps_chan->l_channel_no=open(c_file,PUT__CRT_FLAG,EF_FILE_ACCE,c_mode))== -1)

with the following declarations In function ‘open’:

CHARS c_file[80];
#define PUT__OPEN_APD_FLAG O_RDWR|O_APPEND
#define DEF_FILE_ACCE S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH
#define PUT__CRT_FLAG O_CREAT|O_RDWR
CHARS c_mode[80];

How do I fix it?
 
  


Reply

Tags
unix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: call to ‘__open_too_many_args’ declared with attribute error: open can be call mohammad taqy bayat Linux - Software 1 09-02-2014 08:18 AM
Error while adding the new system call sachingotakindi Linux - Newbie 1 06-09-2011 01:47 AM
What is the system call of getting the terminal attribute? henry0712 Programming 2 01-02-2007 12:06 PM
NETPERF: ERROR --> send_udp_stream: error on remote: Interrupted system call dravya Linux - General 1 05-29-2004 05:49 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration