Linux-Development-Sys Digest #421

2001-01-16 Thread Digestifier

Linux-Development-Sys Digest #421, Volume #8 Tue, 16 Jan 01 09:13:15 EST

Contents:
  Re: Ansi C++ forbids implicit conversion from 'void *' in argument passing (Tim 
Roberts)
  Re: double to byte stream convert ("O.Petzold")
  Re: double to byte stream convert (Josef Moellers)
  system halts at exchange with ISA (salikova)
  ldconfig error message ("Guennadi V. Liakhovetski")
  Re: Problems compiling programs with new 2.4 kernel ("Guennadi V. Liakhovetski")
  Re: ldconfig error message (Andreas Jaeger)
  Re: How to set r/w error conditions in a device driver? (Kasper Dupont)
  initrd problems (Mats Liljegren)
  Re: Problem w/ tty modes? (Kasper Dupont)
  module kernel version problem ("KPG")
  Re: Keyboard input (Kasper Dupont)
  Re: Developing a mouse replacement driver. (Kasper Dupont)
  Re: Kernel - user mode data tranfer   (Kasper Dupont)
  2.4.0 ISDN Problems ("Morten Bøhmer")
  su cannot run /bin/bash? was: 2.2.18 won't boot diskless (Ulrich Hahn)
  Re: 2.4.0 loop device ([EMAIL PROTECTED])



From: Tim Roberts [EMAIL PROTECTED]
Subject: Re: Ansi C++ forbids implicit conversion from 'void *' in argument passing
Date: Mon, 15 Jan 2001 23:30:35 -0800

"Victor Morales" [EMAIL PROTECTED] wrote:

I'm using C++ with Posix linux threads (lib6). I've a problem when passing
(void *) my_function to pthreads_create function.Compiler (g++) says: "ANSI
C++ forbids implicit conversion from 'void *' in argument passing".
Does anybody know what is the problem?

The other posters gave you the correct reason; strict C++ does not allow
you to cast a pointer-to-function to a pointer-to-non-function.  This
should fix it:

  ((void*)(*)(void*)) my_function
or
  typedef (void*)(*PTHREADFUNC)(void*);
 ... PTHREADFUNC(my_function) ...
--
- Tim Roberts, [EMAIL PROTECTED]
  Providenza  Boekelheide, Inc.

--

From: "O.Petzold" [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: double to byte stream convert
Date: Tue, 16 Jan 2001 09:56:37 +0100

Hello,

thanks to all for the answers. I found the following (principle)
solution:

#include iostream
#include ieee754.h

int main()
{
double fp = +1.01234523e34;
union ieee754_double fp_in, fp_out;

fp_out.d = fp;

unsigned int negative = fp_out.ieee.negative;
unsigned int mantissa0 = fp_out.ieee.mantissa0;
unsigned int mantissa1 = fp_out.ieee.mantissa1;
unsigned int exponent  = fp_out.ieee.exponent;

cout  "out_fp = "  fp_out.d  endl;
cout  "negative: "  negative  endl;
cout  "mantissa0: "  mantissa0  endl;
cout  "mantissa1: "  mantissa1  endl;
cout  "exponent: "  exponent  endl;

fp_in.ieee.negative = negative;
fp_in.ieee.mantissa0 = mantissa0;
fp_in.ieee.mantissa1 = mantissa1;
fp_in.ieee.exponent = exponent;

cout  "in_fp = "  fp_in.d  endl;
}

Well, I've no idea how this is portable to the RFC1832. If I study the
ieee754 header, there are #ifdefs for different endians, therefore my
conclusions: it should be. Different targets are able to rebuild the
double
from splitted components regards to their fp representation.
Maybee I should convert the uint to network byte order for transport.
With the sprintf solution I miss the precision on some case. On big
numbers
the string is very long, with the above I double only the sizeof(double)
due to
the use of unit's.
Does the sun rpc xdr handle this in a same manner ?

Thanks
Olaf



--

From: Josef Moellers [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: double to byte stream convert
Date: Tue, 16 Jan 2001 10:11:14 +0100

"O.Petzold" wrote:

 Well, I've no idea how this is portable to the RFC1832. If I study the
 ieee754 header, there are #ifdefs for different endians, therefore my
 conclusions: it should be. Different targets are able to rebuild the
 double
 from splitted components regards to their fp representation.
 Maybee I should convert the uint to network byte order for transport.

You shlould certainly do this, e.g. by using htonl() and ntohl().

-- =

Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T.  Pratchett)

--

From: salikova [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.hardware
Subject: system halts at exchange with ISA
Date: Tue, 16 Jan 2001 16:13:49 +0600

Dear Madam/Sir,

Please, help my with following  problem.
What is happen, if  I change old ASER AP65 mother board with Pentium Pro
by  new ASUS P2-99 mother board, that contains Pentium III? Old system
with Pentium Pro and ISA device works successful, new system  at Pentium
III halts,  then process works with old ISA device.


Best Regards,
Tatiana

Budker Institute of Nuclear Physics
prospekt Lavrentev  11
630090, Novosibirsk, 

Linux-Development-Sys Digest #422

2001-01-16 Thread Digestifier

Linux-Development-Sys Digest #422, Volume #8 Tue, 16 Jan 01 19:13:12 EST

Contents:
  PrivateICE system level symbolic debugger ("KPG")
  Re: PrivateICE system level symbolic debugger ("KPG")
  Re: make bzImage fails (Kaelin Colclasure)
  Re: su cannot run /bin/bash? was: 2.2.18 won't boot diskless (Russ Bixby)
  "Capturing" keyboard/mouse events ? ("Pål Berge")
  Emacs window size. (Thaddeus L Olczyk)
  Re: Emacs window size. (gpk)
  Running MSC6/MSC7 under linux? ("Jeff D. Hamann")
  Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x) ("Marcus 
Jäger")
  Re: Problems compiling programs with new 2.4 kernel (Josh Liechty)
  Re: Running MSC6/MSC7 under linux? (Toby Haynes)
  Re: Running MSC6/MSC7 under linux? (Lew Pitcher)
  Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x) (Jerry 
Peters)
  Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x) ("Marcus 
Jäger")
  Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x) ("Marcus 
Jäger")
  Device Driver Engineers Needed-Great Opportunity!! (larry)
  Device Driver Engineers Needed-Great Opportunity!! (larry)
  cpu_present_map vs. cpu_number_map? (Kaelin Colclasure)



From: "KPG" [EMAIL PROTECTED]
Subject: PrivateICE system level symbolic debugger
Date: Tue, 16 Jan 2001 15:55:17 +0100

new release

http://pice.sorceforge.net

Klaus P. Gerlicher
FireGL professional graphics



--

From: "KPG" [EMAIL PROTECTED]
Subject: Re: PrivateICE system level symbolic debugger
Date: Tue, 16 Jan 2001 16:01:57 +0100

Sorry, should have read:

new release

http://pice.sourceforge.net

Klaus P. Gerlicher
FireGL professional graphics


"KPG" [EMAIL PROTECTED] wrote in message
news:3a6460e4$0$24058$[EMAIL PROTECTED]...
 new release

 http://pice.sorceforge.net

 Klaus P. Gerlicher
 FireGL professional graphics





--

From: Kaelin Colclasure [EMAIL PROTECTED]
Crossposted-To: 
alt.os.linux.redhat,comp.os.linux.questions,linux.dev.c-programming,linux.dev.config,linux.dev.kernel,linux.redhat,linux.redhat.development,linux.redhat.devel,linux.sources.kernel
Subject: Re: make bzImage fails
Date: 16 Jan 2001 08:09:10 -0800

Michael,

I didn't go through your entire post, but I thought you might find a
document I put together helpful:

  * Redhat Kernel Customization mini-HOWTO
  https://sourceforge.net/docman/display_doc.php?docid=1687group_id=14191

This was composed from notes I made while customizing the kernel on my
Redhat 7.0 installation.

-- Kaelin

--

From: [EMAIL PROTECTED] (Russ Bixby)
Subject: Re: su cannot run /bin/bash? was: 2.2.18 won't boot diskless
Crossposted-To: comp.os.linux.networking
Date: 16 Jan 2001 10:34:22 -0600

Ulrich Hahn ([EMAIL PROTECTED]) wrote:

: --3DACD36BD58C0B334B1F4385
: Content-Type: text/plain; charset=us-ascii
: Content-Transfer-Encoding: 7bit

: Just another problem - I saw you managed the previous problem well :-)

: I am booting a 2.0.36 kernel without problem using a NFS root. The
: clients are functional, but you cannot log in as ordinary user. Neither
: local nor via telnet or ssh. The problem arises whe trying the "su -
: anyusername" or even "su anyusername".
: The result is always like this:
: su: cannot run /bin/bash: Permission denied
: (Replace /bin/bash to whatever you may place into /etc/passwd as the
: user shell).

: Only root will be allowed to log in - not acceptable for a WORKstation.

: (I did the same some years ago, and it there was noting like that..)
: Any idea, what might cause this strange result?

Um...  have you checked the pernmissions on the mounted filesystem and 
on bash...?  Also, have you checked the /etc/shells database?

CHeers, 

Russ Bixby, geek at large


== Posted via Newsfeeds.Com, Uncensored Usenet News ==
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
===  Over 80,000 Newsgroups = 16 Different Servers! ==

--

From: "Pål Berge" [EMAIL PROTECTED]
Subject: "Capturing" keyboard/mouse events ?
Date: Tue, 16 Jan 2001 17:50:32 +0100

Can someone give me some tips on how I can "keep track of" ALL keyboard and
mouse events that occur in X  ?
- i.e. not for a specific graphic component or application, but any X event
blablabla, you get the point
is there a way of doing this that will be the same on all unix/unix-"clones"
running X ?
I also need to pipe some info about some events when they occur, preferably
through stdout ...

Thanks for any help !!
-- Paal



--

From: [EMAIL PROTECTED] (Thaddeus L Olczyk)
Subject: Emacs window size.
Date: Tue, 16 Jan 2001 16:53:58 GMT
Reply-To: [EMAIL PROTECTED]

I've asked this question to no avail on the emacs newsgroup.
From an emacs standpoint I seem to be doing everything
right, so it must be a linux problem.
From linux,