Linux-Development-Sys Digest #882, Volume #7 Sat, 20 May 00 01:13:12 EDT
Contents:
Can compile with c++ but not with gcc (David Kirkpatrick)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Re: Need ideas for university funded project for linux ("Peter T. Breuer")
Re: linux kernel not C++ friendly? (Erik de Castro Lopo)
Re: Need ideas for university funded project for linux (brian moore)
Re: inline-limit might be fun to try (Nix)
Re: Need ideas for university funded project for linux (Victor Wagner)
Re: Can compile with c++ but not with gcc (Erik Max Francis)
Re: Need ideas for university funded project for linux (JEDIDIAH)
Re: Linux Driver Development (Scott Sweeting)
Re: Need ideas for university funded project for linux (Ray)
Re: sockets writev (Nic)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Re: Need ideas for university funded project for linux (David Steuber)
Re: Need ideas for university funded project for linux (David Steuber)
----------------------------------------------------------------------------
From: David Kirkpatrick <[EMAIL PROTECTED]>
Subject: Can compile with c++ but not with gcc
Date: Fri, 19 May 2000 17:06:35 -0500
Reply-To: [EMAIL PROTECTED]
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.
The file name was xx.cpp. I tried xx.cc and go the same
result.
I looked around for libraries and compiled with -l/xxxxx such
as libc.so.6. Also pointed to
/usr/lib/gcc-lib/i386-glibc20-linux/egcs-2.90.29/libgcc.a
libobjc.a and a few others.
When I compile a program with c++ and file it I get:
a.out: ELF 32-bit LSB executable, Intel 30386, version 1,
dynamically linked (uses shared libs), not stripped
So whats with "style" above and gcc vs c++.
David Kirkpatrick
--
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
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: 19 May 2000 16:22:04 -0500
In article <[EMAIL PROTECTED]>,
brian moore <[EMAIL PROTECTED]> wrote:
>You are free to add your own, of course. The above are merely virtual
>packages that include others. For example, task-dns-server:
Hmmm, a packager that understands recursion would be nice.
>As for your list specifically: KDE is not in Debian as it is not
>compatible with the GPL.
So clearly it would not suffice to be limited to Debian pacakges.
>What do you mean by 'server'? Web? Mail?
>Usenet? DNS? SMB? 'server' is mighty generic.
All of the above plus FTP. But that was just the start of the
hundred ways to build a system. For an inside-the-firewall
system it doesn't hurt to have a few extra services. You'd
also want a choice for external mail relay, external ftp
server, etc. with not much else running.
>On the reverse side, there is no "task-web-server" for the simple reason
>that -you- get to choose which web server you want. Do you want Apache?
>Or Roxen? Or CERN perhaps? Or Apache-ssl? How about modules? Do you
>want mod_perl or is it not worth the overhead because your pages are all
>static?
If you know what you want, there never has been a problem in
putting the pieces together. We need something for people
who don't know about all the possibilities - that is, a
way to re-use the work of someone who has built a working
system.
>Some things are best left to humans to decide or there would be no
>choice at all, which is counter to the freedom granted by the FSF,
>Linus, the Apache Group and all the others contributing to the library.
I don't think you understand. I don't want to limit anyone's choice,
just allow them to make all their choices at once by selecting
a copy of something already assembled and tested. 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.). This would be sort of like going to a car dealer
and picking out something you like, rather than the current
scheme of going to the factory and gathering up a set of parts
to assemble. But, the package system system should be able
to track updates and additions and merge them so that as the
expert maintains his master system and finds new additions that
help with its particular focus all of the people using the
package get the same improvement. The idea would be that anyone
who feels like he has built a system worth sharing could do
it without much additional effort so there would be a lot of
choices already tuned for the usual tasks.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
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: 19 May 2000 16:28:24 -0500
In article <[EMAIL PROTECTED]>,
JEDIDIAH <[EMAIL PROTECTED]> wrote:
>>>See http://www.pathname.com/fhs/
>>
>>Odd that it is a compressed pdf. Does anyone have netscape and
>>acrobat configured to read such a combination directly? Maybe
>>I'll just wait for the next revision.
>
> Sure... just set up one of the pdf readers as a Netscape helper app.
I have that - out of the box RH has that working with acrobat. But
it is not a .pdf, it is a pdf.gz.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
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: 19 May 2000 21:56:28 GMT
In comp.os.linux.misc brian moore <[EMAIL PROTECTED]> wrote:
: On 19 May 2000 14:54:20 -0500,
: As for your list specifically: KDE is not in Debian as it is not
: compatible with the GPL. What do you mean by 'server'? Web? Mail?
However, spiritually and emotionally speaking, it's a darn sight more in
debian than kde is in RH. There are also fine .deb's of KDE on KDE's site.
Peter
------------------------------
From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Subject: Re: linux kernel not C++ friendly?
Date: Fri, 19 May 2000 22:08:09 +0000
Mathias Waack wrote:
>
> Matthew Palmer wrote:
> > IIRC, the kernel would have issues with the linkage - there's a lot of stuff
> > your average C++ binary relies on which is not available in the kernel.
>
> Give examples.
Operators new and delete, exceptions and possibly others.
> > The question is, really, why develop a module in C++? You can write in an
> > object-oriented style in C if you really must, and I think that C is still
> > much more memory efficient (a *must* when you're dealing with memory which
> > can't be swapped out) that C++.
>
> No, it isn't.
>
> Some reasons why I would use C++ in a kernel module:
>
> 1. I must reuse existing code written in C++
But this is the kernel. To me it sounds like whatever code you have
should stay in user space where it can be written in any language
including C, C++, Pascal, Perl, Python or shell.
In kernel space all you should have is the simplest hooks into the
hardware to provide the minimal acceptable functionality to user space
where you can do whatever you want.
> 2. I must implement a bigger specification given in an OO form
Are you ABSOLUTELY SURE this is something that should be done in
kernel space instead of user space?
> 3. I'm a professional C++ programmer and I've never used C before
The kernel is written in C, not C++. If you've never written in
C before maybe you should learn C before hacking around inside the
kernel.
Erik
--
+-------------------------------------------------+
Erik de Castro Lopo [EMAIL PROTECTED]
+-------------------------------------------------+
The word "Windows" is a word out of an old dialect of the
Apaches. It means: "White man staring through glass-screen
onto an hourglass..."
------------------------------
From: [EMAIL PROTECTED] (brian moore)
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: 19 May 2000 22:46:58 GMT
On 19 May 2000 21:56:28 GMT,
Peter T. Breuer <[EMAIL PROTECTED]> wrote:
> In comp.os.linux.misc brian moore <[EMAIL PROTECTED]> wrote:
> : On 19 May 2000 14:54:20 -0500,
> : As for your list specifically: KDE is not in Debian as it is not
> : compatible with the GPL. What do you mean by 'server'? Web? Mail?
>
> However, spiritually and emotionally speaking, it's a darn sight more in
> debian than kde is in RH. There are also fine .deb's of KDE on KDE's site.
Yep, or at kde.tdyc.com.
--
Brian Moore | Of course vi is God's editor.
Sysadmin, C/Perl Hacker | If He used Emacs, He'd still be waiting
Usenet Vandal | for it to load on the seventh day.
Netscum, Bane of Elves.
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: inline-limit might be fun to try
Date: 19 May 2000 22:31:12 +0100
Eric Taylor <[EMAIL PROTECTED]> writes:
> The reason I questioned all this inlining was that in an effort to
> understand the kernel, I compiled
> it under an alternate C environment. I wanted to use a
> "browser" instead of "heavy grep-ing".
See http://lxr.linux.no/.
--
`Q: Why did they deprecate a.out support in linux?
A: Because a nasty coff is bad for your elf.' --- James Simmons
------------------------------
From: [EMAIL PROTECTED] (Victor Wagner)
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: 19 May 2000 18:44:01 +0400
In comp.os.linux.misc 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.
--
------------------------------
From: Erik Max Francis <[EMAIL PROTECTED]>
Subject: Re: Can compile with c++ but not with gcc
Date: Fri, 19 May 2000 16:37:15 -0700
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.
------------------------------
From: [EMAIL PROTECTED] (JEDIDIAH)
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: Fri, 19 May 2000 23:51:09 GMT
On 19 May 2000 18:44:01 +0400, Victor Wagner <[EMAIL PROTECTED]> wrote:
>In comp.os.linux.misc 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?
--
In what language does 'open' mean 'execute the evil contents of' |||
a document? --Les Mikesell / | \
Need sane PPP docs? Try penguin.lvcm.com.
------------------------------
From: Scott Sweeting <[EMAIL PROTECTED]>
Subject: Re: Linux Driver Development
Date: Fri, 19 May 2000 17:36:37 -0700
On Tue, 16 May 2000, Arnaud Westenberg wrote:
> Ben Lull wrote:
>
> > I have recently been getting interested in developping drivers for some
> > scanners which I've obtained. I'm not sure where to start. I don't see
> > much on the web for driver development. It would be appreciated if
> > someone could either post a tutorial on developing linux drivers in C or
> > some links where I can get information on developing drivers..
>
> Hi Ben,
>
> As someone noted in an earlier thread, the scanner drivers can be found
> through the SANE (Scanner Access Now Easy) project, however SANE itself
> isn't a driver. http://panda.mostang.com/sane/
AFAIK, SANE does not support parallel scanners. SCSI(2, I think) defines a
certain command set in order to support a generic scanner. Parallel, on
the other hand, makes no shuch provisions. It relies completely on the
vendor to provide a driver, usually with their own whacked-out command
set. I was very disappointed to find all this out. Needless to say, my
next system will be SCSI.
Scott Sweeting
[EMAIL PROTECTED]
------------------------------
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 01:47:26 GMT
On 19 May 2000 16:22:04 -0500, Leslie Mikesell <[EMAIL PROTECTED]> wrote:
>>As for your list specifically: KDE is not in Debian as it is not
>>compatible with the GPL.
>
>So clearly it would not suffice to be limited to Debian pacakges.
There are KDE debs. available, they just arn't included. Just add "deb
http://kde.tdyc.com slink kde" to your /etc/apt/sources.list file and you
can install kde debs just like you would the official debian packages.
> 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
--
Ray
------------------------------
From: Nic <[EMAIL PROTECTED]>
Subject: Re: sockets writev
Date: Sat, 20 May 2000 13:52:01 +1200
vinod tipparaju wrote:
>
> Hi
> usually when user sends something using a socket he used a single user
> buffer, can someone give me a application example that uses calls like
> writev, ie sends scattered data?
> tia
> vinod
Take a look at this simple example:
#include <stdio.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <string.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
char *one = "foo bar baz\n";
char *two = "baz bar foo\n";
struct iovec iov[2];
iov[0].iov_base = one;
iov[0].iov_len = strlen(one);
iov[1].iov_base = two;
iov[1].iov_len = strlen(two);
writev(STDOUT_FILENO, iov, 2);
return 0;
}
This will write "foo bar baz\nbaz bar foo\n" to stdout in one syscall.
HTH,
Nic.
--
J. Random Coder < sky at wibble dot net >
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
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: 19 May 2000 21:27:13 -0500
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? 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? What if source changes are done and things
recompiled? Can the package be rebuilt and loaded from
an alternate location on the copies?
Les Mikesell
[EMAIL PROTECTED]
------------------------------
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: David Steuber <[EMAIL PROTECTED]>
Date: Sat, 20 May 2000 05:00:02 GMT
[EMAIL PROTECTED] (brian moore) writes:
' The QPL requires software be free (as in free beer). It also requires
' you to submit any software you link with QT to them, even if it is not
' distributed and from the wording it seems that they want you to give
' them unlimited rights to even your own personal (again, non
' distributed) programs that you link to Qt.
It requires your software to be GPL, if you use the Qt Free Edition.
Naturally, if you don't like that, don't use Qt.
Perhaps the project idea requested should be a free C++ library that
does what Qt does. It should probably be a clone that you can build
KDE against. Otherwise, no one may want it.
--
David Steuber | Hi! My name is David Steuber, and I am
NRA Member | a hoploholic.
All bits are significant. Some bits are more significant than others.
-- Charles Babbage Orwell
------------------------------
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: David Steuber <[EMAIL PROTECTED]>
Date: Sat, 20 May 2000 05:00:03 GMT
"Anthony W. Youngman" <[EMAIL PROTECTED]> writes:
' And as a result of SuSE predating RedHat, SuSE rpms are incompatible
' with RedHat ones :-( I wish they'd switch to dpkg, but I bet there would
' be incompatibilities with Debian there too - for the same reasons -
' maintaining backwards compatibility breaks sidewards compatibility :-(
It is the RPM BS that has caused me to abandon that format whenever
possible. Instead, I prefere to install software from source.
Packages that conform to the ./configure, make, make install mantra
are easy to build and put where you want them. You don't have to
worry about dependencies because ./configure should discover if
required libraries can not be found.
Granted, this is not the way most users want to operate. But until
all the distros adhere to the FHS strongly enough and stop adding
their own hacks (patches) to the code, this is the most reliable way
to go.
I've even updated GCC and libc this way. That took a while on my
hardware.
--
David Steuber | Hi! My name is David Steuber, and I am
NRA Member | a hoploholic.
All bits are significant. Some bits are more significant than others.
-- Charles Babbage Orwell
------------------------------
** 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
******************************