Linux-Development-Sys Digest #936, Volume #6      Tue, 6 Jul 99 18:14:35 EDT

Contents:
  Complinig C++ program Problems on HP-UX (Diarmuid Moloney)
  Re: Domain Names Limited to two or three Characters? (Lew Pitcher)
  modem question ([EMAIL PROTECTED])
  Re: Domain Names Limited to two or three Characters? (Preston F. Crow)
  Re: C++ templates:  More than Turing Complete? (Johan Kullstam)
  egcs idiocy ("SV")
  Re: Kernel source won't compile after Mandrake 6.0 upgrade (Daniel Bruce Lynes)
  Re: Device Drivers (Daniel Bruce Lynes)
  How can I redirect kernel message to a file ? ("Soohyung Lee")
  S3 Savage4 and RedHat6 (Carlos Rodrigues)
  gdb & pthreads in Alpha linux 2.0.36 (Larry Williamson)
  S3 Trio 3D Video Card ("Stephen Mullen")
  Determining drive usage from C (Adam the Amazing)
  Re: C++ templates:  More than Turing Complete? (Davin McCall)
  How to get involved in driver development? (Mike Warner)
  HELP WITH XWINDOWS! ("Owain")
  Re: help:why program can be run inside gdb but can not in command line (Stan Shebs)
  Re: Why we are still holding on to X Windows (Graffiti)
  Where do Linux Developers discuss Developments? (Mike Warner)
  Re: Kernel source won't compile after Mandrake 6.0 upgrade (Mike)
  gethostbyname from kernel ([EMAIL PROTECTED])
  Re: egcs idiocy (Scott Lanning)

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

Date: Tue, 06 Jul 1999 14:21:47 +0200
From: Diarmuid Moloney <[EMAIL PROTECTED]>
Crossposted-To: 
,comp.unix.programmer,comp.os.linux.development.apps,comp.unix.osf.misc,de.comp.os.unix,gnu.g++,gnu.gcc
Subject: Complinig C++ program Problems on HP-UX

Hello,

I am compling a C++ program with CC on HP-UX, as so :
CC Server.cpp -o Server -lxnet

But the following errors come up:
CC: "Server.cpp", line 47: error: undefined function inet_ntoa called
(1286)
CC: "Server.cpp", line 48: error: undefined function fork called (1286)
CC: "Server.cpp", line 51: error: undefined function close called (1286)

I know it's something to do with library but I am unfamiliar with C/C++
programming. I was wondering wheter anyone can help me with this
problem.

Diarmuid


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

From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: Domain Names Limited to two or three Characters?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 06 Jul 1999 11:43:27 GMT

On Mon, 05 Jul 1999 18:52:08 +0000, Bjorn Reese <[EMAIL PROTECTED]> wrote:

>CodeWright wrote:
>
>> There's a difference between theory (as defined in the above quoted RFCs) and
>> practice (as defined by the IANA and/or ICANN, and in RFC 1591).
>
>True, but I believe we were trying to find the worst-case.
>
>> There has been discussion about expanding the General TLDs, but AFAIK, this
>> has not yet happened. In any case, the TLD is not arbitrary; it must be one
>> approved by the IANA/ICANN
>
>The new gTLDs are currently delayed because of politics (the Green Paper
>from the US government.) While TLDs are not arbitrary, there is no way
>to determine what new TLDs will be adapted in the future. This is why I
>resorted to the technical documents to determine the worst-case scenario.

But, until the new gTLDs are adopted, you are still stuck with either
a two letter TLD from the set of countrycode TLDs approved by IANA/ICANN, or
a three letter TLD from the set of generic TLDs approved by IANA/ICANN.

Yes, in theory, the TLD can be larger than three characters, and not one of the
limited sets defined by IANA/ICANN, but in practice, the limit is three characters.




Lew Pitcher
System Consultant, Integration Solutions Architecture
Toronto Dominion Bank

([EMAIL PROTECTED])


(Opinions expressed are my own, not my employer's.)

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

From: [EMAIL PROTECTED]
Subject: modem question
Date: Tue, 06 Jul 1999 14:07:51 GMT

So, I've got a program that talks to the modem.  It has two
threads. One thread talks to the port and does useful and (I
fear) not-so-useful stuff.  For those unpredictable times when
it does not-so-useful stuff, I have an error recovery thread
that (in part) will reset the first thread if things go wrong.

My problem is that not both threads are able to accurately
monitor the DCD signal.  They both accurately read that it is
down before a connection, and they both correctly realize that a
connection is up afterwards.  But if the remote modem hangs up
unexpectedly, only my first thread realizes it.  The second
(error-handling) thread still reads it the DCD as up until we toggle DTR
on the local side (using cfset{i|o}speed, setting the baud to zero).

I'm using ioctl calls to read the DCD (TIOCMGET, and then
reading TIOCM_CAR from the third arg).

Is this some serial setting, or am I just screwed on
multi-threaded reads to the DCD?  And is there a clearly-written
reference for serial port ioctl calls?

      Thanks,
       AED


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

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

From: [EMAIL PROTECTED] (Preston F. Crow)
Subject: Re: Domain Names Limited to two or three Characters?
Date: 6 Jul 1999 14:15:28 GMT

Of course, if you set up your own isolated Intranet, you can have your
own DNS with whatever top level domains you want.

In theory, you should then be able to have long top level domains, and
well-engineered software will support it.

--PC

--
   "Everything is permissible"--but not everything is beneficial.
   "Everything is permissible"--but not everything is constructive.
                                                      --I Corinthians 10:23

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

From: Johan Kullstam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: C++ templates:  More than Turing Complete?
Date: 06 Jul 1999 10:02:34 -0400

[EMAIL PROTECTED] (Tenexus) writes:

> On 2 Jul 1999 16:16:52 -0400, [EMAIL PROTECTED] (Alexander Viro)
> wrote:
> 
> >
> >Oops. Hate to followup to myself, but...
> >
> >In article <7li0fd$[EMAIL PROTECTED]>, I wrote:
> >>In article <[EMAIL PROTECTED]>,
> >>Stephan Houben  <[EMAIL PROTECTED]> wrote:
> >>>No, not every C++ program is compiled to a finite amount of assembly.
> >>>Take the following counter-example:
> >>>----------------begin code------------------
> >>>template <class A>
> >>>void call_me(A a, int i)
> >>>{
> >>>  if (i > 0)
> >>>    call_me(&a, i - 1);
> >              ^-- arrgh. Sorry, I missed it. That's what one gets for posting
> >when too low on caffeine...
> >     But comment still stands:
> >
> [clip]
> 
> Not really. A compiler is required to support only 12 levels of
> pointer indirection (at least for ANSI C). I would assume a similar
> restriction exists for C++. Hence this program degenerates into
> INVALID C++ at runtime.

no it doesn't.  call_me was invoked with i set to 10.  thus this
template should bottom out after 10 recurses.  10 being less than 12
and all that.

-- 
johan kullstam

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

From: "SV" <[EMAIL PROTECTED]>
Subject: egcs idiocy
Date: Tue, 6 Jul 1999 13:22:27 -0400

just had
a wonderfull experience
compiling 2.2.8 kernel with
gcc-2.7.2.3 and then
with egcs-1.1.2.

Given everything else the same
here are the sizes of kernel zimage
compiled with gcc-2.7.2.3 and with egcs:

zimage by gcc-2.7.2.3        374314
zimage by egcs-1.1.2         388066

one may ask why the hell one would want
to use shitty compiler like egcs to bloat
already bloated linux code?
I had to, because I wanted to upgrade to
glibc-2.1.1 which  is supposed to be
compiled only with egcs or with gcc-2.8.x.
Well, I did compile glibc-2.1.1 with egcs-1.1.2
and guess what, the size of stripped libc-2.1.1.so
came up more than 1M while the size of
libc-2.0.6.so  compiled with gcc-2.7.2.3
is a decent 600K. And this is given
the number of global
symbols in libc-2.0.6 appeared to be more then
in libc-2.1.1.

On top of that I run a simple benchmark of a program
compiled with egcs and with gcc-2.7.2.3 and the program
compiled with egcs-1.1.2 ran in average 10-20% slower then
the same exactly code compiled with gcc-2.7.2.3
with the same exactly optimizations.

Someone already reported the latest and
greatest linux kernel 2.3.9 runs 5-10% slower then
kernel 2.2, which in turn, came out 200%-400% slower then
Windows NT in PC Week benchmarks.

I feel like the whole linux is becoming just a heap
of bugfixes piled up by a bunch of non-professional
bafoons

Cordially,
SV




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

From: Daniel Bruce Lynes <[EMAIL PROTECTED]>
Subject: Re: Kernel source won't compile after Mandrake 6.0 upgrade
Date: Tue, 06 Jul 1999 15:21:50 GMT

On Tue, 6 Jul 1999, Mike wrote:

M:I installed the source trees from Mandrake:  2.2.5-ac3-mdk and
M:2.2.9-ac3-mdk and they both compile fine.  I still need the 2.2.5
M:because my soundblaster live will only work with that version.  The
M:driver will not load if it is 2.2.5-ac3-mdk.  Does anyone have an idea
M:what happened and if I can fix it?

First off, what you're saying about the Soundblaster Live is simply not true.
I'm using the Soundblaster Live under both the 2.2.6 and the 2.2.9 kernels
without any problems.  You have to hack the module to get it to work, but other
than that, it works just fine.  The same is true of the 2.0.xx version of the
driver.  They just will not work with older versions of the kernel...only newer
versions.

Secondly, I haven't come across the problem you're having with the kernel, but
you might try the following:

make dep ; make clean ; make zlilo ; make modules ; make modules_install

(The make dep, make clean is what might clear up your problem.)


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

From: Daniel Bruce Lynes <[EMAIL PROTECTED]>
Subject: Re: Device Drivers
Date: Tue, 06 Jul 1999 15:16:03 GMT

On Sun, 4 Jul 1999, Matt Jervis wrote:

MJ:I'm real new with Linux and need some help.
MJ:Can anyone tell me how to get my:    Vibra 16 Sound Card
MJ:to work in Linux

cd /usr/src/linux
make config __or__ make menuconfig __or__ make xconfig
make dep ; make clean ; make zlilo ; make modules ; make modules_install

In other words, compile a new kernel.  The kernel doesn't come with support for
the Vibra 16 soundcard.  You have to compile it in as a module (preferably), or
directly into the kernel.

Make sure you also compile sound support in as a module (or directly into the
kernel), or the Vibra 16 driver will be useless.

After the new kernel is built, you'll have to install the new kernel, using
liloconfig, or if you're using the other method of booting Linux, I don't really
know, as I've only used lilo.

After all is said and done, you'll also have to update /etc/rc.d/rc.modules, or
whatever your module configuration file is, so that the kernel will insert and
probe for the new driver (if you chose to install it as a module.)


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

From: "Soohyung Lee" <[EMAIL PROTECTED]>
Subject: How can I redirect kernel message to a file ?
Date: Wed, 23 Jun 1999 16:01:54 +0900

I want to know the exact time of context switching between some tasks .
So, I added some printk functions in the kernel source for that purpose.
But, all the messages are output to the console .
I want to redirect these messages (by printk) to a file ( like redirection
of printf messages).
I don't want to know use /var/log/messages .
How can I do this ?


Can you help me ?
Thanks in advance ...


- Lee -



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

From: Carlos Rodrigues <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.x,comp.os.linux.hardware
Subject: S3 Savage4 and RedHat6
Date: Tue, 06 Jul 1999 11:55:45 +0100

Hi.
I'm thinking of buying a Savage4 based graphics card and I would like to
know if someone tried it with RedHat6. Any comments would be
appreciated.

P.S.: I will be unable to check the newsgroups for replies for some
time, so if you could reply this by mail also, it would be nice.

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

From: Larry Williamson <[EMAIL PROTECTED]>
Subject: gdb & pthreads in Alpha linux 2.0.36
Date: 06 Jul 1999 14:18:03 -0400

Someone here is working on an application that runs on an Alpha Linux
2.0.36 machine.  The code is written in C++ (egcs-1.1.1).

It appears gdb v4.18 does not support debugging pthread'd apps.

Does anyone know of any effort to add pthread support to the Alpha
port of gdb ?  Is there an alternative debugger that could be used in
this environment?


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

From: "Stephen Mullen" <[EMAIL PROTECTED]>
Subject: S3 Trio 3D Video Card
Date: Tue, 6 Jul 1999 20:04:24 -0000

Does anyone know where I can download a driver for the S3 Trio 3D Video
Card.

Thanks
Stephen Mullen
E-Mail: [EMAIL PROTECTED]




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

From: Adam the Amazing <[EMAIL PROTECTED]>
Subject: Determining drive usage from C
Date: Tue, 06 Jul 1999 11:23:03 -0500

Is there some C function I can call to determine how much free space is
on a particular hard disk partition?

thanks,
--adam

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

From: [EMAIL PROTECTED] (Davin McCall)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: C++ templates:  More than Turing Complete?
Date: Tue, 06 Jul 1999 16:53:45 GMT

On 5 Jul 1999 22:27:09 -0700, [EMAIL PROTECTED] (Nathan Myers)
wrote:

[***]
>>But why would I want to know why C++ is so popular/good? The issue
>>that you brought up was that it wasn't possible to understand the
>>principles of C++ without studying C++.
>
>No, that wasn't the issue I brought up.

Well, that issue came up somehow. You were the one who made statements
to the effect that it wasn't possible [to understand the principles...
etc].

[from Mr Myers]
>>>Of course some other languages will achieve parity, someday, but 
>>>only those designed by people who fully understand the strengths of 
>>>standard C++.  Maybe such a language will even succeed in avoiding
>>>its weaknesses.
>>
[from myself]
>>I take it that you mean they must understand the principles, although
>>not necessarily how they are applied in C++.
[from Mr Myers]
>No, absolutely the opposite!  Real, useful programs are written 
>using real language features.  To understand principles you must 
>first understand the specific application.  All valid principles 
>are derived from experience, however they may be dressed up after 
>the fact.

[also from Mr Myers]
>Principles, divorced from experience, rot.  If you want to understand
>good principles, the only trustworthy source is good code.  If you 
>want to understand the principles behind the success of C++, you must
>study good, real C++ programs and libraries.  There are no shortcuts.

[also from Mr Myers, an analogy where car {X} is C++ and {Y} and {Z}
are other languages. It had not been previously stated that {Y} and
{Z} were in any way inferior to {X}]
>>If you want to know why car {X} wins races, studying {Y} and {Z}
>>(which don't) is no substitute for a very careful study of {X}.

This last is the one that prompted me to write the question marked
with the *** near the top of this post (it is this which I quoted
directly before writing that question). And yet you claim this wasn't
the issue you brought up. In the context of my response, I rather
think it *was*.

Davin.
__________________________________________________________
       *** davmac - sharkin'!! [EMAIL PROTECTED] ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/

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

From: Mike Warner <[EMAIL PROTECTED]>
Subject: How to get involved in driver development?
Date: Tue, 06 Jul 1999 10:10:34 -0700

What is the procedure for getting involved in Linux development? In
particular, I would like to develop a device driver for scsi DVD-RAM if
one is not currently available or under development.

Mike
--
Before replying, remove the leading "x" in my email address

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

From: "Owain" <[EMAIL PROTECTED]>
Subject: HELP WITH XWINDOWS!
Date: Tue, 6 Jul 1999 18:27:59 +0100

I have recently tried and failed to get the xwindows system in linux working
but every time I start it the screen goes blank.

My Graphics card (an AGP Leadtec Winfast L2300) is not in the graphics card
menu in the instalation program and my monitor (a Compaq P110) isn't lsted
in teh monitor section either.  I have selected "card not listed" as a
graphics card and a "Generic VGA" monitor in the monitor section.

Am I doing anything wrong?  Is there a solution to my problem?

Please help

Thank you



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

From: Stan Shebs <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: help:why program can be run inside gdb but can not in command line
Date: 06 Jul 1999 12:25:40 -0700

[EMAIL PROTECTED] (Peter Samuelson) writes:

> Actually I suspect (s)he's using an uninitialized variable, which gdb
> happens to initialize to (say) 0 but the Real World [tm] doesn't.

This is *highly* unlikely; GDB on Linux runs the program as a separate
process, and doesn't really have an opportunity to touch user program
variables before execution starts.  It's much more likely to be the
case that the environment vars are different, because of the shell
invocation.

> Lots of things are different inside and outside debugging environments.
> Perhaps the only ways to avoid/minimize this are (a) to use some sort
> of ICE, or (b) to attach (read-only) to a regular-running process � la
> the kernel gdb stubs out there, which after all is not too different
> from an ICE, at least conceptually.

Although your comments are true for kernel debugging, I'm pretty sure
this is all about debugging of a user-level program.

                                                        Stan Shebs
                                                        Cygnus Solutions
                                                        [EMAIL PROTECTED]

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

From: Graffiti <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Why we are still holding on to X Windows
Date: 6 Jul 1999 10:54:22 -0700

In article <01bec589$e96a45c0$LocalHost@brinleyc>,
Adam JBC <[EMAIL PROTECTED]> wrote:
[snip]
>How about an interface which meets the following criteria:
>
>-Dosn't rely on screen size in any way (e.g. dialog boxes change size (they
>can be tiny in Windoze with a large moniter/high resolution))

DPS.  It's out there for X.

>-Dosn't make a funny sound every time the mouse moves (can I stop this?)

Huh?  I'd guess you have some funny setting in your wm, because X
doesn't do that.

>-Can use multiple moniters (like Win98)

There's quite a few X servers that will support multi-headed displays,
and can also run 2 different servers, each on a seperate display.

>-Something like in Star Trek (seriously), their UI seems to be very
>efficient, albeit full of meaningless numbers also good graphics

Umm... I assume you mean the original Star Trek.  Why not just build
your blinking-plastic-button-console and a small X driver for it so you
can control stuff via that board?  The framework is there in X.

>-I'm having a hard time coming up with ideas, but I think KDE at least is
>crap, but it's all I have, before I can learn Linux and change it :-)  I
>espically hate the "Where do you want to go tomorrow", it's soooo tacky.

X != GUI
KDE != X
GNOME != X
Motif != X
etc.

Any more ideas? :-)

-- DN

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

From: Mike Warner <[EMAIL PROTECTED]>
Subject: Where do Linux Developers discuss Developments?
Date: Tue, 06 Jul 1999 10:40:12 -0700

Please.

Mike
--
Before replying, remove the leading "x" in my email address

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

From: Mike <[EMAIL PROTECTED]>
Subject: Re: Kernel source won't compile after Mandrake 6.0 upgrade
Date: Tue, 06 Jul 1999 13:35:56 -0400


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

How did you hack the sblive.o module?  Did you use a hex editor to change the
kernel version inside?  I've been trying that but no luck with my current hex
editor (khexdit).  Which one did you use?

Daniel Bruce Lynes wrote:

> On Tue, 6 Jul 1999, Mike wrote:
>
> M:I installed the source trees from Mandrake:  2.2.5-ac3-mdk and
> M:2.2.9-ac3-mdk and they both compile fine.  I still need the 2.2.5
> M:because my soundblaster live will only work with that version.  The
> M:driver will not load if it is 2.2.5-ac3-mdk.  Does anyone have an idea
> M:what happened and if I can fix it?
>
> First off, what you're saying about the Soundblaster Live is simply not true.
> I'm using the Soundblaster Live under both the 2.2.6 and the 2.2.9 kernels
> without any problems.  You have to hack the module to get it to work, but other
> than that, it works just fine.  The same is true of the 2.0.xx version of the
> driver.  They just will not work with older versions of the kernel...only newer
> versions.
>
> Secondly, I haven't come across the problem you're having with the kernel, but
> you might try the following:
>
> make dep ; make clean ; make zlilo ; make modules ; make modules_install
>
> (The make dep, make clean is what might clear up your problem.)

--
Michael R. Howard P.Eng
ADSL S/W Engineer
599-3600 x5952
[EMAIL PROTECTED]



==============94FE59440F97114B32027DEA
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
How did you hack the sblive.o module?&nbsp; Did you use a hex editor to
change the kernel version inside?&nbsp; I've been trying that but no luck
with my current hex editor (khexdit).&nbsp; Which one did you use?
<p>Daniel Bruce Lynes wrote:
<blockquote TYPE=CITE>On Tue, 6 Jul 1999, Mike wrote:
<p>M:I installed the source trees from Mandrake:&nbsp; 2.2.5-ac3-mdk and
<br>M:2.2.9-ac3-mdk and they both compile fine.&nbsp; I still need the
2.2.5
<br>M:because my soundblaster live will only work with that version.&nbsp;
The
<br>M:driver will not load if it is 2.2.5-ac3-mdk.&nbsp; Does anyone have
an idea
<br>M:what happened and if I can fix it?
<p>First off, what you're saying about the Soundblaster Live is simply
not true.
<br>I'm using the Soundblaster Live under both the 2.2.6 and the 2.2.9
kernels
<br>without any problems.&nbsp; You have to hack the module to get it to
work, but other
<br>than that, it works just fine.&nbsp; The same is true of the 2.0.xx
version of the
<br>driver.&nbsp; They just will not work with older versions of the kernel...only
newer
<br>versions.
<p>Secondly, I haven't come across the problem you're having with the kernel,
but
<br>you might try the following:
<p>make dep ; make clean ; make zlilo ; make modules ; make modules_install
<p>(The make dep, make clean is what might clear up your problem.)</blockquote>

<pre>--&nbsp;
Michael R. Howard P.Eng
ADSL S/W Engineer
599-3600 x5952
[EMAIL PROTECTED]</pre>
&nbsp;</html>

==============94FE59440F97114B32027DEA==


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

From: [EMAIL PROTECTED]
Subject: gethostbyname from kernel
Date: 6 Jul 1999 17:53:23 GMT

Is there a way to do a gethostbyname within the kernel?  I am currently
hacking nfs to support transparent replication, but i need to convert
hostname->ip to do this.  any ptrs?  thanks.

ben

-- 

[remove unSPAM. to send me email]

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

From: [EMAIL PROTECTED] (Scott Lanning)
Subject: Re: egcs idiocy
Date: 6 Jul 1999 18:36:12 GMT

SV ([EMAIL PROTECTED]) wrote:
: I feel like the whole linux is becoming just a heap of
: bugfixes piled up by a bunch of non-professional bafoons

Naw, you forgot the bunch of non-professional buffoons
who bitch about things but don't even provide fixes..

--
Scott Lanning: [EMAIL PROTECTED], http://physics.bu.edu/~slanning
"Windows was designed to keep the idiots away from Unix so we could
hack in peace. Let's not break that." --Tom Christiansen

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


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