Linux-Development-Sys Digest #106, Volume #7     Wed, 25 Aug 99 12:13:51 EDT

Contents:
  ld error: cannot open crt1.o ("Lim, Sung-taek")
  ANNOUNCE: 6. International Linux Kongress starting in two weeks ("Jens Chr. Bachem")
  Re: does linux have a package for drawing block diagrams ? (Ray Cadmus)
  Re: why not C++? (Thomas Boggs)
  Re: Cingle User - Kiosk Mode (Tristan Wibberley)
  Re: why not C++? (Johan Kullstam)
  Re: Jesus: the ultimate OS (Tim Kelley)
  Re: glibc-2.1.1 problems (Andreas Jaeger)
  Re: Jesus: the ultimate OS (Frank Sweetser)
  Re: why not C++? (Kaz Kylheku)
  Re: Linux on embedded systems: question on memory footprint (Dan Mills)
  Re: PROPOSAL: A secure, simple NIS replacement ([EMAIL PROTECTED])

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

From: "Lim, Sung-taek" <[EMAIL PROTECTED]>
Crossposted-To: gnu.gcc.help
Subject: ld error: cannot open crt1.o
Date: Wed, 25 Aug 1999 21:27:16 +0900

Hello.
I'm using Redhat Linux 6.0 and builded binary utilities and gcc for
arm-targeted
and installed at /usr/local/arm-linux/ with prefix 'arm-linux-' (As you see
I'm
building cross-compile tools)
When I execute arm-linux-gcc to compile a simple C program, it complains
that
it cannot open crt1.o. It is reasonable because I haven't installed glibc
for arm.
I managed to compile and install glibc. Now I can see glibc files including
crt1.o
located in /usr/local/arm-linux/lib.
But arm-linux-gcc again complains that it cannot open crt1.o! What's wrong?
Can anyone help me?
Thank you for your help in advance.

--
Lim, Sung-taek
[EMAIL PROTECTED]
http://poppy.snu.ac.kr/~totohero/



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

From: "Jens Chr. Bachem" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.advocacy,comp.os.linux.alpha,comp.os.linux.development.apps,comp.os.linux.hardware,comp.os.linux.m68k,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.portable,comp.os.linux.powerpc,comp.os.linux.setup,comp.os.linux.x
Subject: ANNOUNCE: 6. International Linux Kongress starting in two weeks
Date: 25 Aug 1999 14:21:23 GMT
Reply-To: [EMAIL PROTECTED]


6th International Linux Kongress starting in two weeks
======================================================

The 6th Linux Kongress will take place from September 8th to 10th
at the University of Augsburg (Neue Universit�t, H�rsaalgeb�ude,
Universit�tsstra�e 10, Augsburg).

The program has been completed in the meantime and continues the 
high standard of the last years. Program schedule and abstracts
can be found on our web server:

        http://www.linux-kongress.de/program.html

Visitor registration is available online:

        http://www.linux-kongress.de/registration.html

There will be an exhibition by companies with Linux-related products
at the Kongress:

        http://www.linux-kongress.de/exhibition.html

We are still looking for sponsors helping us with the speakers travel
expenses or supporting the Social Event:

        http://www.linux-kongress.de/sponsoring.html

Please feel free to direct any questions regarding the Kongress to
<[EMAIL PROTECTED]> or the GUUG office (see address below).

The Kongress Team

GUUG Office
Elsenheimerstra�e 61
80687 M�nchen
Germany
Phone: +49 89 5707697
Fax: +49 89 71019582


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

From: Ray Cadmus <[EMAIL PROTECTED]>
Subject: Re: does linux have a package for drawing block diagrams ?
Date: Wed, 25 Aug 1999 07:49:19 -0500

dan wrote:

> i need to be able to draw block diagrams, data flow diagrams, etc
> to document the software i write for work (bummer!)
> is there a software package for linux (rh6.0) that does that sort of
> thing ?
>
> thanks,
> dan

Try DIA at:

http://www.lysator.liu.se/~alla/dia/dia.html



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

From: Thomas Boggs <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: why not C++?
Date: Wed, 25 Aug 1999 08:40:21 -0500

Tristan Wibberley wrote:

> Kaz Kylheku wrote:
> >
> > On Wed, 25 Aug 1999 00:19:57 +0100, Tristan Wibberley <[EMAIL PROTECTED]>
> > wrote:
> > >A general operator syntax, now that would be nice :)
> > >
> > >
> > >  C = A `x B;  // cross product
> > >  C = A `. B;   // dot product
> >
> > Why not just overload, say * for the dot, and % for the cross?  There is no
> > shortage of operators.
>
> The asterisk would be reasonable for dot, but I'd prefer it for the
> cross. Whether modulo division could be meaningful for vectors and
> matrices I'm not sure, but to me, the C modulo division operator is for
> modulo divisions.
>

I'm in agreement here.  I had to make that decision for myself a while ago.  Using
the asterisk for cross products makes equations appear more 'natural'.  Also, you
probably want to be able to pre and post-multiply vectors by scalars, for which you
will probably want to use an asterisk.  Rather than redefining another operator for
the dot product, I just use a friend function (c = Dot(a,b)) since you can only take
the dot product of 2 vectors at a time anyway.

-thomas


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

From: Tristan Wibberley <[EMAIL PROTECTED]>
Subject: Re: Cingle User - Kiosk Mode
Date: Wed, 25 Aug 1999 00:06:10 +0100
Reply-To: [EMAIL PROTECTED]

Eric Hegstrom wrote:
> 
> Hi All:
>   I have a kiosk type application I want to run under X when my machine
> boots up (no keyboard to use for logging in). I was able to clone the
> single user mode (run level 1) stuff into a new runlevel( number 8) that
> loads up all the services. I have set up the initdefault to 8 so it
> starts up in the runlevel.
> 
>   So now the machine boots to the a single user mode with all the
> services running to the bash# prompt.  The working directory is /.
> Unfortunately the .bashrc or .bash_profile in that directory are not
> automatically executed. I have started playing with the init source code
> and can set up environment variables but still can't figure out how to
> make this bash run a file at startup.

You shouldn't use single user mode for a kiosk. You should alter your
boot scripts to run

su --login kioskuser

instead of login after you've added a special user called 'kioskuser'.
Now you'll have the normal system but which logs in as kioskuser without
user interaction.

Then you put:

startx
exit

at the end of ~kioskuser/.profile

This will then start the X server.

-- 
Tristan Wibberley

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

From: Johan Kullstam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: why not C++?
Date: 25 Aug 1999 09:18:45 -0400

[EMAIL PROTECTED] (Kaz Kylheku) writes:

> On Wed, 25 Aug 1999 00:19:57 +0100, Tristan Wibberley <[EMAIL PROTECTED]>
> wrote:
> >A general operator syntax, now that would be nice :)
> >
> >
> >  C = A `x B;        // cross product
> >  C = A `. B;   // dot product

> Why not just overload, say * for the dot, and % for the cross?
> There is no shortage of operators.

1) the classic C operators come with baggage of user expectation.
   e.g., making * do subtraction and / be concatenation might be
   confusing.  having @ do anything wouldn't be as surprising.

2) C++ has the old C operator precedence table.  if you wish to define
   a new product, it ought to act like a product and take precedence
   over addition.

3) how do you add a new operation to the existing natural types such
   as int?  [1]

[1] yes, you could make a new class containing only an int and
    overload say '+' for that new class.  then by casting you could
    invoke the new operation.  imho this seems to be a perversion.
    neither would it add any operation to int.

-- 
johan kullstam

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

From: Tim Kelley <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: Jesus: the ultimate OS
Date: Wed, 25 Aug 1999 08:19:48 -0500

"Christopher R. Thompson" wrote:
> 
> Paul E. Lehmann wrote:

> > If you believe that such an individual actually existed then it can be said
> 
> I do. You hear his name every day many times a day. How can it possibly
> be a figment of so many peoples imaginations. I think your mind is
> playing tricks on you!

Ahh yes, the little voices in your head.  Telling you to spam
newsgroups yelling about god and other fairies.  *My* mind is
playing tricks on me?  

>> that he was rather fond of the juice of the grape, could quite possibly have
> 
> St. MaT 11:18 "The Son of man came eating and drinking, and they say,
> Behold a man gluttonous, and a winebibber, a friend of publicans and
> sinners. But wisdom is justified of her children." Jesus speaks for
> himself. See also Mt 9:10 and Luke 7:34
> 
> > been gay, practiced the arts of a magician and had extreme contempt for non
> 
> Not possible and totally inaccurate.
> Christians are not allowed to look to magicians, scientists,
> astrologers, soothsayers, etc, for any kind of direction or indirection
> but to GOD only.

Where is it in the bible that jesus had sex?  Why didn't he?

--
Tim Kelley
[EMAIL PROTECTED]

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

From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: glibc-2.1.1 problems
Date: 25 Aug 1999 16:06:27 +0200

>>>>> Mike Dowling writes:

Mike> On 24 Aug 1999 11:59:32 +0200, Andreas Jaeger <[EMAIL PROTECTED]> wrote:
>>>>>>> Mike Dowling writes:
>> 
Mike> On the Pentium PC, I even had problems compiling glibc.  For a start,
Mike> the configure script usually could not discern the type of system I had,
Mike> so I had to include --host=i586-pc-linux-gnu as a parameter to the
Mike> configure script.  When this happened, the sources would compile, but

>> You can run config.guess by hand or with sh -xv to see what goes
>> wrong.  I advise to resolve this first.

Mike> After installing kernel 2.2.11, these problems disappeared; configure
Mike> now always guesses the system type correctly.

>> How did you call configure?

Mike> ./configure --prefix=/usr --disable-nls 
--with-add-ons=crypt,linuxthreads,localedata

I advise to not build in the source directory, read the INSTALL file.
Btw. --disable-nls is useless, the option is call
--enable-add-ons=... and localedata is always included.  Just use
--enable-add-ons to use all that you have.

Mike> [...]
Mike> the "make install" crashes with something like
>> 
Mike> test ! -x /usr/src/glibc-build/elf/ldconfig | l \
Mike> /usr/src/glibc-build/elf/ldconfig -d /lib /usr/lib
>> 
Mike> whereupon I get the error message
>> 
Mike> /bin/sh: error loading shared libraries:
Mike> /bin/sh: undefined symbol: __setfpucw
Mike> The supposition was correct; glibc-2.1.1 was now completely installed.
Mike> This is the last command of the install script.

>> Please try the following:
>> - Install into a temporary directory with make install
>> install_root=/tmp/glibc
>> - play around in this temporary directory with (see FAQ 3.18):
>> LD_LIBRARY_PATH=/tmp/glibc/lib /tmp/glibc/lib/ld-linux.so.2 /some/binary
>> and check if this works - or not.

Mike> Done.  The installation process proceeds to the bitter end.  I set the
Mike> LD_LIBRARY_PATH, and set the symbolic link for /lib/ld-linux.so.2 to
Mike> point to ld-2.1.1.so in the temporary directory.  The effect was exactly
Then don't do it.  Is it so difficult to follow exactly my
instruction?
Mike> as is was when I installed directly into /lib, namely that virtually all
Mike> binaries exit with the undefined symbol: __setfpucw.

>> If you're confident that everything is ok, tar/cpio the temporary
>> directory to it's permanent place.

Mike> Unfortunately, everything was not all right.  The undefined __setfpucw
Mike> symbol is a darned nuisance!

__setfpucw is an internal symbol of glibc, none of your binaries
should use it (see FAQ 3.12). Please check which binary/library wants
__setfpucw -- and why -- and rebuild those first.

Andreas
-- 
 Andreas Jaeger   [EMAIL PROTECTED]    [EMAIL PROTECTED]
  for pgp-key finger [EMAIL PROTECTED]

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

From: Frank Sweetser <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: Jesus: the ultimate OS
Date: 25 Aug 1999 10:17:41 -0400

"Christopher R. Thompson" <[EMAIL PROTECTED]> writes:

> Actually the reason I was looking here was to find out if anyone was
> working on a parallel file system for linux beowulf's. When I saw this

heck, is that all you're looking for?  search for GFS at freshmeat.net 

-- 
Frank Sweetser rasmusin at wpi.edu fsweetser at blee.net  | PGP key available
paramount.ind.wpi.edu RedHat 5.2 kernel 2.2.5        i586 | at public servers
If you want to be a hacker, keep reading. If you want to be a cracker, 
go read the alt.2600 newsgroup and get ready to do five to ten in the 
slammer after finding out you aren't as smart as you think you are. 
And that's all I'm going to say about crackers. 
               - _How To Become a Hacker FAQ_, by Eric S. Raymond

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: why not C++?
Date: Wed, 25 Aug 1999 15:20:54 GMT

On 25 Aug 1999 09:18:45 -0400, Johan Kullstam <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] (Kaz Kylheku) writes:
>
>> On Wed, 25 Aug 1999 00:19:57 +0100, Tristan Wibberley <[EMAIL PROTECTED]>
>> wrote:
>> >A general operator syntax, now that would be nice :)
>> >
>> >
>> >  C = A `x B;       // cross product
>> >  C = A `. B;   // dot product
>
>> Why not just overload, say * for the dot, and % for the cross?
>> There is no shortage of operators.
>
>1) the classic C operators come with baggage of user expectation.
>   e.g., making * do subtraction and / be concatenation might be
>   confusing.  having @ do anything wouldn't be as surprising.

Clearly, there are some cases of overloading that a majority of C++
programmers will find objectionable. 

But what meaning would you expect of % between two vectors? I don't
see any possible confusion.

Unfortunately, @ isn't in the basic translation time character set of C++. I
recall, perhaps wrongly, that Objective C uses this character to introduce
conforming extensions.

>2) C++ has the old C operator precedence table.  if you wish to define
>   a new product, it ought to act like a product and take precedence
>   over addition.

Are you saying that % doesn't? It has the same precedence and associativity as
the binary * and / . 

>3) how do you add a new operation to the existing natural types such
>   as int?  [1]

You can't. Only class types can have overloads.

>[1] yes, you could make a new class containing only an int and
>    overload say '+' for that new class.  then by casting you could
>    invoke the new operation.  imho this seems to be a perversion.
>    neither would it add any operation to int.

In C++, you don't have any choice. If you want to overload, you need a class
type.  You might use a typedef name instead of int; then a subsequent decision
to change the typedef name to a class type should be relatively painless.

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

From: Dan Mills <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.help
Subject: Re: Linux on embedded systems: question on memory footprint
Date: Wed, 25 Aug 1999 15:55:00 +0100

In comp.os.linux.help Steve Houseman <[EMAIL PROTECTED]> wrote:

> Playing around (a dangerous thing) with linking shows that when
> a (shared) library is linked and something is needed , then the whole
> shebang is loaded not just the fn you want , so I *believe* that
> the RSS  reported by top is just the data segment of the prog
> with all the  lib vars in it (libc is much larger than that) ??
> I could be wrong on this and would welcome comments and urls for this.

What actually happens is that when the function in the library is 
called for the first time a page fault is generated and the page 
containing that function is mapped into your processes address 
space. This may involve loading the page off disk or may simply 
involve setting up a shared read only  (copy on write) mapping. It 
is not normal for the whole libc to be in ram, and it would be very 
uncommon for any one task to map the whole thing into its address 
space. It does however mean that the smallest unit of memory that is 
mapped into any process address space is one page (4KB on X86)

For ELF files the RSS is:
Code + Data + Stack + Shared pages!

> So if you have a small app not linked with other code
> and which  only used a small seg of lib c , then could
> extract the bits from the libc source and compile them,
> and link them as above .

You can also make syscalls without going through libc 
(trap through 0x80).

> (I dont know the licence aspects of this though.)
> As someone posted recently on a similar topic,
> there are potential problems if calling other code eg a database
> client or maybe even X as they would expect libc to be available.

Nope... These processes will run in their own address space and will 
map the bits of libc they need into it. However if doing this there 
is nothing to be gained from not using libc as it will be loaded by 
the other program running on the system anyway. 
By calling other code I assume you mean IPC of some form, I am unsure 
what would happen if you a libc based library linked with your program, 
libc would probably crash due to the setup routines not being run.  
X would be no problem as it comunicates with your code via sockets, 
however motif, GTK or whatever might be......


> Just experimented with an extended sleep , and run up a few
> netscapes so am using 20Mb of 100Mb swap partition and left
> running for a while, but the RSS size of zz6 does not come down
> and I dont believe that it is using actively  192 kb ...
> on a real unix <ducks> this would have disappeared ie would
> have been paged out and the RSS value would have gone
> almost to zero ...  

The RSS size indicated for an ELF binary includes the shared library 
pages mapped to that process, as most of that 192KB is probably
shared with netscape, X, WM.... (It is probably shared C library),
it cannot be paged out because other apps are using it.
Note this does not mean that sleep is 192K!!!!

> so linux does not seem to do its
> paging correctly (or at least the same as other unices ... pity).

Linux pages just fine, but RSS for an elf binary means somthing 
different to what it means for an a.out binary.   

Hope this helps.

Regards, Dan.
-- 
The email address **IS** valid, you do **not** need to remove spamblock!
And on the evening of the first day the lord said....
... 'LX 1, GO!!' and there was light!

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.security.unix
Subject: Re: PROPOSAL: A secure, simple NIS replacement
Date: Wed, 25 Aug 1999 14:43:01 GMT



  [EMAIL PROTECTED] (Jonathan Abbey) wrote:

> There have been several NIS-type ideas implemented... NIS, NIS+,
> Kerberos/Hesiod, and the netinfo stuff that NeXT used.  We still use
> NIS for almost everything because of the ubiquity of it, but a lot of
> people are moving to LDAP for this sort of thing.

NIS, NIS+, Kerberos/Hessiod and LDAP all have the same problem. I
already have a user list on my system in some fashion. Its either in the
passwd file, or broken out (e.g. shadow passwords), and I don't WANT to
maintian another database.

Don't know about netinfo. My idea was simply this: distribute
/etc/passwd information on UNIX systems without compromising security
(the way NIS does). The very complex ideas cited by others miss this
point. I don't want something that can slice my vegetables, I want a
distributed /etc/passwd in as small an amount of code as possible.

                        -AJS


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

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


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