Linux-Development-Sys Digest #883, Volume #7     Sat, 20 May 00 12:13:16 EDT

Contents:
  Re: Need ideas for university funded project for linux (haysus)
  Re: Can compile with c++ but not with gcc (Markus Kossmann)
  gdb usage question ("jacinth")
  Memory issue of process under Linux (Yin)
  Re: Need ideas for university funded project for linux (David T. Blake)
  Linux RAD tools now available - totally cross platform as well! ("Richard D")
  Re: Need ideas for university funded project for linux (Ray)
  Re: Can compile with c++ but not with gcc (David Kirkpatrick)
  Re: Can compile with c++ but not with gcc (David Kirkpatrick)
  Re: Need ideas for university funded project for linux (Full Name)
  Re: Need ideas for university funded project for linux (Full Name)
  Re: Need ideas for university funded project for linux (Doug Alcorn)
  Re: Need ideas for university funded project for linux (Doug Alcorn)
  Re: serial port RTS control ? (Mario Klebsch)
  Re: serial port RTS control ? (Mario Klebsch)
  Re: using ftp within a C-program ("Jarmo Salonen")

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

From: haysus <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 20 May 2000 00:10:04 -0500

>No distribution can put anything in /usr/local. That's for YOU to make
>non-distro-spawned additions in.

I ran Caldera 2.3 for a while (not the best idea) and I recall it
installing lots of stuff to /usr/local. Perhaps I'm wrong, it's been a
few months.

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

From: Markus Kossmann <[EMAIL PROTECTED]>
Subject: Re: Can compile with c++ but not with gcc
Date: Sat, 20 May 2000 08:10:04 +0200

David Kirkpatrick wrote:
> 
> Hi,
>    Trying to learn C++.  I can compile a simple program with c++
> but not gcc.  I looked at the How-To but it did not describe
> setting up the C++ library.
> gcc -v has:
> Reading specs from
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>    The man page talks about the difference between gcc and c++
> being in the style of linking where gcc assumes C style linking
> and g++ assumes C++ style linking.  What is this style
> difference?  The error I got when compiling, well probably
> linking was cout was undefined so I assume it could not find some
> object file where the def was.

gcc ist the frontend of the C-Compiler. So it doesn't link the C++
standard library ( which contains cout)  automatically  and you will
need to add a -lstdc++ to link with that library.  

--
Markus Kossmann                                    
[EMAIL PROTECTED]

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

From: "jacinth" <[EMAIL PROTECTED]>
Subject: gdb usage question
Date: Sat, 20 May 2000 15:42:41 +0800

hello everyone:
    I want to use gdb to see my GDTR/LDTR/TTR and segment register
invisiable part(x86)
    so in gdb I enter "p/x $gdtr"....etc
    but the result is "$6 = Value can't be converted to integer"
    and in gdb I enter "p/x $cs"
    the only result is the CS, just visiable part

    can anyone tell me how to view these value??

thanks for your answer









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

From: Yin <[EMAIL PROTECTED]>
Subject: Memory issue of process under Linux
Date: Sat, 20 May 2000 15:55:17 +0800



        Can anyone gives me some hints on how to make a detail measure of
memory usage of running process under Linux?
        It seems that 'top', 'ps', 'free' all gives different statistics of a
running process.

        Also, I have tried to compile a program by 'gcc a.c' where a.c is:

int main(void)
{
        while(1);
        return 1;
}

        The output is a.out.
        After using 'strip' to cut down the size to 3Kb and run it, 'top' said
it used up 292Kb in Size column and 252Kb in SHARED column, 'free' said
it used up about 60Kb and 200Kb shared (Calculated by free memory before
& while running the process). 

        Can anyone tell me where the memory goes? Thanks alot.

Jacky

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

From: [EMAIL PROTECTED] (David T. Blake)
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 20 May 2000 01:27:19 GMT
Reply-To: [EMAIL PROTECTED]

JEDIDIAH <[EMAIL PROTECTED]> wrote:
> Victor Wagner <[EMAIL PROTECTED]> wrote:
> >Doug Alcorn <[EMAIL PROTECTED]> wrote:
> >:>   a thing.
> >
> >: First, the Qt library _is_ now free.  Trolltech decided to license it
> >: using a "free" license.  Second, there already was (a now dead?)
> >
> >Not "free", just "open source". And Raimond have specially tweaked open
> >source definition, so Mozilla and Qt would pass the test.
> >In strict Stallman's sense of "free" Qt is not free.
> 
>       Put another way: what would or wouldn't stop you from making
>       a BeOS or MacOS version?

QT licenses DONATE all derived works back to Trolltech. That
includes all modifications of the code. You literally cannot
patch the code without giving them the patch.

Further, if you modify the code, you can only distribute your
modifications as patches. Not as another version of QT. The
license actively prevents forking in this way. Only Trolltech
is allowed to release versions of QT.

Further, if you even LINK to QT, you have to make your program 
more FREE than QT. You have to make your program's source
redistributable and make modifications of your program's
source redistributable. 

Further, if you create a program that links with QT and
is private, behind your own firewall, you have to make its
source available to Trolltech upon request. 

Consider the loss of freedom relative to the LGPL. With LGPL
you can create any program that only dynamically links with
the library, be it open source, closed source, or behind the 
firewall. There is NEVER a requirement that you give copyright
from every program that links to an LGPL library to FSF.
Any LGPL program can be forked and redistributed under 
a new name, as long as it remains LGPL. 

I don't think QT does qualify as open source. It clearly
fails allowing the creation of derived works licensed under
the same license. If you create a derived work, Trolltech 
has copyright of that work. You may only distribute it as
a patch, whereas Trolltech make take your modification and
distribute as their copyright. They own your work. Their
license is horribly tilted towards Trolltech. Should they 
ever try to use these rights granted under their license,
there will be a true uproar. 

-- 
Dave Blake
[EMAIL PROTECTED]

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

From: "Richard D" <[EMAIL PROTECTED]>
Subject: Linux RAD tools now available - totally cross platform as well!
Date: Sat, 20 May 2000 09:51:57 +0100

All I ever hear is complaints from people about the fact that RAD technology
has not made it to Linux yet.

I am sick of waiting for the Borland Kylix product and found the following
product...

OMNIS Studio - see http://www.omnis.net

Also see a couple of independent reviews below....

OMNIS Studio is a Work of Art (ZDNet) -
http://www.zdnet.com/sr/stories/issue/0,4537,2421330,00.html

and OMNIS Studio brings Database Application Development to Linux
(LinuxPlanet) - http://www.linuxplanet.com/linuxplanet/reviews/1710/1/

Fully OO, connects to all the big DB's and has its own if you don't have a
big requirement, and best of all, you write one set of code and with NO
recompilation it runs on all Win platforms as well, and Mac (if you are
interested in that).

Do check it out!

RD.





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

From: [EMAIL PROTECTED] (Ray)
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Sat, 20 May 2000 10:42:18 GMT

On 19 May 2000 21:27:13 -0500, Leslie Mikesell <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>Ray <[EMAIL PROTECTED]> wrote:
>
>>> I want a tool that, after you put together your concept of the perfect
>>>machine, would upload a packaging description that would allow anyone else
>>>to duplicate that exact software selection so they only have to deal with
>>>the specific local configuration (IP address, users, etc.).
>>
>>On Debian that would be:
>>
>>"dpkg --get-selections > packages.dpkg" on master machine
>>"dpkg --set-selections < packages.dpkg" on new machine
>
>How graceful is it about hardware differences?

The above shouldn't change your hardware config. at all.  In Debian hardware
configuration is pretty much a manual affair anyway.


> And is there
>a way to do a subsequent update (including adding/removing as
>well as updating packages) on the master so the copies can
>track along?

I imagine you could repeate the above any time you wanted to sync the client
machines' packages but I can't say I've ever tried it.  Most people just use
"apt-get update" "apt-get upgrade" to keep their packages up to date.  If
you have several machines that you really want to stay identical then you
might be better nfs mounting the / dir from the server or maybe using rsync.

>  What if source changes are done and things
>recompiled?  Can the package be rebuilt and loaded from
>an alternate location on the copies? 

You can have lines in your /etc/apt/sources.list like:

deb ftp://USER:[EMAIL PROTECTED]/my_custom_debs/local

and then put any custom built packages on your ftp server.

-- 
Ray

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

From: David Kirkpatrick <[EMAIL PROTECTED]>
Subject: Re: Can compile with c++ but not with gcc
Date: Sat, 20 May 2000 07:48:31 -0500
Reply-To: [EMAIL PROTECTED]

Hi Markus,
   You were right.  Adding -lstdc++ cured the problem.  I was not
specific in the description of the problem which was:
tmp/ccmy4nbs.o: In function main:
tmp/ccmy4nbs.o: Undefined reference to 'cout'
tmp/ccmy4nbs.o: Undefined reference to 'stream::operator(char const*)'
Thanks david

Markus Kossmann wrote:

> David Kirkpatrick wrote:
> >
> > Hi,
> >    Trying to learn C++.  I can compile a simple program with c++
> > but not gcc.  I looked at the How-To but it did not describe
> > setting up the C++ library.
> > gcc -v has:
> > Reading specs from
> > /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
> > gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> >    The man page talks about the difference between gcc and c++
> > being in the style of linking where gcc assumes C style linking
> > and g++ assumes C++ style linking.  What is this style
> > difference?  The error I got when compiling, well probably
> > linking was cout was undefined so I assume it could not find some
> > object file where the def was.
>
> gcc ist the frontend of the C-Compiler. So it doesn't link the C++
> standard library ( which contains cout)  automatically  and you will
> need to add a -lstdc++ to link with that library.
>
> --
> Markus Kossmann
> [EMAIL PROTECTED]

--
[EMAIL PROTECTED]



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

From: David Kirkpatrick <[EMAIL PROTECTED]>
Subject: Re: Can compile with c++ but not with gcc
Date: Sat, 20 May 2000 07:51:01 -0500
Reply-To: [EMAIL PROTECTED]


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

Hi Erik,
The problem was::

tmp/ccmy4nbs.o: In function main:
tmp/ccmy4nbs.o: Undefined reference to 'cout'
tmp/ccmy4nbs.o: Undefined reference to 'stream::operator(char const*)'

Markus Kossmann sent the answer.

gcc ist the frontend of the C-Compiler. So it doesn't link the C++
standard library ( which contains cout)  automatically  and you will
need to add a -lstdc++ to link with that library.

David




Erik Max Francis wrote:

> David Kirkpatrick wrote:
>
> >    Trying to learn C++.  I can compile a simple program with c++
> > but not gcc.
>
> Well, what error did you get?  It's a little hard to offer assistance
> when you haven't told us what's wrong.
>
> --
>  Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
>  __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
> /  \ Love is the triumph of imagination over intelligence.
> \__/ H.L. Mencken
>     Physics reference / http://www.alcyone.com/max/reference/physics/
>  A physics reference.

--
[EMAIL PROTECTED]


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

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi Erik,
<br>The problem was::
<p>tmp/ccmy4nbs.o: In function main:
<br>tmp/ccmy4nbs.o: Undefined reference to 'cout'
<br>tmp/ccmy4nbs.o: Undefined reference to 'stream::operator(char const*)'
<p>Markus Kossmann sent the answer.
<p><b><font color="#660000">gcc ist the frontend of the C-Compiler. So
it doesn't link the C++</font></b>
<br><b><font color="#660000">standard library ( which contains cout)&nbsp;
automatically&nbsp; and you will</font></b>
<br><b><font color="#660000">need to add a -lstdc++ to link with that 
library.</font></b><b><font color="#660000"></font></b>
<p>David
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<p>Erik Max Francis wrote:
<blockquote TYPE=CITE>David Kirkpatrick wrote:
<p>>&nbsp;&nbsp;&nbsp; Trying to learn C++.&nbsp; I can compile a simple
program with c++
<br>> but not gcc.
<p>Well, what error did you get?&nbsp; It's a little hard to offer assistance
<br>when you haven't told us what's wrong.
<p>--
<br>&nbsp;Erik Max Francis / [EMAIL PROTECTED] / <a 
href="http://www.alcyone.com/max/">http://www.alcyone.com/max/</a>
<br>&nbsp;__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &amp;tSftDotIotE
<br>/&nbsp; \ Love is the triumph of imagination over intelligence.
<br>\__/ H.L. Mencken
<br>&nbsp;&nbsp;&nbsp; Physics reference / <a 
href="http://www.alcyone.com/max/reference/physics/">http://www.alcyone.com/max/reference/physics/</a>
<br>&nbsp;A physics reference.</blockquote>

<p>--
<br>[EMAIL PROTECTED]
<br>&nbsp;</html>

==============4060996AE2A4443EDF36F88A==


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

From: [EMAIL PROTECTED] (Full Name)
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Sat, 20 May 2000 13:00:05 GMT

On 18 May 2000 12:19:01 GMT, "Peter T. Breuer" <[EMAIL PROTECTED]>
wrote:

>
>: There's just no excuse for not having an adequate installer.  We have
>
>The installers I have are very adequate (make and tar).  And from what
>I've seen the distros have excellenet installers too. I can understand

You can't be serious.  Make and tar are "installers"???


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

From: [EMAIL PROTECTED] (Full Name)
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Sat, 20 May 2000 13:05:15 GMT

On 18 May 2000 09:50:55 +0400, [EMAIL PROTECTED] (Victor Wagner)
wrote:

>
>: 1. A streamlined, easy install process;
>
>Disagree. System should be installed by competent techinicans in
>computer shops. Windows is not any more easy to install than say
>Mandrake 7.0, only user do it much more frequently, so get used to it.
>

What can someone say to such a stupid statement.



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

Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
From: Doug Alcorn <[EMAIL PROTECTED]>
Date: Sat, 20 May 2000 14:01:06 GMT

[EMAIL PROTECTED] (Full Name) writes:

> On 18 May 2000 12:19:01 GMT, "Peter T. Breuer" <[EMAIL PROTECTED]>
> wrote:
> 
> >
> >: There's just no excuse for not having an adequate installer.  We have
> >
> >The installers I have are very adequate (make and tar).  And from what
> >I've seen the distros have excellenet installers too. I can understand
> 
> You can't be serious.  Make and tar are "installers"???
> 

tar xzvf package-name-X.Y-Z.tar.gz
cd package-name-X.Y-Z
./configure
make
make install

The onlything Peter left out was autoconf.  Granted, not every user
wants to use this install method; however, an install method it is.
Many, many people have used it as such.

-- 
 (__)  Doug Alcorn (mailto:[EMAIL PROTECTED] - http://www.lathi.net)
 oo /  Win a 66GB capacity tape drive. Help me win too!
 |_/   http://www.ecrix.com/extreme/getReferrals.cfm?ref=7612

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

Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
From: Doug Alcorn <[EMAIL PROTECTED]>
Date: Sat, 20 May 2000 14:07:11 GMT

[EMAIL PROTECTED] (Full Name) writes:

> On 18 May 2000 09:50:55 +0400, [EMAIL PROTECTED] (Victor Wagner)
> wrote:
> 
> >
> >: 1. A streamlined, easy install process;
> >
> >Disagree. System should be installed by competent techinicans in
> >computer shops. Windows is not any more easy to install than say
> >Mandrake 7.0, only user do it much more frequently, so get used to it.
> >
> 
> What can someone say to such a stupid statement.

To some extent I agree.  Installing an operating system is not for the
faint of heart.  I would _never_ ask my mother (or my dad for that
matter) to install an operating system.

While I don't think OS installs are the exclusive domain of
technitians in computer shops, operating systems don't install
themselves.  MS-Windows nearly installs itself mainly because it makes
all kinds of decisions for you.  I think that Mandrake and RedHat are
fairly easy to install.  I'm sure others are as well, but I've never
tried any of them.  The only think I find really lacking is on screen
documentation explaining what the options mean.  Mandrake tries and
makes a good effort, but still needs improvement.

-- 
 (__)  Doug Alcorn (mailto:[EMAIL PROTECTED] - http://www.lathi.net)
 oo /  Win a 66GB capacity tape drive. Help me win too!
 |_/   http://www.ecrix.com/extreme/getReferrals.cfm?ref=7612

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: serial port RTS control ?
Date: Sat, 20 May 2000 11:06:40 +0200

"Fred" <[EMAIL PROTECTED]> writes:

>> Perhaps you are calling the other
>> participants slave, bat at the moment, they activate their line
>> driver, they are masters on the bus.
>Yes but I don't have to manage slave operation !
>and they answer only at master's question so if the timing are okay there's
>no collision here...

But it requires the TxD lines to be combined using an or function
(probably a wired or).

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: serial port RTS control ?
Date: Sat, 20 May 2000 11:08:51 +0200

"Fred" <[EMAIL PROTECTED]> writes:

>And what's happen if I use CRTSCTS (hardware flow control) mask in ioctl ?

Althoug CRTSCTS does have RTS in its name, RTS is not affected by
CRTSCTS.  Its function simply is to stop the data transmitter, when
CTS is not active.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

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

From: "Jarmo Salonen" <[EMAIL PROTECTED]>
Subject: Re: using ftp within a C-program
Date: Sat, 20 May 2000 16:08:44 GMT

Okey thanks alot I'll take a look at that,

/Jarmo
Joe Pfeiffer <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> There is a library called libftp, available from
> http://orel.home.cern.ch/orel/libftp/libftp/libftp.html.
> --
> Joseph J. Pfeiffer, Jr., Ph.D.       Phone -- (505) 646-1605
> Department of Computer Science       FAX   -- (505) 646-1002
> New Mexico State University          http://www.cs.nmsu.edu/~pfeiffer
> VL 2000 Homepage:  http://www.cs.orst.edu/~burnett/vl2000/



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


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