LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-23-2004, 10:14 AM   #1
invinciblemk
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Rep: Reputation: 0
Problem s with undefined sysmbol-flock


hai guys,

I am a newbie using solaris.I am trying to insatll a Simulator for my project called Simplescalar.I am facing error called undefined symbol flock in syscall.o(of simulator).

Then I checked syscall.c of simulator.In it I cud find

#define OSF_SYS_flock 131

#if !defined(MIN_SYSCALL_MODE)
/* ADDED BY CALDER 10/27/99 */
case OSF_SYS_flock:
/* get flock() information on the file */
{
regs->regs_R[MD_REG_V0] =
flock(/*fd*/(int)regs->regs_R[MD_REG_A0],
/*cmd*/(int)regs->regs_R[MD_REG_A1]);

/* check for an error condition */
if (regs->regs_R[MD_REG_V0] != (qword_t)-1)
regs->regs_R[MD_REG_A3] = 0;
else /* got an error, return details */
{
regs->regs_R[MD_REG_A3] = -1;
regs->regs_R[MD_REG_V0] = errno;
}
}
break;
#endif

Is it because the complier cud not undersatand what is meant by flock.

Please help me.Eagerly waiting for ur reply

thanx in advance
-mk
 
Old 03-23-2004, 05:40 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
yes, the compiler doesn't know what "flock" means, its probably a dependency error.. does it require any other outside programs?, next check thru all the source headers and see were "flock" is defined, then include that file in...

but shouldn't this be in the solaris form?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
flock problem climbingmerlin Programming 3 10-20-2005 09:36 AM
do we have concept of flock in solaris invinciblemk Solaris / OpenSolaris 3 05-23-2005 08:02 PM
how to use the flock system call in sun os 5.07 ?? gajaykrishnan Solaris / OpenSolaris 2 03-27-2005 03:08 PM
flock and touch Arcades Programming 6 03-11-2005 08:13 PM
Problem with insatlling a Simulator-undefined symbol flock invinciblemk Linux - Software 0 03-23-2004 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:49 PM.

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