Linux-Development-Sys Digest #661, Volume #7      Wed, 8 Mar 00 07:13:12 EST

Contents:
  Re: Which Package? (Arjan Drieman)
  Segmentation fault with init (sysVinit) (Sebastien Dessimoz)
  select on sockets. (tommie jones)
  Re: getting a linksys ether fast card to work in red hat 6.1 (Michael Hirsch)
  Impasse with 2 SCSI controllers, kernel mods required? (teri)
  Re: Creating VB RAD Style Application to Linux ("max reason")
  Re: Creating VB RAD Style Application to Linux (Kaz Kylheku)
  Re: Struct size and allocate problem! need help. (Charles Bryant)
  Re: select on sockets. ([EMAIL PROTECTED])
  Re: Installing glibc (Please Help!) (Andreas Jaeger)
  Re: Installing glibc (Please Help!) (Thomas Zajic)
  Re: Struct size and allocate problem! need help. ("P.G.Hamer")
  Re: Creating VB RAD Style Application to Linux ("EiNet")

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

From: [EMAIL PROTECTED] (Arjan Drieman)
Crossposted-To: comp.os.linux,comp.os.linux.development
Subject: Re: Which Package?
Date: 8 Mar 2000 00:46:53 GMT
Reply-To: [EMAIL PROTECTED]

On Tue, 07 Mar 2000 07:03:30 GMT, N. T. Programmer
    <[EMAIL PROTECTED]> wrote:

>    I'm a NT systems programmer of 6 years.

6 years old and already programming? ;)

>1.  How much like UNIX is Linux?  If I use Linux on a regular basis
>will it be just like being on a Sun or HP box in functionality?

Yes.  It's posix compliant, all tools available on HP are available
on linux, most programs will compile on both linux and hpux.


>2.  I have a dual CPU and I'd like Linux to take advantage of it.
>Does it?

Yes, though you'll prolly have to configure and compile yourself a 
new kernel.  SMP support gives problems for certain configurations
so most distributions don't support it out of the box.


>3.  Which Linux package is best for me to buy?  I like systems
>programming, so that's what I plan on doing with Linux.  Which
>package comes with the best add-on tools for sys prog?

Not too long ago i wrote down for some guy what i think are the
advantages of Debian, see
http://x24.deja.com/[ST_rn=ps]/getdoc.xp?AN=586489614

Debian also has the largest developers base, if there's a neat
tool somewhere, I'm sure Debian includes it :)


>4.  I want to have Linux and NT share the same box, which package
>has the best Multi-boot integrator for sharing with NT?

All (that I know off) include lilo, which works fine to boot
either NT or linux.


Might want to check out http://www.linuxprogramming.com/


Arjan
-- 
Love is the child of illusion 
and the parent of disillusion.

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

Date: Tue, 07 Mar 2000 18:18:52 -0800
From: Sebastien Dessimoz <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Segmentation fault with init (sysVinit)

Hi,

I am trying to do my own fileystem and kernel. First I have compiled my
kernel (2.2-10) and everything works fine. Then I have done a filesystem
and I managed to boot correctly the OS if the kernel does
execve("/bin/sh") at the end of its initialization.

My next goal was to launch the famous init program from the sysVinit
package. I took init and compiled it without any problem. However, when
I try to boot, just after the kernel does a execve(/sbin/init) nothing
happens... I do not see any message (even not Init v.2.8.xx). To correct
that I have checked if my filesystem has all the necessary libraries
(with ldd) and it seems to be OK. The most interesting point is that if
I boot with the shell instead of init, I have tried then to launch init.
The result is that it makes a Segmentation Fault.

I did a deeper investigation then. I booted with my standard Linux
Redhat 6.1 distribution. Then I mounted the famous filesystem (which is
on one of my other disks). If I call the init (with ./init in order no
to call the general init), it works.
However, if I use "chroot /mnt/test /sbin/init", it makes again a
segmentation fault. I wanted to debug, but it was for me too difficult
because of this  chroot call.

Can somebody help me?
Thanks in advance,
Sebastien




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

From: tommie jones <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.programmer
Subject: select on sockets.
Date: Tue, 07 Mar 2000 21:59:00 -0500

When I do a select on a set  of file descripters (in readfs)
I not only get a response when a file descriptor is ready to be read
from but also when a file descriptor is closed by the server (dealing
with sockets here)  what other type of events will select tell me about,
is there a way to tell which event happened.


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

From: Michael Hirsch <[EMAIL PROTECTED]>
Subject: Re: getting a linksys ether fast card to work in red hat 6.1
Date: 07 Mar 2000 22:26:57 -0500

[EMAIL PROTECTED] (David T. Blake) writes:

> Daniel Bruce Lynes <[EMAIL PROTECTED]> wrote:
> > On Sun, 27 Feb 2000, Lee Klasing wrote:
> > 
> > > I have a question i have a network card that wasnt detected in install and
> > > im a newbie.  It is used for a cable modem and i dont know how to setup the
> > > card?
> > 
> > If I remember correctly, those ones use the ne2k-pci module.  Try:
> > 
> > insmod /lib/modules/2.2.10/net/ne2k-pci.o
> > modprobe ne2k-pci
> 
> Sorry. Ether fast is tulip based.

Rigjht.  And the newest linnksys cards are not supported.  The
wake-on-lan cards don't seem to be supported, yet.  If that's what you
have, your best bet is to grab the very latest driver from Becker.

-- 
Michael D. Hirsch                       Work: (404) 727-7940
Emory University, Atlanta, GA 30322     FAX: (404) 727-5611
email:  [EMAIL PROTECTED]         http://www.mathcs.emory.edu/~hirsch/

Public key for encrypted mail available upon request (or finger
[EMAIL PROTECTED]).

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

From: [EMAIL PROTECTED] (teri)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup,alt.os.linux.caldera
Subject: Impasse with 2 SCSI controllers, kernel mods required?
Date: Tue,  7 Mar 2000 22:28:14 EST


Hi,

I have a SCSI-only system.  This means that I'm booting from a 2940UW,
drive 0.  This has always worked perfectly with many versions of Caldera
Open Linux, now 2.3.  I have installed a second SCSI controller, a
1542CF to connect a scanner.  I have posted details of the setup in a
previous post to comp.os.linux.hardware with the subject line

 Can't load aha1542 driver (new 1542CF as 2d SCSI)

Since then, I have tried many things that lead me to believe that it is
really not possible to have the 1542CF recognized and at the same time
boot from the 2940UW.

I have compiled a new kernel (2.2.14) with both drivers built-in.  On
boot the kernel keeps looping and timing out looking for drive 0 on the
wrong controller! (the 1542CF).  It insists on doing this whether the
1542CF bios is enabled or disabled.  However, the controller is
recognized.  Is there a way to force the boot process to go to the 2940?

Kernel recompile, this time with no 1542CF driver built-in.  It is now
impossible to load the driver (Device or resource busy).  I have read
(on comp.os.linux.hardware) that this is because the higher level drivers
are loaded first and they shouldn't be.  Obviously, they have to be if
the system is going to boot from the 2940UW's boot drive.  How is this
catch 22 possible?

I also tried to load the 1542CF driver at boot time with Caldera's
original kernel (2.2.10) and the boot process locked up.  I told COAS
to load the driver at boot.  Obviously, by the time the 1542 driver
is loaded, the higher-level SCSI components are already loaded (if this
is in fact the problem).

As can be seen if you refer to the above-mentioned post, the hardware
works fine and is recognized by SCSISelect, there are no IRQ or other
resource conflict.  

Can anybody shed some light on this problem?

Thanks

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

From: "max reason" <[EMAIL PROTECTED]>
Subject: Re: Creating VB RAD Style Application to Linux
Date: Tue, 7 Mar 2000 20:13:15 -1000

EiNet wrote in message <8a0eid$d5v$[EMAIL PROTECTED]>...
> Hi dear Linux Developers,
>
> I come from MS Windows and when I started long time ago we
> can only develop to windows with complicated languages like C.
> And there were not so much developers for MS Windows.  Then
> one day Microsoft had the great idea of developing a really simple
> environment using a easy to understand and low learning curve
> language called Visual Basic.
>
> Well.  Windows development blast off, and I believe that this
> was the way that Microsoft could fight Mac best environment.
>
> I challenge you to create and easy to use IDE just like this.
> It can be called LinuxBasic.
>
> I think a IDE like this will be important for the future of Linux.
> It can attract many people used to develop to Windows with
> VisualBasic to port their applications to Linux.
>
> If there's enough people wishing to develop this project under
> GNU we can give them server space and forum support.
> Lopo Ribeiro

 You should consider joining the programmers doing ongoing
 development and enhancement on XBasic - a 32-bit advanced
 BASIC language compiler with IDE and GuiDesigner.  XBasic is
 open-source freeware available under GPL and LGPL licenses.
 XBasic is written entirely in XBasic - plus a little assembly.

 The first implementation of XBasic was developed in 1987-1988
 for the Motorola 88100 RISC CPU running UNIX and XWindows.
 Incidentally, that's years before the first release of Visual Basic.
 Windows XBasic has been available since 1992 when WindowsNT
 was in beta, and Linux XBasic has been available since ~1994.

 Today, source-code compabile implementations of XBasic are
 available for both Windows and Linux.  XBasic applications
 developed on either implementation run without modification
 on both Windows and Linux, even applications with lots of
 graphics and GUI.  You can learn more about XBasic and
 download either or both implementations if you wish from
 http://www.maxreason.com/software/xbasic/xbasic.html .

 Over 25,000 people have downloaded XBasic since it was
 made freeware about 6-8 months ago, and an active group
 of programmers coordinate projects and ask/answer questions
 on the free XBasic mail-list forum which you can find at
 http://www.egroups.com/group/xbasic .  They will be happy
 to have you join an existing project to enhance XBasic or
 start a new one.



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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Creating VB RAD Style Application to Linux
Reply-To: [EMAIL PROTECTED]
Date: Wed, 08 Mar 2000 06:24:11 GMT

On Mon, 6 Mar 2000 14:18:57 -0000, EiNet <[EMAIL PROTECTED]> wrote:
>Hi dear Linux Developers,
>
>I come from MS Windows and when I started long time ago we can only develop
>to windows with complicated languages like C. And there were not so much
>developers for MS Windows. Then one day Microsoft had the great idea of
>developing a really simple environment using a easy to understand and low
>learning curve language called Visual Basic.
>
>Well. Windows development blast off, and I believe that this was the way
>that Microsoft could fight Mac best environment.
>
>I challenge you to create and easy to use IDE just like this. It can be
>called LinuxBasic.

There already are GUI scripting languages for UNIX like environments.  Tcl/Tk
comes to mind, plus tools like Python with bolted on GUI support.

>I think a IDE like this will be important for the future of Linux. It can
>attract many people used to develop to Windows with VisualBasic to port
>their applications to Linux.

There exists at least one commercial VB workalike for UNIX systems. 
Do a web search for VBVM and VBIX.

Anyway, nobody develops serious Windows applications with VB, just toys and
customizations of existing applications which are themselves written in C or
C++.

The VB language itself is an abomination in the face of computer science.
Your suggested project would require people who are intelligent enough to
complete the project, yet at the same time sufficiently excited about Visual
Basic to take it on in the first place. 

If it weren't for the WINE project, I would tend to believe that such people
cannot possibly exist.

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

From: Charles Bryant <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,comp.os.linux.development.apps,comp.unix.sco.misc,comp.unix.sco.programmer,comp.unix.unixware.misc,tw.bbs.comp.linux
Subject: Re: Struct size and allocate problem! need help.
Date: 8 Mar 2000 02:09:10 -0000

In article <[EMAIL PROTECTED]>,
P.G.Hamer <[EMAIL PROTECTED]> wrote:
>Charles Bryant wrote:
>
>> In article <[EMAIL PROTECTED]>,
>> P.G.Hamer <[EMAIL PROTECTED]> wrote:
>> >My dated 2nd edition of K&R states that sizeof() gives the size in /bytes/.
>>
>> Where?
>
>p204 under A7.4.8 Sizeof Operator 1st sentence.

Ok. I have checked that this means what it ought to, and it's a usage
of the term 'byte' that seems to be less common nowadays. In this
sense a byte is the smallest addressable unit of storage, which can
be any number of bits. Since so many processors address units of
eight bits, many people now use the term 'byte' to mean eight bits.
When referring to data communications this meaning is clear enough,
since addressability is maningless for data in transit, but when
referring to CPUs accessing memory it can be confusing.

That's what this reference is saying:

>Looks like this is true, although I'm uncertain of its date
>http://www.lysator.liu.se/c/rat/c3.html#3-3-3-4
>says:
>It is fundamental to the correct usage of functions such as malloc and
>fread that sizeof (char) be exactly one.  In practice, this means that a byte
>in C terms is the smallest unit of storage, even if this unit is 36 bits wide;
>and all objects are comprised of an integral number of these smallest units.

but it doesn't explain that 'byte' originally meant 'storage unit'.

-- 
Eppur si muove


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

From: [EMAIL PROTECTED]
Crossposted-To: comp.unix.programmer
Subject: Re: select on sockets.
Date: Wed, 08 Mar 2000 07:19:23 GMT

In comp.os.linux.development.system tommie jones <[EMAIL PROTECTED]> wrote:

| When I do a select on a set  of file descripters (in readfs)
| I not only get a response when a file descriptor is ready to be read
| from but also when a file descriptor is closed by the server (dealing
| with sockets here)  what other type of events will select tell me about,
| is there a way to tell which event happened.

The events are basically any event which would change a read or write
operation which previously returned EWOULDBLOCK or EINPROGRESS to some
other condition.  The status you get back indicates the general class
of the change.  You then do the corresponding operation you did before.
Sockets can also have addition functions like connect() and accept().
The connect() function corresponds to write().  Your program will have
to keep track of whether the socket is connected or not, but that's not
so hard to do.  Just select for write when you got EINPROGRESS from
connect().  The accept() function corresponds to read.  For errors, just
do the same function again as you did before, and get the errno code to
see what the error really is.

-- 
| Phil Howard - KA9WGN | for headlines that | Just say no to absurd patents |
| [EMAIL PROTECTED] | really matter:     | Boycott Amazon.Com (AMZN)     |
| Dallas - Texas - USA | linuxhomepage.com  | Shop http://bn.com/ instead   |

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

From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: Installing glibc (Please Help!)
Date: 08 Mar 2000 08:13:44 +0100

>>>>> Nix  writes:

Nix> Andreas Jaeger <[EMAIL PROTECTED]> writes:
>> The glibc comes with enough documention already.  Please read the FAQ,
>> INSTALL and README files.

Nix> Is there some kind of tailored virus or something in the glibc that
Nix> prevents all those who try to build it from reading its FAQ?

Nix> I've never seen such a density of (rightful) `RTFFAQ' responses to
Nix> questions about any other package.

Nix> (Maybe it's just that installing glibc is somewhat rocket science to Joe
Nix>  Average, slightly more delicate than your average package, and comes
Nix>  with a very good FAQ... but no, I like the conspiracy theory more ;) )
Any idea what we can do about this?  Shall I stop writing FAQ entries
since nobody (except the two of us;-) reads them?

I do like the conspiracy theory.;-)

Andreas
-- 
 Andreas Jaeger
  SuSE Labs [EMAIL PROTECTED]
   private [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Thomas Zajic)
Subject: Re: Installing glibc (Please Help!)
Reply-To: [EMAIL PROTECTED] (Thomas Zajic)
Date: Wed, 08 Mar 2000 08:27:26 GMT

On 08 Mar 2000 08:13:44 +0100, Andreas Jaeger wrote:

> >>>>> Nix  writes:
> 
> Nix> Andreas Jaeger <[EMAIL PROTECTED]> writes:
> >> The glibc comes with enough documention already.  Please read the FAQ,
> >> INSTALL and README files.
> 
> Nix> Is there some kind of tailored virus or something in the glibc that
> Nix> prevents all those who try to build it from reading its FAQ?
>
> [ ... ]
>
> Any idea what we can do about this?  Shall I stop writing FAQ entries
> since nobody (except the two of us;-) reads them?
                           ^^^
Make that three, and no, don't stop. ;-)

> I do like the conspiracy theory.;-)

See headers. ;-)

Thomas
-- 
=-------------------------------------------------------------------------=
-   Thomas "ZlatkO" Zajic   <[EMAIL PROTECTED]>   Linux-2.0.38/slrn-0.9.6.2   -
-  "It is not easy to cut through a human head with a hacksaw."  (M. C.)  -
=-------------------------------------------------------------------------=

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

From: "P.G.Hamer" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,comp.os.linux.development.apps,comp.unix.sco.misc,comp.unix.sco.programmer,comp.unix.unixware.misc,tw.bbs.comp.linux
Subject: Re: Struct size and allocate problem! need help.
Date: Wed, 08 Mar 2000 12:11:38 +0000

Charles Bryant wrote:

> but it doesn't explain that 'byte' originally meant 'storage unit'.

To whom and when?

I'm resigned to C defining a byte however it wants to. [Where does
a gorilla with a machine gun sit?] This is simply a query on historic
usage. Mainly historic US non-IBM usage, as much of this was not
readily visible from the UK at the time.

I've only been in the industry since 1966, but to everybody I met at
the time, and for years later,  bytes had 8 bits `by definition'.  My
impression was that IBM coined the term with the introduction of
the 360 series.

IMHO major characteristics of the term byte were that:
* it was individually addressable
* it was smaller than a word
* it was 8 bits

In retrospect being /exactly/ 8 bits was the least important of these.
OTOH 8 bits was big compared to the 6 bit character representations
common at the time; and this increase in size (and character set)
was important. Being able to get several into a word was also pretty
important when a mainframe might only have 8K words.

Peter




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

From: "EiNet" <[EMAIL PROTECTED]>
Subject: Re: Creating VB RAD Style Application to Linux
Date: Wed, 8 Mar 2000 11:44:34 -0000
Reply-To: "EiNet" <[EMAIL PROTECTED]>

Hi,

Well. The problem is that they really exist. And if you look around there's
a lot of accounting applications done with VB. And, believe it or not, Linux
only be something against Microsoft Windows when small and midlle sized
companies start using it. Most of those companies use computers to work with
accounting. And also most of the developers of those applications where good
in accounting and finance but not great developers. And this make me do a
simple question... Where do we want to be with Linux on the next years? In
Universities for a bunch of guys to enjoy, or in the real world. You may
think that turning easier to jump from VB to Linux is a waste of time but I
think when Microsoft develop VB they have in mind this  poor minded
developers. And they where right, don't you think. The worst problem I saw
in converting app from VB to Linux is to start a new learning curve for a
new language. Today, companies  that add a market with their account
applications will not spend time and people with Linux if it wasn't fast to
put it working.

I understand your position, and I partialy agree with you, but... I think we
must be more flexible with others because they exist and are a big (just see
how many applications exist) market that we should ignore.




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


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