Linux-Development-Sys Digest #845, Volume #6     Fri, 18 Jun 99 23:13:53 EDT

Contents:
  Re: Linux uid limits! (James Hewitt)
  Kernel Question ("Sheridan Ethier")
  mounting ftp/http (Henrik Karlsson)
  Creating RPM packages from tar.gz source ("Fran�ois Dupoux")
  Re: mounting ftp/http (Alexander Viro)
  Re: I can not compile anything after glibc-2.1.1 installed (Andreas Jaeger)
  Re: Run time measurement with micro (or at least milli)-second  (Chet Skapczynski)
  Re: Casio QV-11 on Lava DSerial PCI Port, follow-up ([EMAIL PROTECTED])
  asus agp v3800 driver for linux ("Vert Christian")
  Re: RAID-1 and 2.2.9 revisited (John Burton)
  tunnel device ([EMAIL PROTECTED])
  Re: power off after shutdown --> no more in 2.2.x ? ("Meinhard E. Mayer")
  How to dump printk() msgs in XFree86? (Eric Fowler)
  How to unload module with screwy refcount? (Eric Fowler)
  Re: Creating RPM packages from tar.gz source (Peter Samuelson)
  Re: asus agp v3800 driver for linux (Wez Furlong)
  Re: RAID-1 and 2.2.9 revisited (Don Baccus)
  Re: TAOs: Much to do about nothing? (Peter Samuelson)
  Re: Linux uid limits! (Peter Samuelson)
  Re: Linux uid limits! (Peter Eddy)

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

From: James Hewitt <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: Fri, 18 Jun 1999 10:47:20 -0700

Georg Acher wrote:
> On Alpha-Linux, an int is 32bit and a long is already 64bit, so you don't need
> long long there. Sometime x86-coders think that an int are not real 32bit, and
> decide to use long to get 'real, authentic and good' 32bit. This is #2 in the
> TOP10-list of "How to write programs that crash on Alpha". #1 is the assumption
> "sizeof(int)==sizeof(void*)=4" ;-)

Okay, what is the "correct" way to specify an integer of a specific
size so that code can be cross-platform?  If there isn't an ANSI
standard, is there at least a convention for Linux?

-- 
James Hewitt                              [EMAIL PROTECTED]
University of Washington                            Seattle, Washington
May the Source be with you

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

From: "Sheridan Ethier" <[EMAIL PROTECTED]>
Subject: Kernel Question
Date: Fri, 18 Jun 1999 14:47:56 -0400

I am trying to port the Logitech joystick driver code to the QNX OS.
I have run into a couple things related to the linux kernel that I can't
quite figure out (since I don't ussually work on Linux).  Namely:

1) What is a jiffy?  I assume it is some sort of time measurement.  Is it
 1 jiffy = 0.01 seconds?

2) What is the value of HZ - do I calculate it or is it some sort of
constant based on
the speed of my machine.

Sheridan



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

From: [EMAIL PROTECTED] (Henrik Karlsson)
Subject: mounting ftp/http
Date: 18 Jun 1999 18:58:48 GMT

I think it would be nice to be able to mount ftp/http servers. Are any 
work being done in this area? Or is it a bad idea (security holes?)?

--
/H

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

From: "Fran�ois Dupoux" <[EMAIL PROTECTED]>
Subject: Creating RPM packages from tar.gz source
Date: Fri, 18 Jun 1999 22:15:11 +0200

Hello,

I have the source of a program: kfilecoder-src-0.2.3.tar.gz, and i d'like
to create the RPM binary package.

I use RPM 2.91, and I wrote the spec file:

=============== kfilecoder=0.2.3=1.spec==============
Summary: KFileCoder for KDE
Name: kfilecoder
Version: 0.2.3
Release: 1
Copyright: GPL
Group: Utilities/File
Source: kfilecoder-src-0.2.3.tar.gz
%description
Encode and decode some files in an archive with a password
under Linux/KDE.

%prep
%setup
%build
./configure
make

%install
make install

%files
/opt/kde/bin/kfilecoder
/opt/kde/share/applnk/Applications/kfilecoder.kdelnk
/opt/kde/share/locale/fr/LC_MESSAGES/kfilecoder.mo
/opt/kde/share/icons/kfilecoder.xpm
/opt/kde/share/apps/kfilecoder/
====================================================

I run RPM with the command "rpm -ba kfilecoder-0.2.3-1.spec".
RPM extract the TGZ archive, and success when doing "./configure", "make",
and "make install".
But in the %files section, he stops, and print the message:

Processing files: kfilecoder
Segmentation fault (core dumped)

The files are presents on the disk, I have all access (logged as root).
There is no error when RPM only create the src.rpm with "rpm -bs ...".

What can I do to solve the problem please ?

Thank you.



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

From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: mounting ftp/http
Date: 18 Jun 1999 15:26:45 -0400

In article <7ke4t8$dqp$[EMAIL PROTECTED]>,
Henrik Karlsson <[EMAIL PROTECTED]> wrote:
>I think it would be nice to be able to mount ftp/http servers. Are any 
>work being done in this area? Or is it a bad idea (security holes?)?

Just what you will mount with HTTP? It is *not* a filesystem protocol -
you have no directories and no random (heck, partial) access to the
contents of files.

With FTP you can get something resembling a filesystem with podfuk and
friends - userspace server that looks like Venus for the kernel and
does mirror-on-demand work talking with the external FTP servers.

-- 
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

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

From: Andreas Jaeger <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: I can not compile anything after glibc-2.1.1 installed
Date: 18 Jun 1999 21:19:42 +0200

>>>>> Y Chen writes:

 > Hello, everyone,
 > I compiled glibc-2.1.1 and "make check" seems smoothly.
 > Then I followed glibc2-how-to move some of my stuff
 > (old include , old lib) to a new dir.

 > Finally "make install", and script failed in line 192.
 > I think running the program which the perl script just 
 > compiled generate a "segment fail".

 > I can run kernel and X in my system except I can not compile
 > anything: gcc is able to compile program, but the program
 > always "seg fail". Using ldd, it seems library is OK. Using
 > gdb, it seems program fial at very beginning, as soon as 
 > program executed, it failed. ( main(){ ).

Read the whole glibc2.1.1 FAQ.  Most problems should be mentioned
there.  If you're upgrading from libc5, it might be that you didn't
fix your specs file.

 > I am quite upset and seeking for help.

 > btw, is it necesary to recompile gcc before I can use g++?
 > Thanks!
You have to recompile libstdc++ (check the FAQ) - and it's best to
recompile the whole compiler.

Andreas
-- 
 Andreas Jaeger   [EMAIL PROTECTED]    [EMAIL PROTECTED]
  for pgp-key finger [EMAIL PROTECTED]

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

From: Chet Skapczynski <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: Run time measurement with micro (or at least milli)-second 
Date: Fri, 18 Jun 1999 14:41:01 -0500

You could try putting the code you are timing inside of a for-loop which
executes the timed code maybe 1000 times and then divide the overall time
you get by 1000.  True, this only gives you the AVERAGE execution time of
the code sequence within 1000 executions but this average will be fairly
close to what you want since any INDIVIDUAL execution of that code sequence
will always be subject to extraneous influences like cache hits/misses,
memory accesses and the like and so no SINGLE reading will ever be truly
representative of  the code sequence anyway.  And the overhead of your
little for-loop may become insignificant if the number of iterations is
large enough.  Or you could time the "pure" for-loop itself in the same way
and get an "average" overhead value for the for-loop which you could then
deduct from your other timings as an overhead adjustment.  In short, there
are a few things you could do.

--
Chet Skapczynski




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

From: [EMAIL PROTECTED]
Subject: Re: Casio QV-11 on Lava DSerial PCI Port, follow-up
Date: Fri, 18 Jun 1999 19:49:58 GMT



> Thank you very much for your message and the answer is YES provided
the
> patch works on kernel 2.2.5 as well. I don't think there's any other
way
> of going about getting Linux 2.2.5 on RedHat 6.0 to recognize the Lava
> DSerial 550 PCI card. So, I'd like to try and isntall the patch
> (something I've never done before in all of my 6
> months of Linux experience!) and then see if I can get the camara to
> work as well.

once you get the serial card working, you can use gPhoto
(www.gphoto.org) to retrieve images from your camera. there is also a
qvplay package that works purely in a CLI.

Scott Fritzinger
send email here: scottf(at)unr(dot)edu


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: "Vert Christian" <[EMAIL PROTECTED]>
Subject: asus agp v3800 driver for linux
Date: Fri, 18 Jun 1999 22:51:20 +0200
Reply-To: "Vert Christian" <[EMAIL PROTECTED]>

i have a video card asus agp v3800  (nvidia riva 128/2) 32mb
who know where i can find correct driver ???
thanks
[EMAIL PROTECTED]




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

From: John Burton <[EMAIL PROTECTED]>
Subject: Re: RAID-1 and 2.2.9 revisited
Date: Fri, 18 Jun 1999 22:02:42 GMT

[EMAIL PROTECTED] wrote:
> 
> I'm currently installing a RAID 1(hardware) system with 2 mirrored 9GB
> SCSI drives and  a 4GB IDE sytem disk.
> I have simple question - what's the most appropriate partitionig sheme
> for a web server? Why I shouldn't put the swap on the RAID drives?
> 

Ummm as far as "why..." Do you really need to mirror you swap space? 
Read can be faster, but write can suffer because you're always writing
to both disks. The kernel does a good job of striping (Raid-0) of swap
space if you have two or more swap partitions on different disks (and
different ide channels)

John

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

From: [EMAIL PROTECTED]
Subject: tunnel device
Date: Fri, 18 Jun 1999 20:31:06 GMT

Anything in Linux corresponding to the FreeBSD tunnel device (tun0)?

http://false.net/ipfilter/1999_03/0037.html
http://help.ionet.net/freebsd.html

The idea is to be able to debug a protocol in user space instead of in
the kernel.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: "Meinhard E. Mayer" <[EMAIL PROTECTED]>
Subject: Re: power off after shutdown --> no more in 2.2.x ?
Date: Fri, 18 Jun 1999 22:43:49 +0000
Reply-To: [EMAIL PROTECTED]

Moritz Franosch wrote:
> =

> Igor Zlatkovic <[EMAIL PROTECTED]> writes:
> =

> > Stefan Opperskalski wrote:
> > > Since 2.2.x, the power-off function with my asus-boards doesn=B4t w=
ork any
> > > more.
Power-off on shutdown works for me  (Kernel 2.2.10, redhat 6.0)
with an asus P2BS =

board single PII 400 MHz with the following .config options:
CONFIG_APM=3Dy
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=3Dy
# CONFIG_APM_CPU_IDLE is not set
CONFIG_APM_DISPLAY_BLANK=3Dy
CONFIG_APM_POWER_OFF=3Dy
# CONFIG_APM_IGNORE_MULTIPLE_SUSPEND is not set
# CONFIG_APM_IGNORE_SUSPEND_BOUNCE is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set

--
Hardy =

                          -------****-------
Meinhard E. Mayer, Research Professor of Physics and Mathematics =

Department of Physics and Astronomy, Frederick Reines Hall
U. C., Irvine CA 92697-4575

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

From: Eric Fowler <[EMAIL PROTECTED]>
Subject: How to dump printk() msgs in XFree86?
Date: Fri, 18 Jun 1999 17:57:10 +0000

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I&nbsp;am starting my first device driver project in LInux, using xf86
as my dev environment. I&nbsp;have noticed that if I&nbsp;am not in xf86,
my printk() msgs go to the console where I&nbsp;want them, but when I load
or tweak the driver from the xterm, they don't appear. Howcum?&nbsp;How
can I fix this?
<p>Thanks gobs ...
<pre>--&nbsp;
Vivez sans temps mort!&nbsp;
(Live without dead time)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Situationist International

sockeye [at] rmii [dot] com</pre>
&nbsp;</html>


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

From: Eric Fowler <[EMAIL PROTECTED]>
Subject: How to unload module with screwy refcount?
Date: Fri, 18 Jun 1999 17:59:49 +0000

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I&nbsp;am writing a driver with one eye on the ORA book (Rubini). When
I&nbsp;try to unload my driver, rmmod whines, "device or resource busy".
I&nbsp;think this is because I&nbsp;screwed up the ref counts with the
MOD_[INC |&nbsp;DEC]_USE_COUNT macros. If so, how can I force this thing
to die without rebooting?&nbsp;If it is some other cause, what might it
be?
<pre>--&nbsp;
Vivez sans temps mort!&nbsp;
(Live without dead time)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Situationist International

sockeye [at] rmii [dot] com</pre>
&nbsp;</html>


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

From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: Creating RPM packages from tar.gz source
Date: 18 Jun 1999 18:26:33 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

[Fran�ois Dupoux <[EMAIL PROTECTED]>]
> %build
> ./configure
> make
> 
> %install
> make install
> 
> %files
> /opt/kde/bin/kfilecoder
[...]

I know almost nothing about rpm, but with dpkg tools you (almost?)
always install to a temporary tree rather than the real thing.  I don't 
know if it makes any difference, but one usually sees stuff like

  %build
  ./configure --prefix=./install

and then use relative %file-names.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

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

From: [EMAIL PROTECTED] (Wez Furlong)
Subject: Re: asus agp v3800 driver for linux
Date: 19 Jun 1999 00:01:03 GMT
Reply-To: [EMAIL PROTECTED]

] Quoted from: Vert Christian <[EMAIL PROTECTED]>
] Date: Fri, 18 Jun 1999 22:51:20 +0200

>i have a video card asus agp v3800  (nvidia riva 128/2) 32mb
>who know where i can find correct driver ???

You can grab an X-server for TNT and TNT2 cards from www.nvidia.com
look for resource center then downloads/drivers.

The X server was built for a recent X distro, but it works fine for me
with XFree from SuSE 5.2.

-- 
Wez Furlong                        Undergrad - Electronic Systems Engineering
                                           http://www.twinklestar.demon.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Subject: Re: RAID-1 and 2.2.9 revisited
From: [EMAIL PROTECTED] (Don Baccus)
Date: 18 Jun 1999 17:40:30 PST

In article <[EMAIL PROTECTED]>,
John Burton  <[EMAIL PROTECTED]> wrote:

>Ummm as far as "why..." Do you really need to mirror you swap space? 

That's one good reason.

Then there's another question: do you really want your web server
to swap when RAM costs like $1/MB?  

Put the swap partition on your system disk then buy enough RAM
so the swapper sits on the bench and gets no playing minutes :)
-- 

- Don Baccus, Portland OR <[EMAIL PROTECTED]>
  Nature photos, on-line guides, at http://donb.photo.net

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

From: [EMAIL PROTECTED] (Peter Samuelson)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAOs: Much to do about nothing?
Date: 18 Jun 1999 20:13:07 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

  [me]
> > If you stand the bed on end, does that mean someone who wants to
> > sleep will have to busy-wait instead?  Bad, bad, bad....
[The Ghost In The Machine <[EMAIL PROTECTED]>]
> Heh...well, he could do like Batman and sleep upside-down
> like a bat, his legs strapped to the bed or something.... :-)

Great, now you're gratuitously adding hardware requirements and making
unwarranted assumptions about your users.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

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

From: [EMAIL PROTECTED] (Peter Samuelson)
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: 18 Jun 1999 20:44:43 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

[Matthew Carl Schumaker <[EMAIL PROTECTED]>]
> This may be true for Alphs, and it is also true for x86 that ints and
> long ints are the same size = 4 bytes

Actually it's entirely a construction of the C compilation/runtime
environment.  The OS is involved in that it specifies an ABI for its
libc and friends that everyone pretty much has to follow.

"for x86" is just too vague.  A modern protected-mode compiler will
indeed use 32-bit ints and longs on x86.  But it wouldn't have to.

> as far as ansi is concerned I could have sworn that long int were
> always supposed to be 4 bytes long.  this was to ensure that you
> always got a 4 byte integer back in the days of 16 bits(when ints
> were only 16 bits)

Nope.  I cannot quote chapter and verse, but I think ANSI (and ISO, by
extension (no pun intended)) says something like this:

  sizeof(char)==1
  sizeof(short int) >= 2
  sizeof(int) >= 2
  sizeof(long int) >= sizeof(int) >= sizeof(short int)
  sizeof(long long int) is undefined since `long long int' is undefined

I understand C9X, bowing to popular convention, will define `long long
int' to 64 bits, or at least define it at all.  Currently it's a GNU C
(and maybe others) extension, not a standard.

Common practice on many Unices is to make `int' 32 bits (because too
much software depends on this) and `long' your biggest machine word.
So if you want to use the most natural word size for your target
machine, you should use a `long', though `int' should be reasonably
efficient in most cases.

> But I do have a question why would using a 64bit integer crash an
> Alpha? especially since Alpha are 64 bit processors even if I think
> its only 32 bits it shouldn't make a difference, just a lot of
> overkill

There are many, many, many ways you can introduce bugs in your program
by relying on one data storage size/range while using another.  One
trivial example is saying `memcpy(dest, src, 32)' when you actually
mean `memcpy(desc, src, 8*sizeof(long))'.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

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

From: Peter Eddy <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux uid limits!
Date: Fri, 18 Jun 1999 22:19:22 -0400


I believe there is a UID limit in the 65535 range on Linux.  There was
some talk about this around the 2.2.x kernel release, regarding plans to
increase the size and the problem with current limit and Linux in the
enterprise.  I think changes are planned for 2.4.  Sorry I can't be more
specific.

"Roberto P.Martins Jr." wrote:
> 
> Hi!
> 
> I've been wondering how many user accounts a single linux box could
> support. And taking a look at /usr/include/pwd.h, the header file with
> functions and data structures to handle and create user accounts, I
> found that uid is defined as unsigned int. Is it true? If true, I could
> have "only" 65535 users! How very big sites, offering web space and
> email like Geocities and Xoom, handle million user accounts?
> 
> --
> Roberto P.Martins Jr.
> mailto:[EMAIL PROTECTED]
> http://www.geocities.com/SiliconValley/Lab/9636
> ICQ #12393737

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


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