[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FW: pthreads
From: |
Paul Pluzhnikov |
Subject: |
Re: FW: pthreads |
Date: |
31 Jul 2004 17:25:14 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
"Michael D. Berger" <m.d.berger@ieee.org> writes:
> > > Further, static linking of executables on any UNIX is a bad idea(TM).
> > >
> > I would be interested in hearing why this is.
On some systems, e.g. AIX, the system call interface is *sepcified*
at the libc level. If you statically link on AIX x.y.z, your
executable may not work at all on AIX x.y.(z+1).
Other systems, e.g. Solaris allow for backward compatibility of
dynamically-linked executables: executables linked on Solaris 2.0
(and even on SunOS 4.x), continue to work just fine on Solairs 2.9.
No such promises are made for statically-linked executables.
Finally, on Linux statically-linked executables that use locales or
NIS/DNS may not work across even subminor revisions of glibc. The
newer versions of glibc warn about it:
$ gcc -static ghb.c
/tmp/cczwCINr.o(.text+0x31): In function `main':
: warning: Using 'gethostbyname' in statically linked applications
requires at runtime the shared libraries from the glibc version
used for linking
> Sorry, I meant this to go to the list. Why is this list set so
> that reply goes to individuals?
This is not a list, it's a newsgroup, and it's set up just like
any other newsgroup. You probably pressed the 'Reply to poster'
instead of 'Reply to newsgroup'.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
- pthreads, Matthew Polder, 2004/07/30
- FW: pthreads, Michael D. Berger, 2004/07/31
- Re: FW: pthreads,
Paul Pluzhnikov <=