Linux-Development-Sys Digest #146, Volume #8     Thu, 14 Sep 00 00:13:14 EDT

Contents:
  Re: pppd problem (Karl Heyes)
  Re: Damned unresolved symbols.... (Karl Heyes)
  Re: aic7xxx 2.4.0 kernel module...gone (Ghengis Kahn)
  Re: where to get info about smp implementation (Karl Heyes)
  ASM problem building kernel (Myke Morgan)
  Re: aic7xxx 2.4.0 kernel module...gone (Peter Mardahl)
  Re: new windowing system (Christopher Browne)
  Re: scheduling under Linux not suitable for interactive work? (Christopher Browne)
  passing a member func. as start routine (Bhavin Shah)
  Re: setting non-standard baudrate. (Johan Kullstam)
  Re: passing a member func. as start routine (Kaz Kylheku)
  Re: diverting IP packets in Linux ("Dave Rhodes")
  Re: ASM problem building kernel (Paul Kimoto)
  Re: aic7xxx 2.4.0 kernel module...gone (Leonard Evens)
  Re: Installing Win98, Win2000 and Linux on one PC?! ("Jeff Thurston")
  Re: lilo problems with 19GB IDE drive (Jeremy A Carlson)

----------------------------------------------------------------------------

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: pppd problem
Date: Thu, 14 Sep 2000 00:13:01 +0000

In article <8pod51$j0c$[EMAIL PROTECTED]>, "Nera"
<[EMAIL PROTECTED]> wrote:

> Hi
> 
>     I have configured my linux box with pppd to my ISP to access the =
> Internet. Everything is ok and I successfully connected to my ISP using ppp.
> My = ISP needs me to configure the browser with proxy setting before going
> out the = Internet.
> 
> The problem arises here. The ISP provides me with 3 proxy servers = setting
> and I configure my Netscape browser.
> 
> When I connect to the Internet everytime, the Netscape browser always =
> prompts that it cannot find the proxy server. I always need to shift the =
> 3 settings to try. Strangly, there is always one
> setting workable. And I am sure that the 3 proxy servers are function =
> (since I have another
> machine running Window using the same setting).=20
> 
> What is the problem with my linux box?
> 
> Thx in advance Nera
> 

Are sre saying it's timing out.  How long does it take to dialup and does 
reloading the URL work, try a few times.  Netscape can be a pain at times
only netscape/AOL can do anything about that.

karl


------------------------------

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: Damned unresolved symbols....
Date: Thu, 14 Sep 2000 00:21:16 +0000

In article <3VLv5.24035$[EMAIL PROTECTED]>, "mconroy"
<[EMAIL PROTECTED]> wrote:
> Hi...
> 
> I wrote (read: butchered, copied, and stole) a printer driver for my company.
>  It insmod's fine, but fails depmod -ae with:
> 
> *** Unresolved symbols in /lib/modules....
> 
> depmod: request_region depmod: __generic_copy_from_user
> ...
> depmod: __generic_copy_to_user
> 
> 

Depmod maybe checking against an incorrect System.map file, when 
looking for unresolved symbols.

use strace

karl.




------------------------------

From: Ghengis Kahn <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: aic7xxx 2.4.0 kernel module...gone
Date: Wed, 13 Sep 2000 23:25:04 GMT

Darren Welson wrote:

> Every time I recompile 2.4.0-test 6,7, and 8 kernel, I cannot seem to
> successfully load the AIC7XXX module, or at least have it made.  Anyone know
> how I can check to make sure I am actually making this module, or find a way
> I can to compile it into the kernel?  I have added it as a module and IN the
> kernel in all three test versions as a low-level SCSI option, but what am I
> missing?
>
> darren

I would like to know the answer to that as well. I have the same problem with
the 2.2.12-20 kernal. As far as I can tell, it is not possible to rebuild the
kernel with the AIC7xxxx drivers and actually get it to boot. I spent several
days fighting the "UNRESOLVED SYMBOLS" error on boot. So am I stuck running the
kernel that was installed from the RH installation CD.  Like you, I also turned
on every damn scsi module there was and I even tossed in the IDE modules as
well. No luck. There is some magic trick that the installation CD knows about
that allows the aic7xxxx to run with the default install, but for whatever
reason doesn't work when regen'ing the kernel. I have to conclude there is an
error in the dependencies ("make dep") that is causing this. But I have no clue
how to track it down.


------------------------------

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: where to get info about smp implementation
Date: Thu, 14 Sep 2000 00:28:16 +0000

In article <01c01d35$c9dd2740$7cd4b809@aprasad>, "Anil Prasad"
<[EMAIL PROTECTED]> wrote:
> can anyone tell where to get info about smp implementation in linux kernel

It depends on what depth you are prepared to look at.  To look at the core
of the kernel you can post on newgroups with particular questions, look at
the source of the kernel or look at the linux-kernel archives for discussions
about the issues at hand.

karl

------------------------------

From: Myke Morgan <[EMAIL PROTECTED]>
Subject: ASM problem building kernel
Date: Wed, 13 Sep 2000 16:32:10 -0700


I am trying to build the 2.2.14 kernel with the one-line patch to enable
"proper" core dumping in multi threaded programs. I am getting assembler
errors however. As a background, I have built many kernels before, but
have not done too much kernel hacking.

I'm trying to build the 2.2.14 kernel that came right off the RedHat 6.2
CDROM and using gcc 2.95.2. The error is nowhere near the single file I
altered. It must be something with my compiler, since a colleague built
it fine with egcs 2.91.?.

Here's one error:

make[1]: Entering directory `/usr/src/linux-2.2.14/arch/i386/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.2.14/include -Wall
-Wstrict-prototypes -O2 -
fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe
-fno-strength-reduce -m
386 -DCPU=386   -c -o process.o process.c
{standard input}: Assembler messages:
{standard input}:978: Error: no such 386 instruction: `movups'
{standard input}:979: Error: no such 386 instruction: `movups'
{standard input}:980: Error: no such 386 instruction: `movups'
{standard input}:981: Error: no such 386 instruction: `movups'
{standard input}:1073: Error: no such 386 instruction: `movups'
{standard input}:1074: Error: no such 386 instruction: `movups'
{standard input}:1075: Error: no such 386 instruction: `movups'
{standard input}:1076: Error: no such 386 instruction: `movups'
{standard input}:1251: Error: no such 386 instruction: `movups'
{standard input}:1252: Error: no such 386 instruction: `movups'
{standard input}:1253: Error: no such 386 instruction: `movups'
{standard input}:1254: Error: no such 386 instruction: `movups'

As far as I can tell, this is happening only in three functions in this
file:
copy_thread, dump_fpu, and __switch_to.

The assembly output looks like this in each case:

#APP
        movups %xmm0, 0x00(%eax)
        movups %xmm1, 0x10(%eax)
        movups %xmm2, 0x20(%eax)
        movups %xmm3, 0x30(%eax)

#NO_APP


The C code responsible is the macro unlazy_fpu() in each function, which
in turn calls another macro save_kern_fpu. However, my ASM is a bit
rusty, but I imagine movups is an instruction to save MMX registers. 

I tried playing with setting optimization to PIII, i586, etc... to no
avail.

My assembler has version:

% as -v
GNU assembler version 2.9.1 (i686-pc-linux-gnu), using BFD version 2.9.1

Any help is appreciated.

-- 
myke

------------------------------

From: [EMAIL PROTECTED] (Peter Mardahl)
Crossposted-To: alt.os.linux,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: aic7xxx 2.4.0 kernel module...gone
Date: 13 Sep 2000 23:44:00 GMT

Hmm, I had no difficulty bulding the AIC7xxx modules in and having it work,
for 2.2.x with x = 12, 13, 14, 15, 16, 17
and for
2.4.0-test-y with y=7 and 8.

Note that I built IN the modules, I didn't try to load them.

I have a comment or two on your problem with 2.2.x below:

>the 2.2.12-20 kernal. As far as I can tell, it is not possible to rebuild the
>kernel with the AIC7xxxx drivers and actually get it to boot. I spent several
>days fighting the "UNRESOLVED SYMBOLS" error on boot. So am I stuck running the

I think the problem might be that you compiled a new kernel with AIC7xxxx
AND you're trying to load in a module with AIC7xxx.  Check your init
scripts and see if they're forcing a load of AIC7xxx.

A second thing to check is to make sure that you're loading the RIGHT
AIC7xxx module. One compiled for a different kernel than one you're trying
to boot is likely to hoze you.

PeterM

------------------------------

From: [EMAIL PROTECTED] (Christopher Browne)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Reply-To: [EMAIL PROTECTED]
Date: Thu, 14 Sep 2000 00:21:44 GMT

In our last episode (Wed, 13 Sep 2000 18:35:14 GMT),
the artist formerly known as [EMAIL PROTECTED] said:
>It seems to me that many people are dissatisfied with X Windows.
>I myself am one of them. It takes up a lot of memory. It is not
>too difficult to code for but is bulky and people say it has
>security holes. Has anyone developed an alternative, however?

Several have done so; none that represent _realistic_ alternatives,
though.

>It seems to me that the fact that X uses sockets is bound to
>reduce performance and increase memory use, as well. 

It seems to me that the "fact that X uses sockets" represents one of
those "unexamined fallacies" of life.  Because it is a _false_
statement.

A modicum of research would show that it supports other transport
layers as well, notably local connections via STREAMS pipes and Unix
Domain Sockets, which are both Rather Faster Than BSD Sockets.

>I myself have only very rarely run a program on another computer and
>displayed the window on my system. Is there any reason why a simple
>windowing system cannot exist as a driver?

The problem is that in order to construct that "faster, more efficient
windowing system," you have to pick some set of functionality to give
up on.  And the set of functionality _you_ are willing to give up
isn't necessarily compatible with the set of functionality _I_ am
willing to eschew, is not necessarily the same as someone else's
needs.

Furthermore, _much_ of the criticism that heads out against X11
reflects the impressions that some people have about what others have
written about their prejudices, as opposed to representing actual
criticism of X11 itself.

See <http://reality.sgi.com/opengl/d11/d11.html> on SGI's
X11-compatible system that examines the notion of having special
transports available for local applications.
-- 
(concatenate 'string "cbbrowne" "@" "acm.org")
<http://www.ntlug.org/~cbbrowne/xbloat.html>
"If I could find a way to get [Saddam Hussein] out of there, even
putting a contract out on him, if the CIA still did that sort of a
thing, assuming it ever did, I would be for it."  -- Richard M. Nixon

------------------------------

From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: scheduling under Linux not suitable for interactive work?
Reply-To: [EMAIL PROTECTED]
Date: Thu, 14 Sep 2000 00:21:50 GMT

In our last episode (Wed, 13 Sep 2000 16:46:57 -0600),
the artist formerly known as Brett Johnson said:
>[EMAIL PROTECTED] wrote:
>> 
>> I find it REALLY HARD to believe
>> that one X server, one emacs session (editting 2MB text file) and a
>> couple of X terms cannot fit 64MB comfortably.
>
>Just for grins, look at "top"
>when you're in this situation to see the resident
>process size of X & emacs.  Mine reports:
>
>  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
>  735 root       8   0 66060  61M  1336 S       0  4.5 16.2 181:27 X 
> 7684 brett      4   0  7096 7096  2896 S       0 10.1  1.8   0:01 emacs
>
>which adds up to about 71Meg, just for X & emacs.  That doesn't even count
>all of the daemons that are running, memory the kernel locks down for 
>itself, the window manager you're running on top of X, etc...

I presume that you have a graphics card with 32MB of memory?  Keep in
mind that _that_ memory gets counted as part of X's "footprint," in
addition to whatever memory is used in "user space."

I would find it unremarkable if someone running a 64MB graphics card
would find that they were using over 100MB of RAM...
-- 
(concatenate 'string "cbbrowne" "@" "hex.net")
<http://www.ntlug.org/~cbbrowne/>
"In the  free software world, a  rising tide DOES lift  all boats, and
once the  user has tasted  Unix it's easy  for them to  switch between
Unices."
-- david parsons

------------------------------

From: Bhavin Shah <[EMAIL PROTECTED]>
Crossposted-To: comp.programming.threads
Subject: passing a member func. as start routine
Date: Wed, 13 Sep 2000 17:25:21 -0700

Hi,

How do you use a member function as the start routine
to pthread_create?  Pthread_create takes a 
void * (*)(void *) parameter, but a member func. is
void * (Class::*)(void *)

I'm tried pthread_create(..., &start_routine, ...),
but am getting warnings about the casting above.

TIA.



------------------------------

Subject: Re: setting non-standard baudrate.
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: Thu, 14 Sep 2000 00:32:47 GMT

Lac Hao Viet <[EMAIL PROTECTED]> writes:

> I've got a serial device which can only send and receive at 14,400 bps,
> which is not a UART standard baudrate.

the clock on the UART is 115200.  you can have any divisor of this.
as it happens, 8*14400 = 115200.  you are in luck.

> Does anyone know how to set this
> stupid Windows "standard" baudrate in Linux?

setserial.  set the divisor to 8.

-- 
J o h a n  K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!

------------------------------

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.programming.threads
Subject: Re: passing a member func. as start routine
Reply-To: [EMAIL PROTECTED]
Date: Thu, 14 Sep 2000 00:42:30 GMT

On Wed, 13 Sep 2000 17:25:21 -0700, Bhavin Shah <[EMAIL PROTECTED]> wrote:
>Hi,
>
>How do you use a member function as the start routine
>to pthread_create?  Pthread_create takes a 
>void * (*)(void *) parameter, but a member func. is
>void * (Class::*)(void *)
>
>I'm tried pthread_create(..., &start_routine, ...),
>but am getting warnings about the casting above.

Any casting is wrong. Pthread create wants a plain C function; you must
write a function

        extern "C" void *thread_func(void *) { /*...*/ }

Passing a pointer to a C++ object through the argument parameter and invoking a
method I leave as an exercise to you.

Under most compilers, you can also get away with using a static class member
function, or an ordinary non-member C++ function when a C library wants a
function pointer, though this is non-standard usage.

------------------------------

From: "Dave Rhodes" <[EMAIL PROTECTED]>
Subject: Re: diverting IP packets in Linux
Date: Wed, 13 Sep 2000 21:18:02 -0400

You might be interested in the Divert mod:

http://www.linuxdoc.org/HOWTO/mini/Divert-Sockets-mini-HOWTO.html

or (same stuff)

http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/other-formats/html_single/D
ivert-Sockets-mini-HOWTO.html





------------------------------

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: ASM problem building kernel
Date: 13 Sep 2000 21:56:05 -0500
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, Myke Morgan wrote:
> I'm trying to build the 2.2.14 kernel that came right off the RedHat 6.2
> CDROM and using gcc 2.95.2. The error is nowhere near the single file I
> altered. It must be something with my compiler, since a colleague built
> it fine with egcs 2.91.?.
>
> Here's one error:
 [deletia]
> {standard input}: Assembler messages:
> {standard input}:978: Error: no such 386 instruction: `movups'
> {standard input}:979: Error: no such 386 instruction: `movups'
 [and so forth]

> My assembler has version:
>
> % as -v
> GNU assembler version 2.9.1 (i686-pc-linux-gnu), using BFD version 2.9.1

(The assembler is not the compiler.)  Perhaps you should try a newer
binutils, with a version number like 2.9.5.0.16 or 2.10.0.24 or some
such.

-- 
Paul Kimoto
This message was originally posted in plain text.  Any images, 
hyperlinks, or the like shown here have been added without my
consent, and may be a violation of international copyright law.

------------------------------

From: Leonard Evens <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: aic7xxx 2.4.0 kernel module...gone
Date: Wed, 13 Sep 2000 21:14:31 -0500

Darren Welson wrote:
> 
> Every time I recompile 2.4.0-test 6,7, and 8 kernel, I cannot seem to
> successfully load the AIC7XXX module, or at least have it made.  Anyone know
> how I can check to make sure I am actually making this module, or find a way
> I can to compile it into the kernel?  I have added it as a module and IN the
> kernel in all three test versions as a low-level SCSI option, but what am I
> missing?
> 
> darren

I don't understand this thread.  We've been using scisi drives with
that module since 2.0.XX kernels.  They are modules for the
generic kernel.  Of course you have to have an appropriate entry
in /etc/conf.modules, and in order to boot you need an initrd
statement (and you must have run mkinitrd).  Way back under
RH4.2, we went to the trouble of making kernels with SCSI
support built in but we haven't bothered doing that since
RH5.X.
-- 

Leonard Evens      [EMAIL PROTECTED]      847-491-5537
Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208

------------------------------

From: "Jeff Thurston" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup,microsoft.public.win2000.applications
Subject: Re: Installing Win98, Win2000 and Linux on one PC?!
Date: Wed, 13 Sep 2000 22:04:13 -0500

I have four OS on my machine through the use of VMWare, which creates
virtual machines within the "host" operating system. This stuff is GREAT!
Check it out:  http://www.vmware.com.




------------------------------

From: Jeremy A Carlson <[EMAIL PROTECTED]>
Subject: Re: lilo problems with 19GB IDE drive
Date: 14 Sep 2000 03:04:23 GMT

Karl Heyes <[EMAIL PROTECTED]> wrote:
> In article <8phlp3$16q$[EMAIL PROTECTED]>, Jeremy A Carlson
> <[EMAIL PROTECTED]> wrote:
> > I have two drives installed on my system, one is IDE, the other SCSI. Linux
> > runs off of the SCSI drive, while Win98 runs on the IDE drive. I cannot get
> > lilo to boot Win98 from the IDE drive. I have to tell the bios to boot from
> > IDE if I want to get into Win98, and switch it to boot from SCSI if I want to
> > boot into linux. The IDE drive is 20GB and the SCSI drive is 17.5GB. I am
> > using lilo version 21.5. 
> >     When I put lilo on the SCSI drive and tell lilo to boot the windows 
> > partition it says "booting windows" and returns back to the lilo prompt. If 
> > I put lilo on the IDE drive, I get the two letters "LI" and the computer
> > halts. I have tried both the large geometries and the LBA geometries for the
> > lilo configuration and nothing changes. Both values were obtained from the
> > bios.
> >     Any help would be appreciated.


> with 21.5 use lba32 for large disks as well, boot menu seems to works as well.

> other than that post the lilo.conf file.

> karl

The following is the listing of my lilo.conf:

#boot = /dev/ide/host0/bus0/target0/lun0/disc
boot = /dev/scsi/host0/bus0/target0/lun0/part1
#boot = /dev/sda1
disk = /dev/scsi/host0/bus0/target0/lun0/disc
#disk = /dev/sda
        bios = 0x80
disk = /dev/ide/host0/bus0/target0/lun0/disc
#       bios = 0x80
#       sectors = 63
#       heads = 255
#       cylinders = 2495
lba32
map = /boot/map
install = /boot/boot.b
prompt
image = /boot/vmlinuz-2.4.0-test5
        label = linux
        root = /dev/scsi/host0/bus0/target0/lun0/part1
#       root = /dev/sda1
        read-only
        append = "video=aty128fb:1280x1024-32@75"
other = /dev/ide/host0/bus0/target0/lun0/part1
        label = windows
        table = /dev/ide/host0/bus0/target0/lun0/disc
other = /dev/scsi/host0/bus0/target0/lun0/part3
        label = win98
        table = /dev/scsi/host0/bus0/target0/lun0/disc

I am using linux kernel 2.4.0-test5, with devfs option. That is why the 
/dev hierarchy is so deep. The commented lines are either for backward 
compatibility or are unsuccessful installations. I'm still not having any luck 
installing lilo onto the ide hard drive. It stops, both with the 
geometry setting and without, at LI. I have also tried to give lilo the
"normal" geometry of the drive. All to no avail.

------------------------------


** 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
******************************

Reply via email to