Linux-Development-Sys Digest #783, Volume #8 Tue, 12 Jun 01 12:13:16 EDT
Contents:
Re: udelay in newer kernels
Multiple driver images ? (benny)
gcc 2.95.3 got signal 11 (Peter Ziobrzynski)
Re: gcc 2.95.3 got signal 11 (Grant Edwards)
Re: RH 7.1 (2.4.2) kernel build question - no network (Mark Morrissey)
Re: Type iso_t (Adam Fineman)
Re: why un*x does not support select/poll events on directories?
Re: Multiple driver images ?
How many CPUs can linux support? (Ted Specht)
Re: where to download "AT&T System V/386 assembler syntax manual" (cLIeNUX user)
Re: close or shutdown the tcp socket when it is in SYN_SEND (HuYp)
Re: Parsing error ("Greg K")
Re: close or shutdown the tcp socket when it is in SYN_SEND ("Anthony DeRobertis")
kernel compilation --> modules unresolved symbol? ("Bryan Ng")
tcp timer precision ("Bryan Ng")
Re: How many CPUs can linux support? ("Anthony DeRobertis")
net_device driver (skb...) (Michael)
Re: kernel compilation --> modules unresolved symbol? ("Peet Grobler")
[newbie] doc about system calls ("Thomas")
Re: udelay in newer kernels ("Gerhard Uttenthaler")
Re: udelay in newer kernels (Pete Zaitcev)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: udelay in newer kernels
Date: Mon, 11 Jun 2001 16:19:43 -0000
In article <9g25u1$cg8$05$[EMAIL PROTECTED]>,
Gerhard Uttenthaler <[EMAIL PROTECTED]> wrote:
>it seems that udelay() is not available on kernel 2.4.x ( maybe also 2.2.x
>?)
Why do you think that? Using grep tells me you are wrong:
find -name '*.c' | xargs grep udelay | wc -l
1770
--
http://www.spinics.net/linux/
------------------------------
From: [EMAIL PROTECTED] (benny)
Subject: Multiple driver images ?
Date: 11 Jun 2001 09:46:06 -0700
Is it possible to write a module that may be loaded multiple times.
I want to provide a service that will support multiple remote target peers
and this may be an option if it is possible.
------------------------------
From: Peter Ziobrzynski <[EMAIL PROTECTED]>
Subject: gcc 2.95.3 got signal 11
Date: Mon, 11 Jun 2001 16:49:31 GMT
I am building gcc-2.95.3 using gcc-2.8.1 with libc-2.07 and I getting
'signal 11' error. I tried to use gcc-2.95.2 and got the same error.
Does anybody know what may be the problem?
Compilation error follows:
./xgcc -B/opt/libc6/i686-pc-linux-gnu/bin/ -B./
-I/opt/libc6/i686-pc-linux-gnu
/include -O2 -DIN_GCC -O2 -g -O2 -I./include -fPIC -g1
-DIN_LIBGCC2 -D__
GCC_FLOAT_NOT_NEEDED -I. -I../../src/gcc -I../../src/gcc/config
-I../../src/gc
c/../include -c -DL${name} \
../../src/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
` if [ -f /sys/libc6/lev0/dev/gcc-2.95.3/obj/gcc/../binutils/ar ] ;
then echo
/sys/libc6/lev0/dev/gcc-2.95.3/obj/gcc/../binutils/ar ; else if [
"i686-pc-linux
-gnu" = "i686-pc-linux-gnu" ] ; then echo ar; else t='s,x,x,'; echo ar |
sed -e
$t ; fi; fi` rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_lshrdi3
_ashldi3
_ashrdi3
_ffsdi2
_udiv_w_sdiv
_udivmoddi4
_cmpdi2
_ucmpdi2
_floatdidf
xgcc: Internal compiler error: program cc1 got fatal signal 11
make[2]: *** [libgcc2.a] Error 1
make[2]: Leaving directory `/sys/libc6/lev0/dev/gcc-2.95.3/obj/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/sys/libc6/lev0/dev/gcc-2.95.3/obj/gcc'
make: *** [bootstrap] Error 2
--
Peter Ziobrzynski, mailto:[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: gcc 2.95.3 got signal 11
Date: Mon, 11 Jun 2001 17:04:59 GMT
In article <[EMAIL PROTECTED]>, Peter Ziobrzynski wrote:
>I am building gcc-2.95.3 using gcc-2.8.1 with libc-2.07 and I getting
>'signal 11' error. I tried to use gcc-2.95.2 and got the same error.
>Does anybody know what may be the problem?
If the error is always exactly the same, then I don't know. If
the error occurs in different places, then you've most likely
got a hardware problem. Take a look at:
http://www.bitwizard.nl/sig11/
--
Grant Edwards grante Yow! I'm a GENIUS! I
at want to dispute sentence
visi.com structure with SUSAN
SONTAG!!
------------------------------
From: Mark Morrissey <[EMAIL PROTECTED]>
Subject: Re: RH 7.1 (2.4.2) kernel build question - no network
Date: Mon, 11 Jun 2001 10:35:05 -0700
never mind. discovered that I spaced the Tornado PCI option. I suspect
something equally silly for the desktop case. sigh.
--mark
------------------------------
From: Adam Fineman <[EMAIL PROTECTED]>
Subject: Re: Type iso_t
Date: Mon, 11 Jun 2001 13:49:58 +0000
Norm Dresner wrote:
>
> Marcel Baur <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > I for myself wrote:
> >
> > > Does anyone know how and where type iso_t is defined?
> > > I found references in sys/types.h but didn't get very far.
> > > sizeof(iso_t) gives me a size of 4 bytes, but I can't believe
> > > iso_t is simply an int.
> >
> > s / iso_t / ino_t
> >
> > Sorry for the mess.
> >
>
> grep ino_t /usr/include/*.h
>
> shows that ino_t is typedef'd in dirent.h
>
> Norm
Acutally, it's in <bits/types.h>, if you follow it a bit deeper.
To the OP: Learn how to use grep and find.
--
Adam
------------------------------
From: <[EMAIL PROTECTED]>
Subject: Re: why un*x does not support select/poll events on directories?
Date: 11 Jun 2001 18:08:20 GMT
[EMAIL PROTECTED] wrote:
> On 8 Jun 2001 11:23:18 -0400 Alexander Viro <[EMAIL PROTECTED]> wrote:
> | In article <9fqpek$2ge$[EMAIL PROTECTED]>,
> | <[EMAIL PROTECTED]> wrote:
> |>
> |>if everything is a file why not unix designers add directory events to
> |>select/poll system calls?
> |
> | Because select/poll is not a part of design, it's a hack added afterwards.
> | Broken one, at that.
> kevent() looks like a better design to me.
Hi all,
I looked in Solaris 8 AnswerBook2 and found nothing about it...
also I did found nothing on techpubs.sgi.com it sounds extrange for
me
Al: I'm not going to do anything... just I wanted to reply my curiosity :-)
btw: Thanks for your great Linux support!
thanks all for your replies
Ulisses
Debian GNU/Linux: a dream come true
=============================================================================
"Computers are useless. They can only give answers." Pablo Picasso
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: Multiple driver images ?
Date: Mon, 11 Jun 2001 19:42:04 -0000
In article <[EMAIL PROTECTED]>,
benny <[EMAIL PROTECTED]> wrote:
>Is it possible to write a module that may be loaded multiple times.
>
>I want to provide a service that will support multiple remote target peers
>and this may be an option if it is possible.
Why would you need copies of the driver to support multiple remote targets?
--
http://www.spinics.net/linux/
------------------------------
From: Ted Specht <[EMAIL PROTECTED]>
Subject: How many CPUs can linux support?
Date: Mon, 11 Jun 2001 12:24:54 -0700
I am writing an application that performs parallel processing and I
would like to know if Linux supports multiple CPUs per server and how
stable is the threads implementation? Also is there a "Hardware
Compatibility List" that lists hardware that has been proven to work in
the Linux environment?
My goal is to determine the advantage of using Linux versus Solaris x86.
Any opinons?
No death threats please!
PS
I am aware of Beowulf and other cheap clusters but for various reasons
we have chosen to use the multiple CPU approach for now.
TIA!!!
--
Ted Specht, Jet Propulsion Lab
Mission Execution & Automation Section (368)
Office number:(818)354-9645
------------------------------
From: r@cLIeNUX. (cLIeNUX user)
Subject: Re: where to download "AT&T System V/386 assembler syntax manual"
Date: Tue, 12 Jun 2001 02:04:51 -0000
[EMAIL PROTECTED]
>
>
>Zhu Liming wrote:
>
>> Now I read some programs for linux which using AT&T System V/386
>> assembler syntax (not gcc inline assemble).
>>
>> I want to know where can I download something like "AT&T System V/386
>> assembler syntax manual"
>>
>> thanks
>>
>> Zhu Liming
>
>I second this motion, but I would also like to see a manual that
>describes the assembly language that the GDB debugger users
>with the disassemble command. In particular, I am looking for a
>description of the intel operands, some seem quite complex. I have
>the intel pdf's but they only describe the machine language, not
>how an assembler, like gdb would represent them.
>
>eric
>
>
What's wrong with the GNU as docs? as.info#
Rick Hohensee
------------------------------
From: HuYp <[EMAIL PROTECTED]>
Subject: Re: close or shutdown the tcp socket when it is in SYN_SEND
Date: Tue, 12 Jun 2001 06:45:15 GMT
Hi,
I'm guilty for the first question, it does close the socket, I have not seen
it.
But for the second question, I tried in the Freebsd, it waited 75 seconds. Are
there any timer in arp procedure in Linux? If arp tries several times and no
answers, then return. I used tcpdump to see the arp packet, they appeared
three times in Linux, then return.
Cheers!
[EMAIL PROTECTED] wrote:
> On Mon, 11 Jun 2001 04:58:04 GMT HuYp <[EMAIL PROTECTED]> wrote:
>
> | I'm confused that I can't close the socket when it is in SYN_SEND state,
> | for examples after using "connect" primitive to the remote host, I
> | decide to close it but it is impossible, I tried close(id) and
> | shutdown(id, SHUT_RDWR), it didn't work. Who can help me? OS is redhat
> | linux 6.0, kernel version is 2.2.9.
>
> Why do you say it is impossible? After doing close() what is the
> connection state according to netstat?
>
> | I has another question, there are two hosts A and B in the same subnet,
> | and there is the route to each other in both host. I powered off B, and
> | tried to telnet it in A, according to TCP specification it should return
> | "unable to connect" error after 75 seconds, in fact it return the error
> | "no route to B" after several seconds, why?
>
> In this case, and actual ICMP packet came back. While telnet might
> wait 75 seconds, the network layer ARP query to find the MAC address
> for the given IP address times out faster. Because the next host
> is on the same LAN, it knows it must respond faster or else it is
> unavailable rather quickly. There are other cases which can do this
> as well. So you can't assume telnet will wait 75 seconds. That
> only happens if nothing comes back at all (not always the case).
>
> --
> -----------------------------------------------------------------
> | Phil Howard - KA9WGN | Dallas | http://linuxhomepage.com/ |
> | [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/ |
> -----------------------------------------------------------------
------------------------------
From: "Greg K" <[EMAIL PROTECTED]>
Subject: Re: Parsing error
Date: Tue, 12 Jun 2001 01:28:13 -0700
My apologies to the authors of the book. On the very next page, at the very
bottom, is this:
#include <stdio.h> /* for perror() */
#include <stdlib.h> /* for exit() */
void DieWithError(char *errorMessage)
{
perror(errorMessage);
exit(1);
}
Easy to overlook for an overzealous beginner with no patience (meaning me),
but the author does instruct one to name it as DieWithError.c and compile
and link it with all the examples in the book.
So I sit here ashamed, for wasting every one's time. Sorry.
And if anyone wonders about the appropriateness of this subject on this
newsgroup, I just kind of assumed that since the book is written for
"Linux", and it involves "development" (code?), and TCP/IP is part of the
"system", that someone in this group might know about things like sockets
and how they are used in Linux. If it is the wrong subject matter, please
let me know and I will not post again.
Hey, at least it wasn't a porn link.
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Greg K <[EMAIL PROTECTED]> wrote:
> > "undefined reference to 'DieWithError'"
>
> > I thought I had messed up again, so I just gave up on the code I typed
out,
> > and just compiled the code I downloaded, and STILL got the error.
>
> > Here's a bit of the offending relevant code:
>
> > void DieWithError(char *errorMessage); /* Error handling function */
>
> This is the declaration of an external function that you should write.
>
> > /* Create a reliable, stream socket using TCP */
> > if ((sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0)
> > DieWithError("socket() failed");
>
> and this is an instance of its use. Write the code.
>
> Peter
------------------------------
From: "Anthony DeRobertis" <[EMAIL PROTECTED]>
Subject: Re: close or shutdown the tcp socket when it is in SYN_SEND
Date: Tue, 12 Jun 2001 06:03:45 -0400
In article <[EMAIL PROTECTED]>, "HuYp" <[EMAIL PROTECTED]> wrote:
> in fact it return the error
> "no route to B" after several seconds, why?
Because the ethernet ARP request did not produce an ARP response, which
to Ethernet means `no route'. An ICMP destination-unreachable was
generated.
------------------------------
From: "Bryan Ng" <[EMAIL PROTECTED]>
Subject: kernel compilation --> modules unresolved symbol?
Date: Tue, 12 Jun 2001 10:16:37 GMT
Hi everyone,
please help me...
I installed Mandrake 8.0 and compiled a new kernel using the included
source. I followed the usual procedure (make config, make dep, make
bzImage...) but then when I booted it up it threw a bunch of modules error
at me. It said in /lib/modules/2.4.3-20mdk/xxxx : unresolved symbol:yyy or
something like that...
is there anyway that i can fix it?
thanks a lot!
Bryan
------------------------------
From: "Bryan Ng" <[EMAIL PROTECTED]>
Subject: tcp timer precision
Date: Tue, 12 Jun 2001 10:19:44 GMT
hi,
anyone know of anyway to adjust/set the timer precision used in tcp (kernel
lvl)?
right now the period is 10ms...I would like a more precise clock
thanks!
Bryan
------------------------------
From: "Anthony DeRobertis" <[EMAIL PROTECTED]>
Subject: Re: How many CPUs can linux support?
Date: Tue, 12 Jun 2001 06:21:15 -0400
In article <[EMAIL PROTECTED]>, "Ted Specht"
<[EMAIL PROTECTED]> wrote:
> I am writing an application that performs parallel processing and I
> would like to know if Linux supports multiple CPUs per server
Yes. I run dual-CPU systems routinely. E.g., IBM will be happy to sell you
many-CPU systems.
------------------------------
From: Michael <[EMAIL PROTECTED]>
Subject: net_device driver (skb...)
Date: Tue, 12 Jun 2001 14:14:59 +0200
Hi!
I'm writing a net_device driver for kernel version 2.2.17 (i386) and/or
2.4.x (MIPS). Using `skeleton.c' and other driver sources made it
"work", but there are still problems.
For your understanding: I have to translate the ethernet packets i get
from the network stack and send/receive them over an optical ring. The
ethernet-header is cut away an the "other" header is pasted. When
receiving a packet, i rebuild the ethernet header and add both, header
and the raw data, into the `skb->data'.
There are still some questions:
When receiving an arp-packet from the stack, skb->len is 42 (14+28).
That's ok and the raw data including the ethernet header exists in
skb->data. The packet is sent, the other part receives it and is trying
to rebuild the eth-hdr. I'm writing the header to skb->data, adding the
arp-data (to "skb->data + ETH_HLEN"), because i try to make the packet
look like the one i got from the stack (I set sbk->len to 42!). After
calling `eth_type_trans()' skb->len has been set to 28! Why?
When i return from `hard_start_xmit'-function with a return value not
`0', because i could not send the package (for example the bus (optical
ring) was not free/available), do i always have to free the sk_buff?
Maybe there are return values (-EAGAIN?), for which the stack could try
again to send the packet, instead of remalloc the whole stuff?
In spite of the above problems the driver seems(!) to work. When tracing
its output with tcpdump, it looks very well, also on the receiving side:
arp who-has 192.168.5.10 tell 192.168.5.11
The problem is, that the stack does not answer. `ifconfig' looks ok and
the rx-packets were counted. Using the "real" Ethernet (NE2000) to ping
works, so the stack seems to be ok. What's wrong?
Any suggestions?
I'm not really sure about using `skb_reserve(skb,2)' and
`skb_put(skb,pkt_len)' in my rx_func.
Maybe there is documentation, that i didn't read. Hints are welcome.
Thanks
Michael
------------------------------
From: "Peet Grobler" <peetgr at absa.co.za>
Subject: Re: kernel compilation --> modules unresolved symbol?
Date: Tue, 12 Jun 2001 14:40:31 +0200
Not sure, but try "depmod -a"
Bryan Ng wrote in message <9_lV6.135789$[EMAIL PROTECTED]>...
>Hi everyone,
>
> please help me...
>
>I installed Mandrake 8.0 and compiled a new kernel using the included
>source. I followed the usual procedure (make config, make dep, make
>bzImage...) but then when I booted it up it threw a bunch of modules error
>at me. It said in /lib/modules/2.4.3-20mdk/xxxx : unresolved symbol:yyy or
>something like that...
>
>is there anyway that i can fix it?
>
>thanks a lot!
>
>Bryan
>
>
>
------------------------------
From: "Thomas" <[EMAIL PROTECTED]>
Subject: [newbie] doc about system calls
Date: Tue, 12 Jun 2001 15:51:50 +0200
Could anyone tell me where I could find some infos about how to make my own
system calls ?
Thanks,
Thomas (France)
------------------------------
From: "Gerhard Uttenthaler" <[EMAIL PROTECTED]>
Subject: Re: udelay in newer kernels
Date: Tue, 12 Jun 2001 16:47:52 +0200
Thanks,
I've thought that, because I wrote a device driver which got compiled ok on
a 2.2.14 kernel, but not with 2.2.18.
The code line where I use it is "udelay(500000);"
The error message is: "unresolved symbol __bad_udelay"
This happens all on a customers machine, so I cannot reproduce and analyse
it on my system.
regards,
Gerhard
>Why do you think it's not in the 2.4.x kernels? On my system (2.4.1) it's
>a macro defined in /usr/include/asm/delay.h (which in turn is included by
>/usr/include/linux/delay.h). Or are you trying to use it for a userland
>program? In this case you probably better use usleep() anyway.
>
> Regards, Jens
>--
> _ _____ _____
> | ||_ _||_ _| [EMAIL PROTECTED]
> _ | | | | | | AG Moebius, Institut fuer Molekuelphysik
> | |_| | | | | | Fachbereich Physik, Freie Universitaet Berlin
> \___/ens|_|homs|_|oerring Tel: ++49 (0)30 838 - 53394 / FAX: - 56046
------------------------------
From: [EMAIL PROTECTED] (Pete Zaitcev)
Subject: Re: udelay in newer kernels
Date: 12 Jun 2001 16:01:15 GMT
Use mdelay if your counter is that large.
-- Pete
> The code line where I use it is "udelay(500000);"
>
> The error message is: "unresolved symbol __bad_udelay"
> >Why do you think it's not in the 2.4.x kernels? On my system (2.4.1) it's
> >a macro defined in /usr/include/asm/delay.h (which in turn is included by
> >/usr/include/linux/delay.h). Or are you trying to use it for a userland
> >program? In this case you probably better use usleep() anyway.
> >
> > Regards, Jens
------------------------------
** 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 by posting to the
comp.os.linux.development.system newsgroup.
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
******************************