Linux-Development-Sys Digest #259, Volume #6 Mon, 11 Jan 99 22:14:24 EST
Contents:
Re: Kernel 2.2 and Cyrix processors (bill davidsen)
Where is top source? (JiSook Kim)
BM-IDEDMA broken on VIA [Re: Ultra-DMA safe in 2.2.0-pre?] (Guido Draheim)
Re: IPMasquerading / SSH (Daniel R. Grayson)
Re: Re: things I'd pay to have developed for Linux... (bill davidsen)
Re: Open Configuration Storage - was Registry for Linux (Leslie Mikesell)
Re: Open Configuration Storage - was Registry for Linux (Leslie Mikesell)
Re: GUI, The Next Generation (Mike McDonald)
Re: How do you make ld output pure binary? (Daniel R. Grayson)
Re: glibc and utmp/wtmp (Juergen Heinzl)
Re: How to run Windows Applications on Linux (Vihung Marathe)
Re: Acessing binary file from the code without open(argv[0] ..) (Pascal Rigaux)
Re: disheartened gnome developer (Christopher B. Browne)
Re: Kernel 2.2 and Cyrix processors (Dale Pontius)
PCMCIA card services (Dr Dale Mellor)
Acessing binary file from the code without open(argv[0] ..) ("Pedro Ribeiro")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: Kernel 2.2 and Cyrix processors
Date: 12 Jan 1999 00:05:06 GMT
In article <77dfi9$rp8$[EMAIL PROTECTED]>,
Dale Pontius <[EMAIL PROTECTED]> wrote:
| So what's the scoop on Kernel 2.2 and Cyrix? Does it really work,
| and the one report just local problems? Were Cyrix fixes dropped
| somewhere, and have they been picked back up?
|
| Or, since I have an OLD stepping of a Cyrix CPU, am I outta luck
| for 2.2 until I upgrade my mobo later this year? I'd rather have
| some outlook before going through the lengthy download and rather
| not lose hair if this is doomed to failure.
2.1.132 runs fine, so I doubt things have changed that much.
Did you select the CPU correctly? =>FROM MEMORY<= you have to select 586
(not Pentium) processor and disable SMP. Cyrix lacks not only SMP (APIC)
hardware, but I believe TSR (TimeStamp Register) as well. I think AMD
has TSR.
Look at help in menuconfig, it's quite clear.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Too soon we grow old, and too late we grow smart" -Arthur Godfrey
------------------------------
From: JiSook Kim <[EMAIL PROTECTED]>
Subject: Where is top source?
Date: Tue, 12 Jan 1999 09:05:26 +0900
I'd like to get top source.
Where is top source?
------------------------------
From: Guido Draheim <[EMAIL PROTECTED]>
Subject: BM-IDEDMA broken on VIA [Re: Ultra-DMA safe in 2.2.0-pre?]
Date: Mon, 11 Jan 1999 23:37:16 +0000
it took me about a week to check it out. The Busmaster IDE DMA
seems to be a source of nuis*ce.
SYMPTOM:
files get changed mysteriously (no errors or warnings in between),
your fs gets corrupted after a while
TEST: take a huge file (> 10MB) and copy it - check with md5sum
eg.
for i in 1 2 3 4 5 6 8 9 ; do
cp comm.rpm comm.$i ;
done
md5sum *
if you're lucky the numbers are identical,
otherwise you have a problem (I had!!)
CURE:
simple:
disable AUTODMA - had been helping me (it's ON by default!)
[comment out the CONFIG_IDEDMA_AUTO line in .config]
better:
.../ide-pci.c has to be adapted,
there we can autodetect for the via-chipset and disable
autodma then (grep for variable autodma - it's in
ide_setup_pci_device)
maybe there could be a nicer special setup through via*.c or
in ide-pci.c ??
PATCH:
+++ drivers/block/ide-pci.c
- if (IDE_PCI_DEVID_EQ(d->devid, DEVID_SIS5513))
- autodma = 0;
+ if (IDE_PCI_DEVID_EQ(d->devid, DEVID_SIS5513)
+ || IDE_PCI_DEVID_EQ(d->devid, DEVID_VP_IDE))
+ autodma = 0;
SORRY:
I'm not a pci crack - so I don't know how to cure it permanently
forever. This has to be left to the kernel people. (actually
I'm not sure it's really the cure)
And even if we can't cure it permantly - it should be atleast
documented as a known "misbehaviour".
good luck
-- guido
PS: my setup:
K6/3d on VIA with IBM UDMA as 1.IDE slave - problem is valid
even for older 2.1.x kernels (I had it with all 2.1.x kernels
down to 2.1.12x)
------------------------------
From: [EMAIL PROTECTED] (Daniel R. Grayson)
Subject: Re: IPMasquerading / SSH
Date: 11 Jan 1999 12:44:18 -0600
Greg Boehnlein <[EMAIL PROTECTED]> writes:
> Hello all,
> I've got this particularly annoying problem when SSHing out
> through my 2.0.36 box w/ IP Masquerading. If I'm sitting behind the box
> and connecting to an outside server, the SSH connection eventually goes
> away. This only happens when I am idle for a period of time.
> I'm running SSH 1.2.26-1us from ftp.replay.com.
>
> Any suggestions? It's a minor annoyance right now, but enough to piss me
> off every couple of hours.
>
> --
> President of New Age Consulting Service, Inc. Cleveland Ohio
> http://www.nacs.net [EMAIL PROTECTED] (216)-619-2000
> An athletic supporter of the Cleveland Linux User Group
> http://cleveland.lug.net
This has nothing to do with ssh, but has to do with an time limit for
automatic expiration of any masquerading connection imposed by the kernel.
I'm using a 2.1 kernel, but it must be pretty similar, and I haven't figured
out to increase the expiration time to anything other than the default 15
minutes.
In linux/include/net/ip_masq.h one sees this line
#define MASQUERADE_EXPIRE_TCP 15*60*HZ
which seems to set the expiration time to 15 seconds. But changing the
number here doesn't help.
In the documentation to ipchains (yes, used only with 2.1 kernels) one sees
an option -S for setting these times to something else, but it doesn't work.
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To:
comp.os.linux.misc,comp.os.linux.development.apps,comp.os.linux.hardware
Subject: Re: Re: things I'd pay to have developed for Linux...
Date: 11 Jan 1999 23:35:05 GMT
In article <77cu86$e1q$[EMAIL PROTECTED]>,
Peter Samuelson <[EMAIL PROTECTED]> wrote:
| [Adrian 'Dagurashibanipal' von Bidder <[EMAIL PROTECTED]>]
| > >LVM.
| > Sorry my ignorance - but what's that?
| storage volumes on disks. Key features (I refer to the AIX
| implementation here, about which I know the most):
|
| - A volume group, which acts as a sort of meta-partition, if you
| will, can comprise multiple physical disks. These can also provide
| redundancy not unlike RAID mirroring, as well as plain striping.
| The sysadmin can add disks to an LV at will, and take them away.
You have mixed volume group (VG) and logical volume (LV) here. RAID-0/1
are done at the LV level, and you can't (so far as I know) add/delete
physical volumes to a striped LV. You can make/break mirrors, which is
how you mirror root, etc.
| - Inside a VG you have logical volumes, which are allocated from the
| VG like files in a filesystem. Like files, these can be resized,
| moved, copied, renamed, etc. They can also be mirrored. Each LV is
| a block device.
Striped or mirrored, not both, at least up to 4.2.1 kernel.
| - On an LV you mkfs a filesystem. Since the LV is a block device this
| works just like traditional partitions/slices, except that LV's are
| so much easier to manipulate.
Like an md pseudo physical device.
| - Some filesystems commonly in use with LVM's support resizing. AIX's
| JFS, for example, lets you grow it without unmounting. This would
| not be very useful with traditional disk partitions or slices, but
| makes life much more fun for the sysadmin when the filesystem is on
| a (resizable) LV. Wish /home were 80 megs bigger? No problem: have
| the system allocate 20 more 4-meg "blocks" for /home's LV, assuming
| the VG has that many available. If not, first add another disk to
| the VG....
Most people over partition their drives, IMHO. If you have only a single
drive, as most or at least many systems do, you gain mostly complexity
by having a bunch of partitions for the actual ext2fs data. There are
good reasons to partition backups, that's another topic. I see too many
personal systems with /home and / and /boot and /tmp, and... garbage.
Just because you understand techniques useful on large systems doesn't
mean you need them, or gain from them.
|
| And one more feature that can save a lot of headaches in some
| circumstances:
|
| - Disks are recognized not by SCSI ID's or whatever but by a VG
| signature. LV's contain a certain amount of metadata as well, so
| /etc/fstab is not really needed to figure out what partitions mean
| what.
Which sadly cuts both ways. When that data is valid you can close and
export a VG, move the physical drive(s) of the VG to another machine and
connect with no need to play with tables. If it isn't valid for any
reason you run into various problems, the least of which is persistant
error messages about mission or duplicate physical volumes.
The AIX model is a good thing to understand, I'm not sure I want to do
things exactly that way. I could go on about how I do think it should be
done, but it's not relevant to this topic.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Too soon we grow old, and too late we grow smart" -Arthur Godfrey
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Open Configuration Storage - was Registry for Linux
Date: 11 Jan 1999 12:57:59 -0600
In article <[EMAIL PROTECTED]>,
Frank Sweetser <[EMAIL PROTECTED]> wrote:
>>
>> If you can't obtain these values through the same mechanism you
>> propose for everyone else's configurations then you have done
>> something wrong.
>in addition, there also has to be some amount of locally stored information
>so that the lib knows who/what to contact for more info (other local files,
>rdbms, etc). each source could also then be given a modifier applied to
>any priorities from that source, at the sysadmin's discresion.
Your starting point values need to be local, but if they indicate
that additional sources should be checked then network sources and
priorities should cascade upwards so you would really only need to
configure one thing to pull in the whole network scheme. This
could be a well-known-service on a well-known-hostname (alias) in
your default domain so an unconfigured machine - even DHCP addressed
- could come up using it automatically with a minimum of administrator
work. For example if you requested http://configuration/configuration.txt
and parsed the result for a magic token that said it was the right
file type it could just work out of the box with only a DNS alias
and a file on a web server added to the network. The down side is
that if there is no DNS service available you would have to wait
for a timeout.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Open Configuration Storage - was Registry for Linux
Date: 11 Jan 1999 13:03:11 -0600
In article <[EMAIL PROTECTED]>,
Frank Sweetser <[EMAIL PROTECTED]> wrote:
>however, here's the problem. values can come in from multiple locations.
>say any number of these values can be changed. one or more of these
>locations do not support guaranteed record locking or transactions. say
>you make a set of changes that in addition to any transaction capable
>locations, also covers values originating from multiple non-capable
>locations. how do you guarantee consistency accross the entire
>configuration?
You can't, but that doesn't exist in LDAP now either even if you
use the same server you can't update two things atomically. I
think the best you can do is offer one mechanism that does it
right and let people take their chances with the others. With
infrequently changed data it may be worth having the option.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Mike McDonald)
Subject: Re: GUI, The Next Generation
Date: 11 Jan 1999 20:12:40 GMT
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>,
Anselm Lingnau <[EMAIL PROTECTED]> writes:
> In article <[EMAIL PROTECTED]>,
> Derek B. Noonburg <[EMAIL PROTECTED]> wrote:
>
>> I have no idea if the source for wm or wmc is available.
>
> However, there would be nothing to prevent somebody from writing a
> nonoverlapping-window window manager for X11, in the same way that we
> have all sorts of different window managers. One could probably take
> fvwm or twm source and butcher it into something resembling such a
> beast.
>
> Anselm
The early releases of X11 came with a tiling window manager. It might be
easier to start there than "butchering" an existing one.
Mike McDonald
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Daniel R. Grayson)
Subject: Re: How do you make ld output pure binary?
Date: 11 Jan 1999 13:25:12 -0600
Greg Law <[EMAIL PROTECTED]> writes:
> I have 2 ELF files - one created by NASM and one by GCC. I want to link
> them together (which is OK), but not so that they'll run under Linux,
> rather so I get a /pure/ binary - no libraries, no symbols, just code
> and a little data. I can't for the life of me figure out how to do this
> using ld under Linux - please help!
>
>
> Thanks in advance,
>
> Greg.
Use
ld -s -static foo.o bar.o
(The -s means no symbols, the -static means no dynamic libraries.)
Here is an example.
% cat foo.c
#include <unistd.h>
_start(){
write(1,"hi there\n",9);
_exit(0);
}
% gcc -c -O2 foo.c
% ld -s -static foo.o -o foo -lc
% ./foo
hi there
% ls -l foo
-rwxrwxr-x 1 dan Macaulay 752 Jan 11 13:23 foo
% size foo
text data bss dec hex filename
158 0 4 162 a2 foo
% file foo
foo: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, stripped
Now we convert it from ELF to binary.
% objcopy -O binary foo foo.binary
% ls -l foo.binary
-rwxrwxr-x 1 dan Macaulay 158 Jan 11 13:23 foo.binary
I think that ought to be what you want.
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: glibc and utmp/wtmp
Date: Mon, 11 Jan 1999 20:25:59 GMT
In article <77d43e$ftk$[EMAIL PROTECTED]>, Tom Daley wrote:
>I recently upgraded to glibc-2.0.6.
>I have also started building my system programs to use the library.
>After building and installing sh-utils-1.16 I have noticed that
>"users" and "who" don't work (they run but give no output).
That's an old one ... the format is different and never be sure it is
the same on other, non Linux machines.
[...]
>Does anyone know how I can get this working again?
Compile all programmes that do read / write to utmp / wtmp ... sysvinit,
xterm, rxvt, the shadow password package, ...
Cheers,
Juergen
--
\ Real name : J�rgen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
\ Phone Private : +44 181-332 0750 \ /
------------------------------
From: Vihung Marathe <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.advocacy,comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: How to run Windows Applications on Linux
Date: Mon, 11 Jan 1999 12:43:32 -0800
> Robin V. Stacey wrote in message ...
> Santa's making a list. If You could have any piece of software ported
> to Linux, other than Microsoft's what would it be?
Dear Santa,
You know what they say - "Give a man a fish, and you feed him for a day.
Teach a man to fish, and you feed him for live". So - give us tools for
creating our own applications!
We want a good integrated development tool for C++ and/or Java.
It should be easy enough for newbies to use - with little or no programming
involved. But it should also give access to the power that real developers
need
It should be smooth - with a polished UI and quick responses
It should let you build GUIs and set event interaction graphically, but
also let you access and tweak all the source code.
It should be two-way - changes in GUI should be immediately reflected in
the source, and changes in source should be immediately reflected in GUI
It should support some form of component objects - like JavaBeans. You
should be able to use third party components seamlessly in your
applications, and it should also allow you to build third-party components
It should itself be componentised and customisable - allowing you to insert
compoinents, plugins or macros to extend and expand the IDE
It should have a lightening fast compiler that does incremental compiles
It should include seamless support for developing enterprise applications -
database access and administration, data-aware components
It should support developing components for the leading internet
application servers
In summation, it should be something that takes everything that is good
from a lot of the leading products:
* everything that is good and RAD (i.e. Mickey-Mouse tools) from Inprise's
Delphi , CBuilder and JBuilder products, Symantec's Cafe products and
Microsoft's Visual Basic,
* everything that is good, fast and powerful from Delphi, Borland C++, and
Visual C++,
* everthing that is customisable from Borland Delphi and Microsoft
Developer Studio
* everything that is componentised from the JavaBeans, VBX --> OCX -->
ActiveX --> COM philosophy
* and last but not least, everything that is buzzword compliant from all of
the above - 'enterprise', 'distributed', 'web-based', etc. etc. etc.
(My experience with IDEs is largely under Windows, so forgive the examples)
--V
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<PRE>
Please remove the .nospam from my reply-to address
____________________________________________________________
<B>V i h u n g M a r a t h e</B>
____________________________________________________________
</PRE>
</HTML>
------------------------------
From: Pascal Rigaux <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Acessing binary file from the code without open(argv[0] ..)
Date: 11 Jan 1999 21:13:36 +0100
"Pedro Ribeiro" <[EMAIL PROTECTED]> writes:
> Can anyone tell-me how can i access the binary file i'm executing from the
> code under Linux (without open(argv[0], ...) ???
>
> It should be any way to know the addresses where the binfile was paged an
> simply access them with a pointer no ??
>
You should be able to acces the code, but in any case it won't be the same as
the thing you get when you open argv[0].
For eg, the beginning of an elf binary contains .ELF which explains where to map
the binary.
The @s at which the different parts of the binary are mmapped can be found with
objdump.
Hope it helps, Pixel.
------------------------------
From: [EMAIL PROTECTED] (Christopher B. Browne)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.x
Subject: Re: disheartened gnome developer
Date: 12 Jan 1999 02:38:04 GMT
Reply-To: [EMAIL PROTECTED]
On Mon, 11 Jan 1999 17:13:58 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
posted:
>> You'll have to be more specific.
>>
>> All I've found so far in the Redhat control-panel are like thus:
>>
>> Red Hat Linux netcfg 2.18
>> Copyright (C) 1996, 1997 Red Hat Software
>> Redistributable under the terms of the GNU General Public License
>
>Gee, so the control panel is owned by Red Hat, and they could rerelease them
>tomorrow under a proprietary license. Just like I said they could (and said
>they wont do it) when you called me a liar.
>
>I suppose you wont apologize, of course.
You miss the consideration that the third line of that comment shows
a *really big stick* that strongly discourages Red Hat Software from
doing a proprietary release.
Were RHS to do so, there would be a *dramatic* reaction within hours.
Since netcfg is "Redistributable under the terms of the GNU General
Public License," that proprietary release, along with Red Hat's
reputation, would be doomed to disinterest.
- The day that they stop distributing GPLed versions, there would be a
natural process of reaction whereby *someone* would volunteer to continue
development on the GPLed branch.
- Slashdot's server would probably burn out from exceedingly heavy
traffic from discussions of what to do about Red Hat Software.
- There would be a "run" on sales of SuSE, Slackware, Debian, and
Caldera CDs, as people feeling the faintest bit "advocacy-oriented"
would promptly deinstall Red Hat from machines in favor of some other
distribution.
There is indeed a legality whereby Red Hat could release some software
under proprietary license; the impact of that decision would be swift
and severe retribution *against Red Hat Software.*
--
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer <http://www.hex.net/~cbbrowne/lsf.html>
[EMAIL PROTECTED] - "What have you contributed to Linux today?..."
------------------------------
From: [EMAIL PROTECTED] (Dale Pontius)
Subject: Re: Kernel 2.2 and Cyrix processors
Date: 11 Jan 1999 20:58:45 GMT
In article <[EMAIL PROTECTED]>,
Dr Dale Mellor <[EMAIL PROTECTED]> writes:
>
> I found it necessary to disable SMP before it would even boot (on a
> Cyrix 120+). I'm still not entirely satisfied that the networking is
> okay (I often get long delays when rlogin'ing)
> Dale
The SMP thing only makes sense for non-Intel. Too bad nobody ever
did produce an OpenPIC mobo. So if someone else has Cyrix working
with 2.2, I guess when I get two minutes to rub together I'll have
to give it a whirl.
Or choose between that and another stab at GNOME.
Dale Pontius
(NOT speaking for IBM)
------------------------------
From: Dr Dale Mellor <[EMAIL PROTECTED]>
Subject: PCMCIA card services
Date: Mon, 11 Jan 1999 19:28:46 +0000
Has anyone managed to compile the PCMCIA card services stuff for a
2.2.0-pre? kernel? What's the trick? I could not get the stuff to
recognise the extended kernel version number.
Dale
------------------------------
From: "Pedro Ribeiro" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Acessing binary file from the code without open(argv[0] ..)
Date: Mon, 11 Jan 1999 19:38:50 -0000
Can anyone tell-me how can i access the binary file i'm executing from the
code under Linux (without open(argv[0], ...) ???
It should be any way to know the addresses where the binfile was paged an
simply access them with a pointer no ??
Thanks in advance.
--
[]---------------------------------------------------------------[]
Pedro Ribeiro
Online: http://www.isel.pt/~pribeiro/
IRC(PTnet) Nick: PAntMaR
e-Mail: Personal: [EMAIL PROTECTED]
Admin: [EMAIL PROTECTED]
Tel: Internal Ext.1407
Tel: NEW! +351-1-8317032 / Fax: +351-1-8317171
[]---------------------------------------------------------------[]
------------------------------
** 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
******************************