Hello Kurt,

> [...]
> > I've enclosed it inside an #ifdef checking for the symbol HAVE_POLL_H,
> > which `./Configure' should check for and using select() instead.

>
> I thought poll() just used select() internaly in those version of the
> kernel?


oops, I've had a look inside the kernel and you're right. Never the less
doesn't exist, instead needs to be included, so
I've corrected the patch:

### start of diff ###
--- openssl-0.9.7l/crypto/rand/rand_unix.c.orig 2006-06-30 10:15:13.000000000 +0200
+++ openssl-0.9.7l/crypto/rand/rand_unix.c 2006-10-16 11:12:34.000000000 +0200
@@ -125,7 +125,7 @@
#include
#include
#if defined(OPENSSL_SYS_LINUX) /* should actually be available virtually everyw
here */
-# include
+# include /* added sys/ -- (ThMO) */
#endif
#include
#ifndef FD_SETSIZE
### end of diff ###

> > ./config shared...:
> > a shared library build compiles all files using -fPIC, which is
> > correct for a shared library, but not for a static one, since refer=
> > ences to global variables are encoded more time-consuming, while -fPIC
> > is active, which means that for a static build, the package need to be
> > configured a second time:

>
> Yes, if you want both a shared and static lib, the best thing to do is
> build everything twice, once using -fPIC and once without, and I don't
> see what you want to change about it?


What I would like to see is a single Makefile doing both in one go, which
simplies things a lot, e.g. considering the openssl binary, the following
procedure is needed:
make -f Makefile.shared
installing the stuff
make -f Makefile.static
cd apps
cp Makefile GNUmakefile
vi GNUmakefile [replacing the ../lib*.a with -l*]
make -C ..
rm GNUmakefile
installing lib*.a and openssl

The binary will be reduced in size with the above procedure from 300 kB
down to 287 kB, since during the first run it will be compiled with
-fPIC too...

THX for listening.

CU Tom.
(Thomas M.Ott)
Germany

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org