Hi,
I am trying to compile a C program that I found on the Internet; I want
to use it to spoof my hostid on a Linux box. The code is here: http://cs1ajb.staff.shef.ac.uk/blog/...cdec4799a85512
When I try to compile, it gives me a syntax error and barfs.
The version of gcc I am using is 3.4.3 on a RHEL AS4-64bit system.
Please email me directly as I do not read Usenet often. I will post a
summary later.
TIA,
Steve 8 1256
Steven C. Liu wrote:
Hi,
I am trying to compile a C program that I found on the Internet; I want
to use it to spoof my hostid on a Linux box. The code is here:
Linux code questions are better directed to a Linux forum.
>
Please email me directly as I do not read Usenet often. I will post a
summary later.
That's not how Usenet works, you post here, you read here.
--
Ian Collins.
"Steven C. Liu" <sl**@steven-c-liu.comwrites:
I am trying to compile a C program that I found on the Internet; I
want to use it to spoof my hostid on a Linux box. The code is here:
http://cs1ajb.staff.shef.ac.uk/blog/...cdec4799a85512
When I try to compile, it gives me a syntax error and barfs.
That's because the code has a syntax error.
The declaration in question is:
static inline _syscall3
(int,real_ioctl ,int,fd,unsigne d int,cmd,unsigne d long,arg);
I don't know what "_syscall3" is; it might be some compiler-specific
extension that's not supported by the compiler you're using.
The web page says to use gcc, and you're using a version of gcc.
Perhaps it's no longer supported. You might try asking in
gnu.gcc.help.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
You should probably post the error you're getting. It compiles fine on
GCC 4.04 on Debian 32 bit. I expect it is a 64 bit library issue.
Doug
On Sun, 19 Nov 2006 01:43:46 -0500
"Steven C. Liu" <sl**@steven-c-liu.comwrote:
Hi,
I am trying to compile a C program that I found on the Internet; I want
to use it to spoof my hostid on a Linux box. The code is here:
http://cs1ajb.staff.shef.ac.uk/blog/...cdec4799a85512
When I try to compile, it gives me a syntax error and barfs.
The version of gcc I am using is 3.4.3 on a RHEL AS4-64bit system.
Please email me directly as I do not read Usenet often. I will post a
summary later.
TIA,
Steve
---
For UNIX, Linux and security articles
visit http://SecurityBulletins.com/
Keith Thompson <ks***@mib.orgw rites:
[...]
I don't know what "_syscall3" is; it might be some compiler-specific
extension that's not supported by the compiler you're using.
The web page says to use gcc, and you're using a version of gcc.
Perhaps it's no longer supported. You might try asking in
gnu.gcc.help.
Or doing a Google search for _syscall3.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
"Steven C. Liu" wrote:
>
I am trying to compile a C program that I found on the Internet; I
want to use it to spoof my hostid on a Linux box. The code is here:
http://cs1ajb.staff.shef.ac.uk/blog/...cdec4799a85512
When I try to compile, it gives me a syntax error and barfs.
The version of gcc I am using is 3.4.3 on a RHEL AS4-64bit system.
Please email me directly as I do not read Usenet often. I will post
a summary later.
Of course. We are all anxious to go out and search for some
mysterious code, compile and debug it, with no clue as to what the
problem is. After that we can't wait to send email to some
unknown, who will use it for possibly nefarious purposes, such as
flogging our email addresses to spammers, and who is obviously too
lazy to read usenet. Our ambition is to serve and obey. [1]
On the other hand, you can always hire me at my standard rates to
do that. I suspect others are equally willing. Just be prepared
to pay for at least one days work in advance at approximately $100
per hour. Use certified checks, and wait for them to clear before
expecting any results.
[1] The Humanoids, by Jack Williamson, recently deceased.
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net>
2006-11-19 <ln************ @nuthaus.mib.or g>,
Keith Thompson wrote:
That's because the code has a syntax error.
The declaration in question is:
static inline _syscall3
(int,real_ioctl ,int,fd,unsigne d int,cmd,unsigne d long,arg);
I don't know what "_syscall3" is; it might be some compiler-specific
extension that's not supported by the compiler you're using.
If I remember linux/glibc correctly, it is a macro. And it is probably
not the source of his problem.
Thanks to those who responded constructively. I didn't see a syntax
mistake in the code, and I guess no one else here did either.
The error message is:
"fakeif.c:2 9: error: syntax error before 'real_ioctl'"
I'll check with a Linux or GCC newsgroup.
Steve
Doug Spencer wrote:
You should probably post the error you're getting. It compiles fine on
GCC 4.04 on Debian 32 bit. I expect it is a 64 bit library issue.
Doug
On Sun, 19 Nov 2006 01:43:46 -0500
"Steven C. Liu" <sl**@steven-c-liu.comwrote:
>Hi,
I am trying to compile a C program that I found on the Internet; I want to use it to spoof my hostid on a Linux box. The code is here:
http://cs1ajb.staff.shef.ac.uk/blog/...cdec4799a85512
When I try to compile, it gives me a syntax error and barfs.
The version of gcc I am using is 3.4.3 on a RHEL AS4-64bit system.
Please email me directly as I do not read Usenet often. I will post a summary later.
TIA,
Steve
---
For UNIX, Linux and security articles
visit http://SecurityBulletins.com/
Random832 <ra****@random. yi.orgwrites:
2006-11-19 <ln************ @nuthaus.mib.or g>,
Keith Thompson wrote:
>That's because the code has a syntax error. The declaration in question is:
static inline _syscall3 (int,real_ioctl ,int,fd,unsigne d int,cmd,unsigne d long,arg);
I don't know what "_syscall3" is; it might be some compiler-specific extension that's not supported by the compiler you're using.
If I remember linux/glibc correctly, it is a macro. And it is probably
not the source of his problem.
Yes, it almost certainly is the source of the problem. When I
compiled the code myself, gcc reported a syntax error on that line.
The first hit on a Google search for "_syscall3" indicates that it
hasn't been supported since 2.6.17 (I think that's the version number
of the Linux kernel).
To the original poster: I suggest asking in a Linux programming
newsgroup. I don't hang out in the comp.os.linux.* and linux.*
hierarchies, so I don't know which would be best.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: C L Humphreys |
last post by:
Hi,
I'm used to programming with Java, and am unsure of how this may work within
VB.
I want to pass some strings to a function, and alter them within the
function. I want the strings to stay altered when the function ends
*without returning the strings explicitly*. I think this is to do with
passing references? How should it work (if possible?) using VB?
|
by: Sizer |
last post by:
We make embedded devices that are basically wimpy linux boxes with small
custom display/touchscreen heads on them. They're not running X or any
other windowing system. All development is done with C++ and PEG
(Portable Embedded GUI) driving the display. PEG lets you install your
own hardware driver to talk any custom hardware, which is what we've
done.
Currently we have an upgrade/installer application that boots from CD,
reads an XML...
|
by: Chris Todhunter |
last post by:
Hi,
I am responsible for a growing website. It is password protected and
we collect data on everyone who logs in. Every month we produce a
report on the trends of users which can result in some very unwieldy
sql statements. We are running MYSQL with SunOne ASP on a Solaris box.
Can anyone help with a way of improving the script - this currently
takes about a minute to complete!
|
by: ThunderMusic |
last post by:
Hi,
I'm trying to have a MSN Messenger like form/app closing behavior. When I
click on the X button, I only want the form to disappear and when I
double-click on the notify icon or right-click on it and choose Open from
the context menu, I want the form to reappear. For that, I got the point
covered. Even when the form is minimize, the behavior is like MSN Messenger.
But one problem arose. When I close the form (the first time), it...
|
by: Durgesh Sharma |
last post by:
Hi All,
Pleas help me .I am a starter as far as C Language is concerned .
How can i Right Trim all the white spaces of a very long (2000 chars)
Charecter string ( from the Right Side ) ? or how can i make a fast
Right Trim Function in c,using Binary search kind of fast algorithm ?
Offcourse...I can use the classical approach too.
like :
Start from the right most charecter of the string to the left of the
| |
by: David Hearn |
last post by:
I've been doing ASP.NET for the past few years and have gotten spoiled and
now find myself in a situation where I need to make some changes to an old
classic ASP page. The problem is that there is a VB script function that
populates an array. There are some dropdown boxes on the page that cause the
page to reload. When it does reload, it causes the function that loads the
array to fire again and I don't want it to. I want to hold the...
|
by: John |
last post by:
I can't get my head around this!
I have the following code:
<%
.... Code for connection to the database ...
.... Code for retrieving recordset ...
If Not rs.EOF Then
... Do something...
|
by: C C++ C++ |
last post by:
what is an escaping variable?
|
by: Raz |
last post by:
On Wed, 30 Apr 2008 21:54:37 GMT, Erik Wikströ
As I said, I will find the link again. His knowledge of C++ is just
fine.
http://www.builderau.com.au/video/soa/Rusty-s-message-to-C-programmers/0,2000064338,22432924p,00.htm
http://www.builderau.com.au/video/soa/Why-C-remains-relevant/0,2000064338,22432921p,00.htm
|
by: Sam |
last post by:
Hi there. I hope this code is standard C. I think it is. Anyway, I
haven't used C in a Looooooong time and am a little rusty on pointers.
I am wondering why "buff" is a pointer to a pointer instead of just
"*buff". I'm also not really sure about the language of pointers. Is
it correct to say "pointer to a pointer to buff" or "double pointer to
buff" or what? If you can help me with this, you have my thanks...
REM --- *Code Below*...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |