LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2008, 06:29 PM   #1
mitch1710
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Rep: Reputation: 0
syscall6 error


I have the following error when compiling the syscall.c file

syscall.c:639: error: syntax error before "mmap2"
syscall.c:639: warning: type defaults to `int' in declaration of `_syscall6'
syscall.c:639: warning: data definition has no type or storage class
syscall.c:640: error: syntax error before "getdents"
syscall.c:640: warning: type defaults to `int' in declaration of `_syscall3'
syscall.c:640: warning: data definition has no type or storage class
syscall.c:641: error: syntax error before "getdents64"
syscall.c:641: warning: type defaults to `int' in declaration of `_syscall3'
syscall.c:641: warning: data definition has no type or storage class
syscall.c:666: error: syntax error before "_llseek"
syscall.c:674: warning: return type defaults to `int'
syscall.c: In function `_syscall5':

I'm using ubuntu and the kernel version is
kl2305-04:/media/sdb1/zesto> uname -a
Linux kl2305-04 2.6.22-15-generic #1 SMP Wed Aug 20 18:39:13 UTC 2008 i686 GNU/Linux
 
Old 10-01-2008, 08:14 AM   #2
storkus
Member
 
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 329

Rep: Reputation: 51
It looks like some header file is missing somewhere. One *BIG* downside of Debian-derived distros, which includes Ubuntu, is that the kernels (along with some other software) are non-standard (i.e., non-vanilla, containing code not submitted or checked by their maintainers), which means you have the possibility of getting bit.

One thing you didn't mention: was it working before? Do you remember doing something (or not) before this happened?

Mike
 
Old 10-01-2008, 12:45 PM   #3
mitch1710
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Original Poster
Rep: Reputation: 0
it works on the 2.6.9 kernel. That was RH
 
Old 10-02-2008, 02:12 AM   #4
storkus
Member
 
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 329

Rep: Reputation: 51
Ah! A *LOT* of changes have happened since then, particularly around the time 2.6.9-12. These changes broke a few programs. Still, that shouldn't cause the kernel itself not to compile. The only possibility I can think of at the moment (I just woke up around 20 minutes ago) is that maybe the kernel is expecting a newer gcc, glibc, or associated utilities. Kind of a long shot, though.

I just realized you didn't mention what Ubuntu version you're using: if the distro is too old, all the other software will be too old for the kernel to compile right, as I mentioned above. (The kernel is picky about which version of gcc et al you use to compile it, due to the combination of old and new code present and its sheer size. This was a big problem in the days around the merger of egcs into the main gcc line.)

Mike
 
Old 10-02-2008, 05:25 PM   #5
mitch1710
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Nope not too old a version of ubuntu... 7.04
 
Old 10-02-2008, 05:30 PM   #6
mitch1710
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Original Poster
Rep: Reputation: 0
can you give me a code snippet to call the mmap2 syscall for 2.6.22. Maybe i will try that
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conmpile error wen compile php:configure: error: libpng.(a|so) not found tanveer Linux - Software 5 02-03-2009 06:13 AM
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM
Error message received from system Error while reading filter description for true Steel_J Linux - Software 2 03-04-2006 06:10 PM
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-15-2005 11:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:06 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