Linux-Development-Sys Digest #655, Volume #7      Mon, 6 Mar 00 12:13:21 EST

Contents:
  setkeycodes problem? ("Robert")
  Re: Solaris NFS incompatibility (lamarqu1)
  BUS ERROR WITH MMAP (David)
  BUS ERROR WITH MMAP (David)
  Re: BUS ERROR WITH MMAP (Alexander Viro)
  Re: BUS ERROR WITH MMAP (Alexander Viro)
  Re: Binary compatibility: what kind of crack are they smoking? (Colin Watson)
  Bruce's C Compiler Problem - No Data Segment (Ralph Schlosser)
  Re: Kernel Module trouble ([EMAIL PROTECTED])
  Creating VB RAD Style Application to Linux ("EiNet")
  Re: What's GNU/Linux? ("Joseph T. Adams")
  Re: Creating VB RAD Style Application to Linux (Alexander Viro)
  Re: What's GNU/Linux? (Miquel van Smoorenburg)
  Re: What's GNU/Linux? (Alexander Viro)
  Re: What's GNU/Linux? (Grant Edwards)
  Re: Absolute failure of Linux dead ahead? (Jon)
  Vakantiehuisje te huur... ("Jan-Willem Spuij \(remove NOSPAMPLEASE. from my mail 
address before replying\)")
  Re: Binary compatibility: what kind of crack are they smoking? (Donovan Rebbechi)

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

From: "Robert" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: setkeycodes problem?
Date: 6 Mar 2000 08:58:51 GMT

Hi:
    Why I issue this command to change some extra scand code to a new
keycode, it always failed.

host>  setkeycode e019 112
host> echo $?
host> 0

The return number is 0 means succeed, but I didn't  see any change for
scan-keycode mapping table from "getkeycodes" command.

What else I still need to do ?

Thanks!!!

Robert




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

From: lamarqu1 <[EMAIL PROTECTED]>
Subject: Re: Solaris NFS incompatibility
Date: Mon, 06 Mar 2000 12:05:26 +0100
Reply-To: [EMAIL PROTECTED]

"Scott L. Burson" wrote:
> 
> Greetings all,
> 
> It has become clear to me that there is a subtle incompatibility between
> the Linux 2.2 NFS client and the Solaris NFS server (at least, the one
> in Solaris 2.5.1).  What I have observed is occasional object file
> corruption during large C builds, when the build is being done over NFS
> to the Solaris server.  I first noticed this with 2.2.5 (RedHat
> 6.0/SPARC) and have now seen it also with 2.2.13 (SuSE 6.3/Intel).  I
> have not, repeat not, seen it with 2.0.30 (RedHat 4.2/SPARC) or 2.0.35
> (RedHat 5.2/SPARC).  It doesn't happen when building on a local
> filesystem, of course, nor have I observed it with a 2.2.13 client and a
> different server running Linux 2.0.35.

We seems to have the same problem here with one (and only one) of
our Solaris servers. The large builds on other servers worked fine.
The problem does not come from the Linux client but from the Solaris
server. A patch from SUN exists to correct this problem.

Eric.

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

From: David <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system
Subject: BUS ERROR WITH MMAP
Date: Mon, 06 Mar 2000 11:23:51 GMT

My code is:

struct DATA_2_SHARE
{
        int data ;
        ...
} *SHARED_ZONE ;
 
...

      int fd_shmem = open( "./TP" , O_RDWR | O_CREAT , 0777 ) ;
      if ( fd_shmem == -1 ) 
        {
          perror( "OPEN SH_MEM" ) ;
          exit( -1 ) ;
        }

      if ( (SHARED_ZONE= (struct DATA_2_SHARE *)
            mmap( 0 , sizeof( struct DATA_2_SHARE ) ,
                  PROT_READ | PROT_WRITE , MAP_SHARED ,
                  fd_shmem , 0 )) == MAP_FAILED )
        {
          perror( "MMAP" ) ;
          exit( -1 ) ;
        }

      SHARE_ZONE -> data = 0 ;


I recive an BUS ERROR when SHARE_ZONE -> data = 0 execute.

why ?
What means this error ?

THANKS,
DTM

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

From: David <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system
Subject: BUS ERROR WITH MMAP
Date: Mon, 06 Mar 2000 11:23:51 GMT

My code is:

struct DATA_2_SHARE
{
        int data ;
        ...
} *SHARED_ZONE ;
 
...

      int fd_shmem = open( "./TP" , O_RDWR | O_CREAT , 0777 ) ;
      if ( fd_shmem == -1 ) 
        {
          perror( "OPEN SH_MEM" ) ;
          exit( -1 ) ;
        }

      if ( (SHARED_ZONE= (struct DATA_2_SHARE *)
            mmap( 0 , sizeof( struct DATA_2_SHARE ) ,
                  PROT_READ | PROT_WRITE , MAP_SHARED ,
                  fd_shmem , 0 )) == MAP_FAILED )
        {
          perror( "MMAP" ) ;
          exit( -1 ) ;
        }

      SHARE_ZONE -> data = 0 ;


I recive an BUS ERROR when SHARE_ZONE -> data = 0 execute.

why ?
What means this error ?

THANKS,
DTM

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

From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.development.system
Subject: Re: BUS ERROR WITH MMAP
Date: 6 Mar 2000 06:32:05 -0500

In article <[EMAIL PROTECTED]>,
David  <[EMAIL PROTECTED]> wrote:

>I recive an BUS ERROR when SHARE_ZONE -> data = 0 execute.
>
>why ?
>What means this error ?

It means that you are trying to access data past the end of file. Don't do it.

>THANKS,
>DTM

Not for all. BTW, fix your keyboards - looks like CapsLock is broken.

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

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

From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.development.system
Subject: Re: BUS ERROR WITH MMAP
Date: 6 Mar 2000 06:32:05 -0500

In article <[EMAIL PROTECTED]>,
David  <[EMAIL PROTECTED]> wrote:

>I recive an BUS ERROR when SHARE_ZONE -> data = 0 execute.
>
>why ?
>What means this error ?

It means that you are trying to access data past the end of file. Don't do it.

>THANKS,
>DTM

Not for all. BTW, fix your keyboards - looks like CapsLock is broken.

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

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

From: [EMAIL PROTECTED] (Colin Watson)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: Binary compatibility: what kind of crack are they smoking?
Date: 6 Mar 2000 12:30:31 GMT

Nix <$}xinix{$@esperi.demon.co.uk> wrote:
>[EMAIL PROTECTED] (Mario Klebsch) writes:
>> So, things are going to get really worse, if the first binary only
>> programs for kde appear, aren't they?
>
>They cannot. That would violate the GPL, unless I am much mistaken;
>they'd be linking against GPLed libraries, while not themselves being
>GPLed.
>
>Likewise binary-only GNOME programs.

GNOME, absolutely, but I'm not sure about the situation with KDE. Is it
sufficient to link against the Qt libraries, or are there KDE core
libraries to link against too? In the former case, the Qt libraries are
under the QPL (and technically KDE is unredistributable because it's
GPLed and links against them :(, and Debian can't distribute it for this
reason ...).

But, in any case, section 6a of the QPL states that all Qt-linked
applications must be open-source, so Mario's prophecy of doom can never
come to pass.

-- 
Colin Watson                                           [[EMAIL PROTECTED]]
"Ah, young webmaster ... Java leads to Shockwave. Shockwave leads to
 RealAudio, and RealAudio leads to suffering." - Peter da Silva, ASR

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

From: Ralph Schlosser <[EMAIL PROTECTED]>
Subject: Bruce's C Compiler Problem - No Data Segment
Date: Mon, 06 Mar 2000 14:34:48 +0100

Hello!

Does anybody know how to tell Bruce's C compiler (bcc of Dev86utils, the
one which is used in the very first assembler files of the linux kernel)
to compile a
program *without* a data segment? I've tried several command line
options (such as -i-, -Md) but 
it did not work. If I use -S to create assembler output, I always see a
".data" in it.

It would be a fine thing, if somebody could help me!

Thanks, Ralph

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

From: [EMAIL PROTECTED]
Subject: Re: Kernel Module trouble
Date: Mon, 06 Mar 2000 13:57:30 GMT

In article <[EMAIL PROTECTED]>,
  Damir Cosic <[EMAIL PROTECTED]> wrote:
> Jeff Biviano wrote:
> >
> > [EMAIL PROTECTED] wrote:
> >
> > > I'm writing my first Linux Kernel module
and when I try to insmod the
> > > object file, I get:
> > >
> > > hello.o: unresolved symbol htons
> > > hello.o: unresolved symbol ntohl
> > > hello.o: unresolved symbol ntohs
> > > hello.o: unresolved symbol kfree_skb
> > >
> > > I really don't understand why kfree_skb is
unresolved, I've included
> > > linux/skbuff.h and there are no warnings or
errors at compile time, even
> > > with -Wall. Do I need to link with a shared
library or something?
> >
> > Basically when you make a module you have a
regular unlinked object file, there
> > are numerous undefined symbols in the object
file(you can see them when you type
> > "nm -u hello.o").  What happens when you
type "insmod hello" the object file
> > links the undefined symbols with symbols that
have been exported from the kernel
> > (to see a list of these type "ksyms -a").  So
when you get unresolved symbols it
> > is because you have an undefined symbol in
your module that does not correspond
> > with symbols exported from the kernel.
> >
> > I believe the reason your kfree_skb is
returned undefined is because it needs
> > some leading underscores.  Here is what the
ksyms reports for kfree symbols:
> >
> > [root@ith1-333 Jeff]# /sbin/ksyms -a | grep
kfree
> > c0120fac  kfree_R037a0cba
> > c0121154  kfree_s_R06d9dd5d
> > c0149700  sock_kfree_s_Reafa70c2
> > c0149ee8  __kfree_skb_Rb53cc691
> >
> > - Jeff
>
> Underscores are not problem, because kfree_skb
is inlined function
> defined in
> skbuff.h and it calls __kfree_skb. You can see
from ksyms output that
> every
> symbol has an extension, added to symbol name,
while kernel functions
> that you call don't have it. What you need to
do is to include
> <linux/modversions.h>.
>
> Damir
>

On a related topic ... can I get rid of the
warnings generated by the compiler (using -Wall)
trying to resolve the kernel functions (i.e. the
extensions seem to cause a prototype mismatch)?




Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: "EiNet" <[EMAIL PROTECTED]>
Subject: Creating VB RAD Style Application to Linux
Date: Mon, 6 Mar 2000 14:18:57 -0000
Reply-To: "EiNet" <[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 then server space and forum support.

Lopo Ribeiro
===========================
 Sitaar, Lda. / EiNet
 Apartado 401
 2901-901 SETÚBAL
 Tm. 93 635 87 79
 Portugal - Europa







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

From: "Joseph T. Adams" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: What's GNU/Linux?
Date: 6 Mar 2000 15:15:24 GMT

In comp.os.linux.advocacy Alexander Viro <[EMAIL PROTECTED]> wrote:
: Sure. And you know what? About the only piece of GNU code we really depend
: on is gcc, with GNU make as distant second. Basic utilities? No Thanks.
: Look at them someday. As in "read through the code". And then tell whether
: you needed a barf-bag. Bloated, overdesigned, trying to outsmart the kernel/
: users/everything, full of ifdefs... <bletch>


I hate to disagree publicly with a kernel hacker on whose work *I*
depend, so let me first start by saying thank you for some great work!

But can I respectfully ask where you or I or any of us would be
without gcc?

Yes, most of the rest of GNU's stuff could be replaced, and perhaps
some of it should be.  Yes, it may be riddled with nasty #ifdefs and
the like.  (That tends to happen when you're trying to support
numerous different platforms, some of which don't even support ANSI
C.)

But without gcc and RMS and the FSF, would something like Linux or 95%
of the rest of the free software out there be possible (using the term
"free" in the sense of freedom)?

Or am I missing something obvious?


Joe

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

From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: Creating VB RAD Style Application to Linux
Date: 6 Mar 2000 10:46:51 -0500

In article <8a0f7b$fk8$[EMAIL PROTECTED]>, 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.

Aha. And then the obvious thing happened: it turned out that language is not
even close to the real problems you have when you write a good program.
Million of crappy programmers is worse (_MUCH_ worse) than dozen of good ones.
People unable to learn a simple (come on, it's C, not Algol 68) language are
usually unable to learn about permissions, about being friendly to other
processes, about the fscking basic things that must be known and understood by
any UNIX programmer.

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

WHY THE FSCK DO WE NEED METRIC BUTTLOADS OF CRAP? What's the point in bringing
the shittiest Windows programmers here? So that we had their excrements all
over the place? I've seen their code, and by $DEITY, I don't want it anywhere
near my boxen. There are good ones, right, but all the army of lackwits who
make Redmond crowd look like decent programmers? Sheesh...

IOW, take your challenge and shove it into the place where aforementioned
lusers come from.

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

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

From: [EMAIL PROTECTED] (Miquel van Smoorenburg)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: What's GNU/Linux?
Date: 6 Mar 2000 15:51:46 GMT

In article <8a0i2c$sl9$[EMAIL PROTECTED]>, Joseph T. Adams <[EMAIL PROTECTED]> wrote:
>But can I respectfully ask where you or I or any of us would be
>without gcc?
>Or am I missing something obvious?

We'd probably be using lcc, or bcc, or something similar. Gcc is not
the only free C compiler around.

Mike.
-- 
#define ESPANISHINQ     1478    /* Expect the Spanish Inquisition */

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

From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: What's GNU/Linux?
Date: 6 Mar 2000 10:57:24 -0500

In article <8a0i2c$sl9$[EMAIL PROTECTED]>, Joseph T. Adams <[EMAIL PROTECTED]> wrote:
>In comp.os.linux.advocacy Alexander Viro <[EMAIL PROTECTED]> wrote:
>: Sure. And you know what? About the only piece of GNU code we really depend
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>: on is gcc, with GNU make as distant second. Basic utilities? No Thanks.
^^^^^^^^^^^^
>: Look at them someday. As in "read through the code". And then tell whether
>: you needed a barf-bag. Bloated, overdesigned, trying to outsmart the kernel/
>: users/everything, full of ifdefs... <bletch>

>Yes, most of the rest of GNU's stuff could be replaced, and perhaps
>some of it should be.  Yes, it may be riddled with nasty #ifdefs and
>the like.  (That tends to happen when you're trying to support
>numerous different platforms, some of which don't even support ANSI
>C.)
>
>But without gcc and RMS and the FSF, would something like Linux or 95%
>of the rest of the free software out there be possible (using the term
>"free" in the sense of freedom)?
>
>Or am I missing something obvious?

Erm... ;-) Like the underlined sentence above? Yes, gcc is the only game in the
town. Whether there would be a better free compiler or not is a moot point -
with gcc around it just didn't happen. So everybody depends on gcc. Notice
that by the same reason they could pretend that *BSD, etc. are GNU systems.
They don't, and rightfully so.

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

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

From: grant@nowhere. (Grant Edwards)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: What's GNU/Linux?
Date: Mon, 06 Mar 2000 16:15:53 GMT

In article <8a0i2c$sl9$[EMAIL PROTECTED]>, Joseph T. Adams wrote:

>But can I respectfully ask where you or I or any of us would be
>without gcc?

Respectuflly; we'd be using a different free C compiler.  Were
gcc not around filling that niche, the DECUS C compiler (which
is what I used before gcc) or one of the other free ones would
evolve to do so.  I'm not trying to minimize gcc --
Gcc/binutils is a tremendous piece of work which I've been
gratefully using for 10+ years.  But, writing C compilers,
linkers, and assemblers isn't black magic. It takes a lot of
hard work to do something like gcc, but it doesn't depend on
the deivine inspiration of a single person.

>But without gcc and RMS and the FSF, would something like Linux
>or 95% of the rest of the free software out there be possible
>(using the term "free" in the sense of freedom)?

Yes, it would.

>Or am I missing something obvious?

I think so.  There isn't a serious alternative to gcc not
becase such a thing is impossible, but because there isn't a
need.  We only really _need_ one good open source C compiler.
Gcc was in the right place at the right time with the right
people working on it.  If it wasn't, then the same environment
would have resulted in the evolution and proliferation of one
of the other species of free C compilers to fill the niche that
gcc now occupies.

My point:  Gcc is a result of the open-source software
movement, not the cause of it.

-- 
Grant Edwards                   grante             Yow!  Used staples are good
                                  at               with SOY SAUCE!
                               visi.com            

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

From: [EMAIL PROTECTED] (Jon)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Absolute failure of Linux dead ahead?
Date: Mon, 06 Mar 2000 16:30:44 GMT

On Sun, 05 Mar 2000 16:14:43 GMT, [EMAIL PROTECTED] wrote:

> [EMAIL PROTECTED] (Jon) writes:
> >>    Jon <[EMAIL PROTECTED]> wrote:
> >> > (Wolfgang Weisselberg) wrote:
> 
> >> > > How many machines do *you* know that are in active use today
> >> > > *and* were so 15,20,30 years ago?
> >> 
> >> > 2 that I've worked with personally.  
> [...]
> >One of the 2 machines is (yes, it's still in use) a 386DX40 with
> >32MB RAM and an RLL drive on a 16MB cache card.  I have 4
> >machines in pieces at home that outpower that thing.
> 
> A 386DX40 is less than 10 years old. Not 15, not 20, not 30, and most
> certainly not 38.

<sigh> That 386 machine was not always a 386.  It started out as
an IBM PC-XT (hot stuff at the time).  At what point did I claim
it was 38 years old, eh?  You apparently missed the entire point.

The upgrade, when it was performed, caused so many problems that
took so long to smooth out that future upgrades were considered
out of the question.  The only remaining option was to transition
completely to a new platform for MRP.  If you've ever looked into
MRP pricing, you'll understand why this isn't much of an option
either.  Hence, the pathetic 386 is still in use today complete
with a (now corrected) date problem.

Now, step down from your high horse, (Mr./Ms.) Meyer, and try
some constructive conversation.

Jon


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

From: "Jan-Willem Spuij \(remove NOSPAMPLEASE. from my mail address before replying\)" 
<[EMAIL PROTECTED]>
Subject: Vakantiehuisje te huur...
Date: Mon, 6 Mar 2000 17:42:03 +0100

Omdat het aantal deelnemers voor ons tenniskamp nogal tegenvalt, zoeken wij
iemand die ons uit de brand kan helpen. Voor de periode 10-03-2000 tot
12-03-2000 hebben wij namelijk nog een 6-persoons vakantiehuisje te huur op
het park "De Weerterbergen" van Gran Dorado. De normale prijs is 655,-. U
kunt het voor f 395,-  van ons huren. (inclusief toeristenbelasting,
annuleringsverzekering en reserveringskosten.)

Bij voorbaat dank,

De kampcommissie van:

Tennisvereniging Thialf L.T.C.
Van Doesburg-erf 89
3315 RC Dordrecht
tel. 078 6214106
bgg. 0625415012
bgg. 0626218220

e-mail: [EMAIL PROTECTED]
e-mail: [EMAIL PROTECTED]
e-mail: [EMAIL PROTECTED]








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

From: [EMAIL PROTECTED] (Donovan Rebbechi)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: Binary compatibility: what kind of crack are they smoking?
Date: 6 Mar 2000 16:58:01 GMT

On 6 Mar 2000 12:30:31 GMT, Colin Watson wrote:
>Nix <$}xinix{$@esperi.demon.co.uk> wrote:
>>[EMAIL PROTECTED] (Mario Klebsch) writes:

>GNOME, absolutely, but 

In fact Applixware already links against GTK.

> I'm not sure about the situation with KDE. Is it
>sufficient to link against the Qt libraries, or are there KDE core
>libraries to link against too? In the former case, the Qt libraries are
>under the QPL (and technically KDE is unredistributable because it's
>GPLed and links against them :(, and Debian can't distribute it for this
>reason ...).


The KDE libs are LGPL'd. You really *do* want to link against the KDE
libraries to get all of your KDE preferences automatically applied 
to the application in quesiotn ( not to mention that the KDE API adds
a bunch of useful stuff to QT ) 

>But, in any case, section 6a of the QPL states that all Qt-linked
>applications must be open-source, 

That or the licensee must pay a license fee.

-- 
Donovan

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


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