Linux-Development-Sys Digest #994, Volume #7 Tue, 4 Jul 00 12:13:15 EDT
Contents:
compile error with RH 2.2.16-3 (mike)
Java on linux. with multiple CPUs (Thaddeus L Olczyk)
Re: capturing ethernetframes (Zoran Cutura)
Re: add_mouse_randomness(__u32 mousedata) ? (Lew Pitcher)
Re: Java on linux. with multiple CPUs ([EMAIL PROTECTED])
Re: capturing ethernetframes ([EMAIL PROTECTED])
Standard Data Types (Eoin Ryan)
Re: Standard Data Types (Mathias Waack)
Implementing timers in none Windows applications ("Gast Primus")
Re: Good Basic compiler for linux? (Frank Ranner)
Re: How to retreive/change the full MAC address of a network card ? ("Robichaud,
Jean-Philippe [BAN:6S33:EXCH]")
Re: Good Basic compiler for linux? (Christopher Browne)
Elf: dynamic linking ("Andrew Voznytsa")
Re: Implementing timers in none Windows applications (Kaz Kylheku)
Re: Elf: dynamic linking (John Reiser)
Re: Java on SMP linux. (Ronald Cole)
Re: Java on linux. with multiple CPUs (Rasputin)
----------------------------------------------------------------------------
From: mike <[EMAIL PROTECTED]>
Subject: compile error with RH 2.2.16-3
Date: Mon, 03 Jul 2000 21:45:10 -0500
make dep and clean run fine, but when I make bzImage:
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/split-include
scripts/split-include.c
In file included from /usr/include/errno.h:36,
from scripts/split-include.c:26:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [scripts/split-include] Error 1
Any help?
Mike
------------------------------
From: [EMAIL PROTECTED] (Thaddeus L Olczyk)
Crossposted-To: comp.lang.java.programmer
Subject: Java on linux. with multiple CPUs
Date: Tue, 04 Jul 2000 04:31:27 GMT
Reply-To: [EMAIL PROTECTED]
Sorry.
I am reposting because SMP linux sounds like a distro, so the title
was confusing.
Sun claims that their Java does not work on linux in SMP (
multiprocessor ) systems.
Can anyone point me to a good Java implementation that:
1) Has a fairly good debugger.
2) Can run on SMP systems.
3) Most import-- is free.
------------------------------
From: Zoran Cutura <[EMAIL PROTECTED]>
Subject: Re: capturing ethernetframes
Date: Tue, 04 Jul 2000 08:08:05 +0200
Dirk Walravens wrote:
>
> Hi,
>
> I'm writing a kernel-module which should be notified whenever my
> ethernetcard receives a frame (and it should get the frame also).
> I don't want to hack a call to my module into some ethernet-card driver.
> Isn't there a more generic way for me to register my module as
> the receiver for ethernetframes. (And at the same time to unregister the
> normal protocolstack in the linux kernel).
Well Dirk,
how often do you want to ask this question?? Isn't it enough to post
it once? Wait until somebody answers it. It is very annoying reading
the same post over and over again.
Z
------------------------------
From: Lew Pitcher <[EMAIL PROTECTED]>
Subject: Re: add_mouse_randomness(__u32 mousedata) ?
Date: Mon, 03 Jul 2000 12:02:06 -0400
jacky cui wrote:
>
> I don't understand the meaning of this function in mouse driver!
> can anyone tell me ?
>
> thanks
It's used to 'add randomness' to the kernel random number generator.
See /usr/src/linux/drivers/char/random.c, where you will find the
following comments...
* Exported interfaces ---- input
* ==============================
*
* The current exported interfaces for gathering environmental noise
* from the devices are:
*
* void add_keyboard_randomness(unsigned char scancode);
* void add_mouse_randomness(__u32 mouse_data);
* void add_interrupt_randomness(int irq);
* void add_blkdev_randomness(int irq);
*
* add_keyboard_randomness() uses the inter-keypress timing, as well
as the
* scancode as random inputs into the "entropy pool".
*
* add_mouse_randomness() uses the mouse interrupt timing, as well as
* the reported position of the mouse from the hardware.
--
Lew Pitcher
Master Codewright and JOAT-in-training
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Java on linux. with multiple CPUs
Crossposted-To: comp.lang.java.programmer
Date: Tue, 04 Jul 2000 07:07:56 GMT
In comp.os.linux.development.system Thaddeus L Olczyk <[EMAIL PROTECTED]> wrote:
> Sun claims that their Java does not work on linux in SMP (
> multiprocessor ) systems.
I would have to double check, but I believe a more accurate statement
is the Sun port doesn't support native threads. I think it will work
fine with green threads. Green threads, however, won't span CPUs.
In any case, the blackdown port is much better at threading,
apparantly. The last version I used ran native threads very well. Try
mousing around at www.blackdown.org.
--
Matt Gauthier <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: capturing ethernetframes
Date: Tue, 04 Jul 2000 07:22:29 GMT
In article <[EMAIL PROTECTED]>,
Zoran Cutura <[EMAIL PROTECTED]> wrote:
> Well Dirk,
>
> how often do you want to ask this question?? Isn't it enough to post
> it once? Wait until somebody answers it. It is very annoying reading
> the same post over and over again.
>
Like I already said in one of the previous one. The newsserver of our
university was giving me a serious headache. It always told me that my
post failed. Now it seems like they did got through.Our newsserver seems
to be using some kind of caching software that doesn't seem to work the
way it should. I appologized already for the inconvienience (see my
posts coming via the dejanews-system) and I'm sorry once more.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Eoin Ryan)
Subject: Standard Data Types
Date: 4 Jul 2000 09:56:26 GMT
Hi all,
I have recently taken on a personal project who's goal is to migrate
a running process between two linux boxes. I will be ignoring several of
the key factors preventing process migration coming into the mainstream,
mainly the redirection of screen output, keyboard input, mouse input etc..
The project will involve taking the struct task, including the stack,
the processes pages of memory, and any virtual memory it has and sending it
over the network to the target machine, setting it up there and putting it
back on the run queue. If the executable is located on an nfs mounted
drive then I will not have to move this file.
The only major problem I forsee is sending the pages of memory over
the network. Recalling RPC (Remote Procedure Call), any arguments in the
call must be changed to a standard data type, so that a machine of
different archeticture can read them. How does this impact my sending of
the processes memory? Does this mean that I can only send a process to a
machine of equal archeticture? Is there some way of getting around this?
Any comments, suggestions or otherwise eagerly accepted.
------------------------------
From: Mathias Waack <[EMAIL PROTECTED]>
Subject: Re: Standard Data Types
Date: 04 Jul 2000 13:08:40 +0200
Hi,
[EMAIL PROTECTED] (Eoin Ryan) writes:
> I have recently taken on a personal project who's goal is to
> migrate a running process between two linux boxes.
Something like http://www.mosix.org ?
> The only major problem I forsee is sending the pages of memory
> over the network. Recalling RPC (Remote Procedure Call), any
> arguments in the call must be changed to a standard data type, so that
> a machine of different archeticture can read them. How does this
> impact my sending of the processes memory? Does this mean that I can
> only send a process to a machine of equal archeticture? Is there some
> way of getting around this?
I don't know your design so I can't say much. Why do you use RPC for
sending the pages? If you use RPC, you can send the pages between
different architectures - thats one of the main features (see XDR).
But why? How do you continue a process coming from one architecture
on a different hardware?
Are you really, really sure that you understood the problem?
Mathias
------------------------------
From: "Gast Primus" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development
Subject: Implementing timers in none Windows applications
Date: Tue, 4 Jul 2000 12:30:48 +0100
Hi
How would I implement a timer handler, i.e. after 5 seconds call
func1(). I also want to be able to cancel the timer if needs be.
I don't want to use sigitimer() to generate a SIGALRM to be trapped as it
seems inflexible and I can't see how you'd cancel a timer. I also want to
have multiple timers running at one time and I don't think signal trapping
handles this.
I've used XtAppAddTimer() with motif before and have the OSF/Motif
development kit for Linux. Unfortunately the exec I want to have timers is
not an X windows application and therefore does not have a Graphics Context.
Can I use XCreateGC to create a GC using some default values such as 0:0 for
the display etc - what is a Drawable - to use the X windows timer routines
as these would be just the job.
Thanks in Advance
Iain
------------------------------
From: Frank Ranner <[EMAIL PROTECTED]>
Subject: Re: Good Basic compiler for linux?
Date: Tue, 04 Jul 2000 23:08:19 +1000
John Gluck wrote:
> AndyD wrote:
>
> > Not very helpful...
> >
> > I don`t think the person posting the message was ASKING for your opinion on
> > BASIC or wished to see a list of your programming conquests.
> >
> > Visual Basic is used by a great number of people & if linux has a comparable
> > application it would help it be adopted more in the real world.
> >
> > A large number of people make a living programming in a variety of BASIC`s
> > and I for one would like to see a modern implementation of the language on
> > LINUX.
> >
> > -AndyD
> >
>
> [snip]
>
> You have a very good point... I don't like basic and don't have a use for it
> but I suppose there are good reasons
> for using it.
>
> Visual basic has a strong following because (from what I've heard) you can
> develop pretty slick database apps fairly quickly.
> That makes it attractive in the business world.
>
> --
> John Gluck (Passport Kernel Design Group)
>
> (613) 765-8392 ESN 395-8392
>
> Unless otherwise stated, any opinions expressed here are strictly my own
> and do not reflect any official position of Nortel Networks.
There is a program called 'xbasic' which is available
from http://www.maxreason.com/software/xbasic/linux.html
I don't know if it is in any way compatible with MS VB but it
certainly qualifies as a Linux Basic system.
Regards, Frank Ranner
------------------------------
From: "Robichaud, Jean-Philippe [BAN:6S33:EXCH]" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: How to retreive/change the full MAC address of a network card ?
Date: Tue, 04 Jul 2000 09:44:40 -0400
Matthew Dare wrote:
> What I can't understand is why you would want to change the MAC address for anyway.
> If two or more cards chare the same mac address your network won't work anyway.
I'm working on a platform that CAN'T be down more that 5 minutes in a
year ! Some applications refer to the MAC adress of a card to perform
some security. Both cards on my machine won't be up at the same time,
but if one fails, the other one will be activate and do the traffic.
That is why I must clone the MAC address in the same time I clone the
ip.
Thanks
--
Jean-Philippe Robichaud
[EMAIL PROTECTED]
(514) 818-7750
(ESN) 888-7750
St-Laurent, Quebec, Canada
Matthew Dare wrote:
>
> Theoretically you shouldn't be able to modify any of it. The first four digits are
>the
> ID of the cards manufacturer. (ie 3COM, IBM etc... - Each manufacturer may have more
> than one ID) The second set of four digits are assigned by the manufacturer
>(generally in
> sequence) to give each card a unique ID. (ie every network card ever manufactured
> should have a unique id). Some cheap NIC manufacturers allowed the last four digits
>to be
> changed by their configuration software. If you have one of these then you should
>be able
> to read the NIC's (BIOS?) configuration, change the last four digits and write it
>back.
>
> What I can't understand is why you would want to change the MAC address for anyway.
> If two or more cards chare the same mac address your network won't work anyway.
>
> Hope this helps.
>
> Cheers
>
> ---
> Matthew Dare
> [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Good Basic compiler for linux?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 04 Jul 2000 14:03:18 GMT
Centuries ago, Nostradamus foresaw a time when Frank Ranner would say:
>John Gluck wrote:
>> AndyD wrote:
>> > Not very helpful...
>> >
>> > I don`t think the person posting the message was ASKING for your opinion on
>> > BASIC or wished to see a list of your programming conquests.
>> >
>> > Visual Basic is used by a great number of people & if linux has a comparable
>> > application it would help it be adopted more in the real world.
>> >
>> > A large number of people make a living programming in a variety of BASIC`s
>> > and I for one would like to see a modern implementation of the language on
>> > LINUX.
>>
>> [snip]
>>
>> You have a very good point... I don't like basic and don't have a use for it
>> but I suppose there are good reasons
>> for using it.
>>
>> Visual basic has a strong following because (from what I've heard) you can
>> develop pretty slick database apps fairly quickly.
>> That makes it attractive in the business world.
>
>There is a program called 'xbasic' which is available
>from http://www.maxreason.com/software/xbasic/linux.html
>
>I don't know if it is in any way compatible with MS VB but it
>certainly qualifies as a Linux Basic system.
The three main reasons for a "visual BASIC" to be considered valuable are:
a) If it integrates tightly with a DBMS, and provides a way of quickly
prototyping database-oriented apps,
b) If it integrates tightly with a GUI builder, and provides a way of
quickly prototyping GUIed apps, and
c) If it integrates tightly with components written for MS VB, and
provides a way of quickly making use of those components.
As far as I can tell, none of those things are true for any of the
"BASIC" implementations on Linux.
In contrast, Perl and Python both provide DBMS interfaces that are
fairly sophisticated, as well as interfaces to GUI builders including
Glade. And both have considerable libraries of third party code as in
CPAN (Comprehensive Perl Archive Network).
Perl and Python fulfil the roles that people associate with Visual BASIC.
They're not ANSI BASIC, but neither is VB.
--
[EMAIL PROTECTED] - <http://www.hex.net/~cbbrowne/lsf.html>
"...Roxanne falls in love with Christian, a chevalier in Cyrano's
regiment who hasn't got the brains God gave an eclair..."
-- reviewer on NPR
------------------------------
From: "Andrew Voznytsa" <[EMAIL PROTECTED]>
Subject: Elf: dynamic linking
Date: Tue, 4 Jul 2000 17:36:24 +0300
Hi all,
I have several questions about it:
How I can export some variables/functions from executable not from .so) ? (I
would not like to use way, which is used in Linux kernel).
How I can export one symbol and do not export other ? (without using
'static' modifier).
For example:
main_executable.c:
#include <..>
int export_from_executable(void)
{
return 0;
}
int main(int argc,char **argv)
{
return do_something(); // imported from main_so.so(main_so.c)
}
main_so.c:
#include <..>
int do_something_2(void) // this function can't be exported!!!
{
return export_from_executable(); // imported from
main_executable(main_executable.c)
}
int do_something(void)
{
return do_something_2();
}
// --------
Thx in advance,
Andrew.
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development
Subject: Re: Implementing timers in none Windows applications
Reply-To: [EMAIL PROTECTED]
Date: Tue, 04 Jul 2000 14:48:32 GMT
On Tue, 4 Jul 2000 12:30:48 +0100, Gast Primus <[EMAIL PROTECTED]> wrote:
>Hi
>
>How would I implement a timer handler, i.e. after 5 seconds call
>func1(). I also want to be able to cancel the timer if needs be.
>
>I don't want to use sigitimer() to generate a SIGALRM to be trapped as it
You mean setitimer().
>seems inflexible and I can't see how you'd cancel a timer. I also want to
You cance a timer in the documented manner. The man page on my Linux system
says: ``A timer which is set to zero (it_value is zero or the timer expires
and it_interval is zero) stops.''
>have multiple timers running at one time and I don't think signal trapping
>handles this.
Perhaps the best way to create a periodic timer is to create a thread which
invokes callback functions. The thread watches a queue of timer requests which
it dequeues and performs.
glibc 2.2 is alread in its first test release and has the functions
timer_create, timer_delete and timer_settime. These functions are
documented by the POSIX draft and The Single UNIX Specification:
http://www.unix-systems.org/single_unix_specification_v2/
With timer_create you can create many timers (currently, the 2.1.91 test
release has a limit of 256 timers, but that will likely go up before 2.2 is
released). These new timers can be configured to deliver a signal, or to
execute a handler in the context of a new thread. You can configure the
properties of that thread, such as its priority and scheduling class.
--
#exclude <windows.h>
------------------------------
From: John Reiser <[EMAIL PROTECTED]>
Subject: Re: Elf: dynamic linking
Date: Tue, 04 Jul 2000 08:03:46 -0700
> How I can export one symbol and do not export other ?
The command line option -export-dynamic to /bin/ld adds all load-time
global symbols to the runtime dynamic symbol table. In order to be
selective, a linker script must be used:
http://www.cygnus.com/pubs/gnupro/5_ut/b_Usingld/ldLinker_scripts.html
--
John Reiser, [EMAIL PROTECTED]
------------------------------
From: Ronald Cole <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.java.programmer
Subject: Re: Java on SMP linux.
Date: 04 Jul 2000 08:29:34 -0700
[EMAIL PROTECTED] (Thaddeus L Olczyk) writes:
> Sun claims that their Java does not work on linux in SMP (
> multiprocessor ) systems.
> Can anyone point me to a good Java implementation that:
> 1) Has a fairly good debugger.
> 2) Can run on SMP systems.
> 3) Most import-- is free.
blackdown.org
--
Forte International, P.O. Box 1412, Ridgecrest, CA 93556-1412
Ronald Cole <[EMAIL PROTECTED]> Phone: (760) 499-9142
President, CEO Fax: (760) 499-9152
My GPG fingerprint: C3AF 4BE9 BEA6 F1C2 B084 4A88 8851 E6C8 69E3 B00B
------------------------------
From: [EMAIL PROTECTED] (Rasputin)
Crossposted-To: comp.lang.java.programmer
Subject: Re: Java on linux. with multiple CPUs
Reply-To: [EMAIL PROTECTED]
Date: Tue, 04 Jul 2000 16:02:02 GMT
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>In comp.os.linux.development.system Thaddeus L Olczyk <[EMAIL PROTECTED]> wrote:
>> Sun claims that their Java does not work on linux in SMP (
>> multiprocessor ) systems.
>
>I would have to double check, but I believe a more accurate statement
>is the Sun port doesn't support native threads.
<snip>
>In any case, the blackdown port is much better at threading,
>apparantly. The last version I used ran native threads very well. Try
>mousing around at www.blackdown.org.
>
IBMs JDK is worth a look too for speed (don't know about smp though)
Free as in beer, if not as in speech.
--
Rasputin.
Jack of All Trades - Master of Nuns.
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************