Linux-Development-Sys Digest #732, Volume #7 Mon, 3 Apr 00 05:13:22 EDT
Contents:
pthread help!!! (Michael A Uman)
Re: Need a good book or document for x86 __asm__ syntax! ("Morton, Andrew
[WOLL:4009-M:EXCH]")
Re: not able to get changes after kernel build ([EMAIL PROTECTED])
Re: Doing dead function elimination without -finline-functions in (Graham Stoney)
Re: How compatible is Linux with .. Linux ("Peter T. Breuer")
Re: Bash compile errors please help ([EMAIL PROTECTED])
Re: How compatible is Linux with .. Linux ("Peter T. Breuer")
Re: Help with ostringstream... (Anders Larsen)
changing system resource : shared mem, semaphone, msgmax
Re: Help with ostringstream... (Tom Leete)
Dynamic class instanciation using modules (Thomas Lefort)
Re: pthread help!!! (Mathias Waack)
Re: How compatible is Linux with .. Linux (Armin Steinhoff)
Re: How compatible is Linux with .. Linux (Armin Steinhoff)
Re: How compatible is Linux with .. Linux (Marijn Vriens)
----------------------------------------------------------------------------
From: Michael A Uman <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.c-programming
Subject: pthread help!!!
Date: Mon, 03 Apr 2000 04:52:40 GMT
Hello,
Does anyone know if there is a way to spawn a thread which is
'suspended' in the sense that Win32 has Suspended threads which can be
resumed? I am trying to port a library which is currently supported on
Win32 and Macintosh.
Thanks,
Michael Uman
mailto:[EMAIL PROTECTED]
------------------------------
From: "Morton, Andrew [WOLL:4009-M:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: Need a good book or document for x86 __asm__ syntax!
Date: Mon, 03 Apr 2000 05:13:24 +0000
Bryan Hackney wrote:
>
> Rocky Lin wrote:
> >
> > I found some x86 assembly instructions of __asm__ section in kernel files.
> > And there
> > is some explain of the syntax in Documents/excepation.txt.
> > But I do need a good book or some documents for detail explan of the syntax.
> > Woudl you please help me?
> >
> > Thanks and Best Regards,
> > Rocky.
>
> Start here:
>
> http://www.gnu.org/software/gcc/onlinedocs/gcc_4.html#SEC96
Also, be sure to read Colin Plumb's words on the use of gcc asms in the
kernel.
http://www.google.com/keyword/keyword/%3Fcolin%20plumb%20gcc%20assembly
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: not able to get changes after kernel build
Date: Mon, 03 Apr 2000 05:22:58 GMT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote:
> >
> > Hello,
> > In kernel's(2.2.12) source there is file /net/ipv4/protocol.c which
> > includes one routine called inet_get_protocol. But
> > the /include/net/protocol.h have no prototype for the same. Because
of
> > which I am not able to use this routine. To make use of this I have
> > inserted the same into .h file and rebuild the kernel. After this
also
> > I am getting the error as 'inet_getprotocol symbol not found'. Can
> > anyone tell me how to do this ?
> > Thanks in advance,
> > Bhagyashree
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
> After a kernel compile, you might want to make sure that your
> /usr/src/linux/System.map file is copied to the right place, usually
> /boot/. If you already have a System.map file that is located in the
> search path, and occurs before /boot/ (I think the root itself, "/",
> applies), then you'll need to remove the old one, preferably by
> backing it up or gzipping it (an easy way to deactivate, store, and
> preserve, all in one step).
>
Thank you for your reply, actually what I found there is one more file
which exports all symbols and need to be modified. This file
is /usr/src/linux/net/netsysms.c. After that there is no problem.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Graham Stoney <[EMAIL PROTECTED]>
Crossposted-To: gnu.gcc.help,comp.os.linux.powerpc
Subject: Re: Doing dead function elimination without -finline-functions in
Date: 3 Apr 2000 06:14:22 GMT
Graham Stoney wrote:
> I'm trying to eliminate functions in each .o which never get called.
In article <[EMAIL PROTECTED]>,
Etienne Lorrain <[EMAIL PROTECTED]> wrote:
> Compile with GCC option -ffunction-sections, which put every functions
> in their own section, rewrite the linker description file to put all
> sections ".text.<functionname>" in the ".text" segment, and more important
> "ask to binutil" / "send them a patch" to accept the flag --gc-section
> for the i386 target and process it as it is documented (ld manual).
Has anyone managed to get -ffunction-sections to work in the Linux kernel on
a PowerPC system? It looks like what I want, but I can't get it to fly.
I've added it to CFLAGS, and added a line to arch/ppc/vmlinux.lds in the
.text section saying:
*(.text.*)
However, it won't link without --gc-section in LINKFLAGS, and with --gc-section
in LINKFLAGS, it generates a tiny vmlinux file which nm won't even recognise.
Any more suggestions?
Thanks,
Graham
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: How compatible is Linux with .. Linux
Date: 3 Apr 2000 07:12:40 GMT
In comp.os.linux.development.system Lee Webb <[EMAIL PROTECTED]> wrote:
: So does this mean that you are only a good programmer, or worthy of a decent
: (and respectful) reply, if you're on the Kernel list?
It means that I am probably exposed to more information than you. And I am
not exactly kidding!
: Come on...let's quit this - everyone has a right to post to these newsgroups (be
: they seasoned programmers, accomplished designers or NEWBIES), so don't try to
: make others feel inferior or less capable than yourself.
I'm not. As usual, the perception is in the eye of the beholder. This
ascii might have been written by a computer ...
: One as "developed" as yourself should realise that everyone has to start from
: somewhere. It's hard enough doing so without getting cut-down for posting (what
: ONE indiviual) believes to be irrelevant or ridiculous.
: Believe me, I'm not doubting for one moment that you don't know what you're
: talking about, but a little respect doesn't hurt..
I don't mind what you think I know or don't know. As to respect: it's
hard to earn. And I for one will always respect truthfulness when I see
it! I personally don't have anything but repulsion for "consensus"
(i.e. smarminess) if it implies the corruption of honest speaking, and
I believe it does. So, while I'm entertained by the proposed amendments
to my initial post, I really don't feel that there is any worthy end to
be served thereby. Those who object seem to be worried by the use of
two words: naive, ignorant. They seem to me to have been correctly
applied. There is no stigma attached to them. They simply describe
the situation.
Peter
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Bash compile errors please help
Date: Mon, 03 Apr 2000 07:09:45 GMT
Downloaded the bash 2.04 archieve, unpacked and configured using
configure --enable-static-link.
It gives the same errors.
If this is not really a c.o.l.d. matter kindly redirect me to the
correct forum
Thanks in advance.
R.O.Jadhao
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> In article <8c466q$n4q$[EMAIL PROTECTED]>, [EMAIL PROTECTED]
wrote:
>
> [Note: this is not really a c.o.l.d.system matter.]
>
> > I have downloaded bash-2.03 archieve from ftp site. I unpacked it on
> > the machine running Redhat 6.1. The configured it
with './configure --
> > enable-static-link' command.
> [...]
> > In file included from shell.h:37,
> > from shell.c:53:
> > externs.h:131: conflicting types for `strncasecmp'
> > /usr/include/string.h:266: previous declaration of `strncasecmp'
> > externs.h:138: conflicting types for `gethostname'
> > /usr/include/unistd.h:733: previous declaration of `gethostname'
> > externs.h:146: conflicting types for `setlinebuf'
> > /usr/include/stdio.h:242: previous declaration of `setlinebuf'
> > make: *** [shell.o] Error 1
> > Then I transferred the archive on another machine running RedHat 6.0
> > where I followed the same sequence and it compiled without any
trouble.
> > I want to compile it on the machine running redhat 6.1.
> > What is wrong? Both machines have gcc 2.91.66.
>
> I believe that RH6.0 and RH6.1 use different versions of the C library
> (glibc). The newer version probably has corrections that the bash
source
> code doesn't know about. (If you read C, take a look at the referenced
> lines.)
>
> I don't know why the bash source code needs to have its own function
> prototypes, but perhaps it is for compatibility with old, wacky
systems.
> In any case, there is a recent bash-2.04 that may compile more
cleanly with
> current glibcs.
>
> --
> Paul Kimoto <[EMAIL PROTECTED]>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: How compatible is Linux with .. Linux
Date: 3 Apr 2000 07:23:41 GMT
In comp.os.linux.development.system [EMAIL PROTECTED] wrote:
: There are people that are so "dramatically intelligent" that they are
: virtually unable to communicate with other people. The level of thought
: involves abstractions that aren't easy to put into words.
Oh, certainly. A person has to be roughly on a par with their cohorts
to be able to communicate meaningfully. It's hard talking about
measurable cardinals with most people, for example (measurable
cardinals are sets which support an interal model of ZF set theory
and thus can't be proved to exist or not exist, since that would
prove or disprove consistency of ZF and thereby arithmetic, which can't
be done since that's been proved impossible to prove, if arithmetic is
consistent).
Whe talking about software, one has to talk to ones equals. Or you'll
get back replies at cocktail-party level.
: In contrast, your responses have been so flavored with distain and
: disrespect as to hide the other value of what you've suggested.
Interesting. That is your opinion. I can tell you that I have neither
disrespect nor disdain for the person invlved, whom I do not know.
We may get on well, for all I know.
:>in question can't be worth much or a more technically rehearsed
:>person would have been placing the question, no? You'd expect a
:>responsible architect or group leader would have asked for directions to
:>the policy documents of the various distros, and contact points! Well,
:>they wouldn't even have asked on the newsgroup at all. Can you imagine
:>a person who has to organize and design software asking about libraries
:>and being unaware of configuration file placements, compiler issues,
:>standards, policies ...?
: Give them a *bit* of benefit of doubt. They may have tried out
: a Red Hat Linux CD install, and ported the software to run there.
: And are now wondering how to deploy the software more widely.
Why? All they have to do is fork out the $5 to cheapbytes and try SuSE
and Debian next. They can't seriously be planning to distribute their
software after receiving hearsay advice via newsgroups as to whether it
will work or not!
Peter
------------------------------
From: Anders Larsen <[EMAIL PROTECTED]>
Subject: Re: Help with ostringstream...
Date: Mon, 03 Apr 2000 09:35:07 +0200
Michael A Uman wrote:
>
> Does anyone know where in the Linux libraries the 'ostringstream' class
> is defined? I cannot find it in the GNU gcc include files.
/usr/include/g++-2/strstream.h
BTW, the class is called "ostrstream", not "ostringstream" (perhaps that's
the reason you didn't find it).
--
Anders Larsen
------------------------------
From: <[EMAIL PROTECTED]>
Subject: changing system resource : shared mem, semaphone, msgmax
Date: Mon, 03 Apr 2000 07:30:09 GMT
Hi !
I'm using Red Hat 6.1 and wanting to change the value of the following
parameters :
msgmax
msgmnb
semmni
shmmni
What is the best way to change them ?
I tried chaning sem.h, msg.h and shmparam.h and reconpiled the kernel, but
this new kernel doesn't boot and give me the following message :
"ran out of input data"
Pls help me !
Thanks;
Thet
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
Date: Mon, 03 Apr 2000 03:36:23 -0400
From: Tom Leete <[EMAIL PROTECTED]>
Subject: Re: Help with ostringstream...
Michael A Uman wrote:
>
> Does anyone know where in the Linux libraries the 'ostringstream' class
> is defined? I cannot find it in the GNU gcc include files.
>
> Please advise?
>
> Thanks,
> Michael Uman
AFAIK, C++ ostringstream is unimplemented. g++ libio has not
really digested the new iostreams yet. I might be out of
date on this.
Perhaps you can make do with ostrstream, from strstream.h.
Though deprecated, it's available.
--Tom
------------------------------
From: Thomas Lefort <[EMAIL PROTECTED]>
Subject: Dynamic class instanciation using modules
Date: Mon, 03 Apr 2000 09:02:00 +0200
Here is my problem. I'd like to obtain - at run time - some instances of
certain C++ classes, that all extend a common, statically known
superclass. The point is that the system should be able to load any such
subclass at run time, use instances of it as instances of the
superclass, and still dynamically resolving virtual methods invocations.
So, I thought of modules featuring :
- the subclass implementation
- a single entry point that calls the subclass constructor, and returns
a pointer on the corresponding superclass instance.
Given the name of a class module, I would call a dynamic linker to
obtain a call gate for its entry point, then get my instances.
Now for the implementation side :
- It appears that the usual shared library system can't do the job.
Indeed - as far as I understood it - it requires knowledge of the
library name at build time, and does not support simultaneous equivalent
libraries.
- The kernel module system, however, seems to make much more sense in
this context. I think one could easily enough turn the code of the
kernel linker into a DLL API. As my needs are not so unusal, I thought
some fellows might have written such stuff already.
- An alternative solution would consist of using an ORB, such as Corba,
and having the superclass feature some facilities for a subclass to
register as a distinctly named, remotely accessible service.
Unfortunately, it happens that my project is also intended for real-time
and will certainly consume lots of system resources per se, so that I
can't afford the lag and overload most ORB implementations cause.
As a conclusion, my preferred choice would be a module system based on
the Linux kernel's one. What about it ? Can you provide me links or
advice about this topic ?
Thank you
TL
------------------------------
From: Mathias Waack <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.c-programming
Subject: Re: pthread help!!!
Date: Mon, 03 Apr 2000 10:15:41 +0200
Michael A Uman wrote:
> Does anyone know if there is a way to spawn a thread which is
> 'suspended' in the sense that Win32 has Suspended threads which can be
> resumed? I am trying to port a library which is currently supported on
> Win32 and Macintosh.
I don't know about W**** programming, but you can "suspend" a thread
by calling "pthread_cond_wait" and "resume" it by calling "pthread_cond_signal".
HTH
Mathias
------------------------------
From: Armin Steinhoff <Armin@Steinhoff_de>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: How compatible is Linux with .. Linux
Date: 3 Apr 2000 00:40:45 -0700
In article <[EMAIL PROTECTED]>, "H. says...
>
>Hi
>
>My company is currently finishing its product on Red Hat 6.1.
>Given the multiplicity of Linux versions, we are worried about
>distributing our product on Linux in general.
>
>You out there that have already gone this route, could you please
>share your experience:
>
>- How compatible are Linux versions between vendors on the executable
>format (a.out), and on the object format (.o) ?
Tey are least compatible at source code level ... so move your project to
the specific target distribution and recompile.
>On what Linux versions will a pre-link on RedHat 6.1 link and execute correctly
>?
Doesn't depend on the target distribution ...
>- How does one measure this compatibility (egcs version? glibc
>version? xf86 version?)
Hmm ... is M$ Windows compatible with M$ Windows ?? How do you measure the
compatibility between Win 3.1, Win95, Win98, NT 3.5, Nt4.0 and Win 2000 ??
>- How general is the rpm packaging format for the release?
100% !!
Regards
Armin Steinhoff
------------------------------
From: Armin Steinhoff <Armin@Steinhoff_de>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: How compatible is Linux with .. Linux
Date: 3 Apr 2000 00:43:33 -0700
In article <[EMAIL PROTECTED]>, Tor says...
>
[ clip ..]
>
>Most likely on every Linux distribution you can find. You would want
>to test it on at least the major classes of distributions, as laid out
>in the following hierarchy:
>
> - RedHat 6.0 and above, plus derivatives:
> - ManDrake 7.0
> - Caldera OpenLinux
> - SuSE Linux
I don't believe that SUSE Linux is a drivate from RedHat 6.0 ...
Regards
Armin
------------------------------
From: [EMAIL PROTECTED] (Marijn Vriens)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: How compatible is Linux with .. Linux
Date: 3 Apr 2000 08:14:43 GMT
Reply-To: [EMAIL PROTECTED]
On 2 Apr 2000 21:39:14 GMT, Peter T. Breuer <[EMAIL PROTECTED]>
wrote:
>In comp.os.linux.development.system Kaz Kylheku
<[EMAIL PROTECTED]> wrote:
>: On 2 Apr 2000 20:17:06 GMT, Dr H. T. Leung <[EMAIL PROTECTED]> wrote:
>:>
>:>Sorry, I totally agree with the rest of your post about the fact that it is
>:>really just glibc version plus kernel version, plus other shared library
>:>dependency, that is relevant for the compatibility.
>
>: Actually it's not *quite* so simple as I implied; there is also the issue of
>: what compiler was used to build the libraries. Arguably, a glibc-2.1.2 built
>: with, say, gcc 2.91 is not the same library as glibc-2.1.2 built with, say gcc
>: 2.95, unless shown otherwise.
>
>There's also the horrible issue of C++ binary compatibility. Same
>libraries different compiler can ruin your day.
>
>And then we get onto minor version differences (aka bugs). I'm having
>a wonderful time trying to get jdk 1.2 work with anything on
>everything. I can get it 95% of the way, then ld.so, glibc minor
>version, and crossing your fingers, kicks in as to whether it works or
>not.
>
>And as to PATHS, aaaaargh.
>
>Peter
And thus we have concluded that Linux is made for programs that come
in sourcecode so that users can do the
./configure
make all
make install
routine.
Any software maker wanting to deign users of the source code, will not
only price in public prestige, but also have bigger and slower
applications because of the need to statically link all libraries.
Open source has yet an other leg up as a software development
methodology. Which is fine :).
Marijn
--
Marijn Vriens <[EMAIL PROTECTED]>
Get my GPG/PGP key by sending me an email with "getkey" as subject.
Key fingerprint: 6895 DF03 73E1 F671 C61D 45F4 5E83 8571 C529 5C15
For every complex problem,
there is an answer that is clear, simple and wrong.
------------------------------
** 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
******************************