Linux-Development-Sys Digest #981, Volume #7 Wed, 28 Jun 00 14:13:20 EDT
Contents:
Confirm this bug: CodeWarrior does not support spaces in paths? (Roger Shawl)
Re: how to initialize a global instance (Mario Klebsch)
Re: Confirm this bug: CodeWarrior does not support spaces in paths? (Nate Eldredge)
HOWTO build absolute linux kernel binaries ([EMAIL PROTECTED])
Re: Confirm this bug: CodeWarrior does not support spaces in paths? (Kaz Kylheku)
Kernel BUG? - Occasional - 2.3.99-pre9 SMP (Steve Merrony)
Q. Versions of cpio ? ("Martin Fitzpatrick")
DNS problems (Thomas Waight)
is there a port to windows media player? ("Daniel Klimkowski")
Re: Kernel 2.4 question (Paul Kimoto)
Re: is there a port to windows media player? (Lew Pitcher)
Re: Confirm this bug: CodeWarrior does not support spaces in paths? (Robert Lynch)
Re: DNS problems (Paul Kimoto)
Re: Kernel 2.4 question (Andreas Jaeger)
Re: Add 4inches in length to your penis now!!! 4950 ("Martin Klingensmith")
Re: Confirm this bug: CodeWarrior does not support spaces in paths? (Kaz Kylheku)
Re: Checking socket status (c/c++) (Bhavin Shah)
Re: Confirm this bug: CodeWarrior does not support spaces in paths? (Johan Kullstam)
Re: Confirm this bug: CodeWarrior does not support spaces in paths? (Roger Shawl)
----------------------------------------------------------------------------
From: Roger Shawl <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Confirm this bug: CodeWarrior does not support spaces in paths?
Date: Tue, 27 Jun 2000 21:19:31 -0700
Reply-To: [EMAIL PROTECTED]
Can someone please confirm that CodeWarrior for Linux is sensitive to
spaces in paths?
I had a mysterious compiler error that disappeared when I removed the
space from a path and re-added the file. I don't want to change
all my directories capriciously, since it will break all the other
platforms and ports for the product.
Many thanks.
- Roger Shawl
[Incidentally, as long as I have those familiar with CW Linux here,
as a coddled PC/Mac programmer long accustomed to IDEs - and not
very comfortable or happy with Make files - what other alternatives
are there to CW for development on Linux?]
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: how to initialize a global instance
Date: Wed, 28 Jun 2000 09:35:11 +0200
[EMAIL PROTECTED] writes:
>The problem is when I try to initalize a global object, say MyClass
>myClass, it won't call the constructor after loaded the mytest module.
Because C does not call anything automatically. You must call the C++
initialization code from your modules initialization routine.
>But, if I use global instance pointer, say MyClass *myClass, it works.
Because then, you are calling the constructor yourself.
>How can I get a global instance sucessfully?
Use a pointer, as you already found out.
C++ can executes the constructors of global objects prior to executing
main. But you do not have any main() in your code, and even if you
would have a main() function, you would not call it from the usual
startup file crt*.
Perhaps you can look though the sources of crt and pick up the global
objects construction code. And then, you still have to add destruction
code. I am not sure, wether it is included in the normal crt*.
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB 1483 30CE 9FB2 A047 9CE0
Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5 8B98 9464 53FF 9382 F518
------------------------------
From: Nate Eldredge <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Confirm this bug: CodeWarrior does not support spaces in paths?
Date: 28 Jun 2000 01:01:58 -0700
Roger Shawl <[EMAIL PROTECTED]> writes:
> [Incidentally, as long as I have those familiar with CW Linux here,
> as a coddled PC/Mac programmer long accustomed to IDEs - and not
> very comfortable or happy with Make files - what other alternatives
> are there to CW for development on Linux?]
RHIDE is an IDE very much like that from Borland C/C++. Kdevelop is
another one that people seem to recommend a lot, though I've not used
it myself.
--
Nate Eldredge
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED]
Subject: HOWTO build absolute linux kernel binaries
Date: Wed, 28 Jun 2000 08:21:49 GMT
Hi,
I want to program a linux kernel into a flashprom and run it on an
embedded PC like board. Who can provide me with information on how to
get the linux kernel compiled so that binary images are generated wich I
can then download to flash using a JTAG interface?
Any help appreciated!
Greetings Eric
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Confirm this bug: CodeWarrior does not support spaces in paths?
Reply-To: [EMAIL PROTECTED]
Date: Wed, 28 Jun 2000 08:56:32 GMT
On Tue, 27 Jun 2000 21:19:31 -0700, Roger Shawl <[EMAIL PROTECTED]> wrote:
>
>
>Can someone please confirm that CodeWarrior for Linux is sensitive to
>spaces in paths?
>
>I had a mysterious compiler error that disappeared when I removed the
>space from a path and re-added the file. I don't want to change
>all my directories capriciously, since it will break all the other
>platforms and ports for the product.
You are ridiculous. Leave the spaces in filnames to the end users! No
reasonable developer puts spaces in path names in a source tree, especially not
under cross-platform development. I'd be beat up in the parking lot after
work if I did that!
I'd say that it's a bug that the IDE does not terminate immediately with a
diagnostic error message like ``You're a goofball, click OK!'' when it
encounters such a thing.
--
#exclude <windows.h>
------------------------------
From: Steve Merrony <[EMAIL PROTECTED]>
Subject: Kernel BUG? - Occasional - 2.3.99-pre9 SMP
Date: Wed, 28 Jun 2000 10:07:44 +0100
I'm getting this about once a day ...
kfree: Bad obj cf6e0000
kernel BUG at slab.c:1737!
invalid operand: 0000
CPU: 1
EIP: 0010:[<c012d9e6>]
EFLAGS: 00010282
eax: 0000001b ebx: 00000000 ecx: c02392b4 edx: c02392b4
esi: d0854000 edi: cf6e0000 ebp: cef16000 esp: cef17f50
ds: 0018 es: 0018 ss: 0018
Process rmmod (pid: 626, stackpage=cef17000)
Stack: c01f1fe4 c01f24b5 000006c9 00000000 d0854000 00000001 cef16000
d0859b01
d085a3ae d0854000 d085a82a cf6e0000 d0854000 d0854ae4 c011c2db
d0854000
d0848000 00000000 c011b5a5 d0854000 00000001 cef16000 00000005
00000061
Call Trace: [<c01f1fe4>] [<c01f24b5>] [<d0854000>] [<d0859b01>]
[<d085a3ae>] [<d0854000>] [<d085a82a>]
[<d0854000>] [<d0854ae4>] [<c011c2db>] [<d0854000>] [<d0848000>]
[<c011b5a5>] [<d0854000>] [<c0109b55>]
[<c0109a2c>]
Code: 0f 0b 83 c4 0c 5b 5e 5f 5d 83 c4 0c c3 90 83 ec 0c 55 57 56
RedHat 6.2, no mods except kernel update.
Mail me if anyone wants more info.
Steve
------------------------------
From: "Martin Fitzpatrick" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Q. Versions of cpio ?
Date: Wed, 28 Jun 2000 11:55:57 +0100
Hi,
I have recently installed version 2.2 of the Caldera distro, loaded the
2.2.15 kernel and applied two patches to get my OnStream DI30 tape drive
working. Next thing I want to do is get some nice verification of my
backups. Not sure if these are really the correct newsgroups to post to, so
any advice is welcome.
SCO OpenServer 5.2.0 which I use in work has the following option (from the
man page) -
-n Calculate the checksum value for each file read from an archive
(the
checksum value is equivalent to that produced by the command
sum -r). Filetypes other than regular files produce a checksum of
0
(zero). This option is intended to be used in conjunction with the
-itv options; the first entry on each output line is the checksum
of
an archived file.
This allows the a list of checksums to be read back after the backup is
completed, which can be compared with a list created with 'sum -r' before
the backup was taken. All of which soothes my rampant paranoia and lets me
sleep at night.
However, GNU cpio version 2.4.2 does not have this -n option. Does anyone
know of a version which I might be able to get hold of which does implement
this option ?
Alternatively, is there another way of verifying my backups ? I know
packages like BRU *say* they can verify it, but I'm paranoid and I like to
see the numbers ;-) Any experience would be appreciated, e.g. people who
have succeeded/failed in restoring systems with BRU.
Thanks in advance,
Martin.
------------------------------
From: Thomas Waight <[EMAIL PROTECTED]>
Subject: DNS problems
Date: Wed, 28 Jun 2000 14:42:17 +0200
Hi !
I have Linux running off a Disk On Chip. With only 24 MB space for Linux
I built my own File System and got it up and running. Network
configuration worked fine except for DNS, wich I can't get to work. I
have my DNS Server mentioned in the /etc/resolv.conf File, but I can't
even ping the hosts in my local Network I specify in the /etc/hosts
File.
As I said, the rest of the networking is fine, I can ping inside and
outside my local network (routing works).
my questions are:
- are there any Files I could have missed when I built my file system
that
could cause these problems (!!ONLY!! with DNS) ?
- Is it possible that I compiled Name Resolution out of my Kernel
(Net device is a module), have heard that name resolution is
built into the Kernel, but haven't found any Information on it ?
- Can anybody think of other possible causes (solutions!) for my problem
??
Please anyone help me on this, I've been going mad on it for days!
thanks a lot for any answers!
------------------------------
From: "Daniel Klimkowski" <[EMAIL PROTECTED]>
Subject: is there a port to windows media player?
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.x
Date: Mon, 26 Jun 2000 23:10:10 GMT
I need to know if there is a port of Windows media player to Linux or
anything that emulates it. I'm wanting it so that I can stream audio from
online radio stations and most of them require Windows Media Player.
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Kernel 2.4 question
Date: 28 Jun 2000 10:07:12 -0500
Reply-To: [EMAIL PROTECTED]
In article <8jb397$bfhs$[EMAIL PROTECTED]>, bill davidsen wrote:
> In article <[EMAIL PROTECTED]>,
> Todd Scheetz <[EMAIL PROTECTED]> wrote:
>| is kernel 2.4 capable of
>| accessing (reading and writing) files larger than 2 GB?
> Yes.
I've read that rebuilt libraries and executables are needed, too. Do you
know whether that's the case?
--
Paul Kimoto
------------------------------
From: [EMAIL PROTECTED] (Lew Pitcher)
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.x
Subject: Re: is there a port to windows media player?
Reply-To: [EMAIL PROTECTED]
Date: Wed, 28 Jun 2000 13:27:29 GMT
On Mon, 26 Jun 2000 23:10:10 GMT, "Daniel Klimkowski"
<[EMAIL PROTECTED]> wrote:
>I need to know if there is a port of Windows media player to Linux or
>anything that emulates it. I'm wanting it so that I can stream audio from
>online radio stations and most of them require Windows Media Player.
You apparently haven't read the responses to your previous post of
this question.
Short answer: No, there is no port of "Windows Media Player".
Microsoft has not (and probably will not) port this commercial product
to the Linux environment.
However, there are Linux packages that provide similar or identical
functionality. You have been referred to some of them.
Lew Pitcher
Information Technology Consultant
Toronto Dominion Bank Financial Group
([EMAIL PROTECTED])
(Opinions expressed are my own, not my employer's.)
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Confirm this bug: CodeWarrior does not support spaces in paths?
Date: Wed, 28 Jun 2000 08:46:20 -0700
Reply-To: [EMAIL PROTECTED]
Kaz Kylheku wrote:
[snip]
>
> You are ridiculous. Leave the spaces in filnames to the end users! No
> reasonable developer puts spaces in path names in a source tree, especially not
> under cross-platform development. I'd be beat up in the parking lot after
> work if I did that!
>
> I'd say that it's a bug that the IDE does not terminate immediately with a
> diagnostic error message like ``You're a goofball, click OK!'' when it
> encounters such a thing.
>
> --
> #exclude <windows.h>
Agreed! This is one abomination foisted on the world by Redmond, WA.
Another is toiling away, clicking on dialogs, "Are you SURE you want to
XYZ?". (No, I just asked you to do XYZ because I'm a Windows luzer,
clicking on anything that doesn't move.)
Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: DNS problems
Date: 28 Jun 2000 11:55:22 -0500
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Thomas Waight wrote:
> I have Linux running off a Disk On Chip. With only 24 MB space for Linux
> I built my own File System and got it up and running. Network
> configuration worked fine except for DNS, wich I can't get to work. I
> have my DNS Server mentioned in the /etc/resolv.conf File, but I can't
> even ping the hosts in my local Network I specify in the /etc/hosts
> File.
> As I said, the rest of the networking is fine, I can ping inside and
> outside my local network (routing works).
Do you mean that you can ping _any_ host by number, but _no_ hosts by name?
> my questions are:
> - are there any Files I could have missed when I built my file system
> that
> could cause these problems (!!ONLY!! with DNS) ?
There is also /etc/nsswitch.conf, although I don't know how that could
cause your problem.
> - Is it possible that I compiled Name Resolution out of my Kernel
> (Net device is a module), have heard that name resolution is
> built into the Kernel
No. Name resolution is in glibc. (That also means that the subject is
off-topic for c.o.l.d.system ...)
(Can you write a little program using gethostbyaddr(), then strace(1) it?)
--
Paul Kimoto
------------------------------
From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.4 question
Date: 28 Jun 2000 18:20:30 +0200
>>>>> Paul Kimoto writes:
Paul> In article <8jb397$bfhs$[EMAIL PROTECTED]>, bill davidsen wrote:
>> In article <[EMAIL PROTECTED]>,
>> Todd Scheetz <[EMAIL PROTECTED]> wrote:
>> | is kernel 2.4 capable of
>> | accessing (reading and writing) files larger than 2 GB?
>> Yes.
Paul> I've read that rebuilt libraries and executables are needed, too. Do you
Paul> know whether that's the case?
You need to rebuild glibc (glibc 2.1.3 is needed) with the
2.4. headers installed but you don't need to rebuild dynamically
linked programs.
Andreas
--
Andreas Jaeger
SuSE Labs [EMAIL PROTECTED]
private [EMAIL PROTECTED]
------------------------------
From: "Martin Klingensmith" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Add 4inches in length to your penis now!!! 4950
Date: Wed, 28 Jun 2000 16:38:39 GMT
Just a thought.. if you add 4 inches, wouldn't be kind of embarrasing to get
'excited' in an inappropriate situation?
"HEY.. it's just my cell phone in my pocket guys calm down!"
btw the cell phone runs embedded Linux on a StrongARM
"bgeer" <[EMAIL PROTECTED]> wrote in message
news:8iqsav$dnm$[EMAIL PROTECTED]...
> "Larry Ebbitt " <[EMAIL PROTECTED]> writes:
>
> >On Sun, 18 Jun 2000 09:47:41 -0400, Lew Pitcher wrote:
>
> >>> you to can have the huge dick of your dreams!!!
>
> >Will I have to take time away from my PC?
>
> What good is a huge one if you don't??? :-)
>
> --
> <> Robert Geer & Donna Tomky | * <>
> <> [EMAIL PROTECTED] | _o * o * o <>
> <> [EMAIL PROTECTED] | -\<, * <\ </L <>
> <> Salt Lake City, Utah USA | O/ O __ /__, /> <>
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Confirm this bug: CodeWarrior does not support spaces in paths?
Reply-To: [EMAIL PROTECTED]
Date: Wed, 28 Jun 2000 16:45:13 GMT
On Wed, 28 Jun 2000 08:46:20 -0700, Robert Lynch <[EMAIL PROTECTED]> wrote:
>Agreed! This is one abomination foisted on the world by Redmond, WA.
>Another is toiling away, clicking on dialogs, "Are you SURE you want to
>XYZ?". (No, I just asked you to do XYZ because I'm a Windows luzer,
>clicking on anything that doesn't move.)
Are you sure you wanted to click Yes in that previous dialog
that asked you whether you were sure?
OR
Was it just
a nervous twitch?
[ Yes ] [ No ] [ Abort ]
--
#exclude <windows.h>
------------------------------
From: Bhavin Shah <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development
Subject: Re: Checking socket status (c/c++)
Date: Wed, 28 Jun 2000 10:36:00 -0700
> >When I recv data from the socket using "recv()",
> >the appropriate errno gets set and I can catch
> >broken connections. However, when I try and
> >send to this broken socket with "send", I
> >get a broken pipe message and my program halts.
>
> That's because you program gets a SIGPIPE signal. You should either install a
> handler for this signal, or set the action to SIG_IGN. If the pipe signal is
> ignored, then the send will return -1 with errno set to EPIPE, and you can deal
> with the error.
Thanks, but one more thing. If the send is within a thread, I'm
assuming that the thread can switch in the middle of the send w/o
locks or anything. My question is when the thread switches back to
where it left off in the send and the connection got broken in between
the switching, will the send(upon switching back to the thread) still
catch the broken connection?
Bhavin
------------------------------
From: Johan Kullstam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Confirm this bug: CodeWarrior does not support spaces in paths?
Date: 28 Jun 2000 13:27:54 -0400
[EMAIL PROTECTED] (Kaz Kylheku) writes:
> On Wed, 28 Jun 2000 08:46:20 -0700, Robert Lynch <[EMAIL PROTECTED]> wrote:
> >Agreed! This is one abomination foisted on the world by Redmond, WA.
> >Another is toiling away, clicking on dialogs, "Are you SURE you want to
> >XYZ?". (No, I just asked you to do XYZ because I'm a Windows luzer,
> >clicking on anything that doesn't move.)
>
> Are you sure you wanted to click Yes in that previous dialog
> that asked you whether you were sure?
>
> OR
>
> Was it just
> a nervous twitch?
or the ever popular
Cancel this operation?
[ Yes ] [ No ] [ Abort ]
--
johan kullstam l72t00052
------------------------------
From: Roger Shawl <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Confirm this bug: CodeWarrior does not support spaces in paths?
Date: Wed, 28 Jun 2000 10:02:39 -0700
Reply-To: [EMAIL PROTECTED]
On Wed, 28 Jun 2000 08:56:32 GMT, [EMAIL PROTECTED] (Kaz Kylheku) wrote:
>On Tue, 27 Jun 2000 21:19:31 -0700, Roger Shawl <[EMAIL PROTECTED]> wrote:
>>
>>
>>Can someone please confirm that CodeWarrior for Linux is sensitive to
>>spaces in paths?
>>
>>I had a mysterious compiler error that disappeared when I removed the
>>space from a path and re-added the file. I don't want to change
>>all my directories capriciously, since it will break all the other
>>platforms and ports for the product.
>
>You are ridiculous. Leave the spaces in filnames to the end users! No
>reasonable developer puts spaces in path names in a source tree, especially not
>under cross-platform development. I'd be beat up in the parking lot after
>work if I did that!
>
>I'd say that it's a bug that the IDE does not terminate immediately with a
>diagnostic error message like ``You're a goofball, click OK!'' when it
>encounters such a thing.
As a developer using a commercial product - the MetroWerks compiler - I *AM*
an end user. And end users should be allowed and expected to put whatever
they damn well please in a filename, so long as it is OS legal.
It seems "reasonable" to point out that spaces in filenames in a cross platform
project is not a great idea because of prevailing limitations and assumptions
present in current in tools. Fine, I can accept that, and appreciate the tip.
To then imply that it is fundamentally ignorant or stupid to expect tools to handle
legal OS filenames suggests a different origin for the ignorance: that of the
user-hostile (i.e. "you're a goofball") community of programmers perpetuating the
assumption that no "reasonable" user - and, again, I *AM* a *USER* in this context
- would ever use the full range of OS legal filenames available to them. I'm sorry,
but expecting users to behave "reasonably" is not "reasonable."
Should I mandate 8.3 filenames, in all caps? Hey, no "reasonable" developer
uses long filenames, or mixed case..
- Roger Shawl
------------------------------
** 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
******************************