On Fri, Nov 15, 2002 at 02:49:17PM +0100, Richard Levitte - VMS Whacker wrote:
> In message <[EMAIL PROTECTED]> on Fri, 15 Nov 2002 13:23:57 
>+0100, Corinna Vinschen <[EMAIL PROTECTED]> said:
> 
> vinschen> First, there's a build problem which only affects Windows systems due
> vinschen> to the way DLLs are searched for.  In contrast to Unixy systems, shared
> vinschen> libs are search in $PATH.  Therefore I propose the following patch to
> vinschen> test/Makefile:
> 
> Can you check if the attached patch helps?

I'm (very positively) surprised.  This patch also heals the problem
with the crashing testsuite applications.  I had even restored the
/usr/include/openssl directory.  So my analyzis was actually incorrect.
I'm not disappointed about that fact, though :-)

However, since the introduction of a new version collides with
the DLLs of an already installed 0.9.6 version, there's a need
to change the names of the produced DLLs (but not the .dll.a files)
from now on.

So, from 0.9.7 on, the DLLs should be named like  'cygssl-0.9.7.dll'
and 'cygcrypto-0.9.7.dll' while the static and link libs still
should be named libssl.a, libssl.dll.a, libcrypto.a and libcrypto.dll.a.

May I propose the attached patch to 0.9.7?

There will probably be another change needed for util/cygwin.sh but
I will have to have another look into that issue first.

Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@;redhat.com
--- Makefile.ssl.orig   2002-11-15 16:17:21.000000000 +0100
+++ Makefile.ssl        2002-11-15 16:17:17.000000000 +0100
@@ -244,7 +244,7 @@ clean-shared:
                fi; \
                ( set -x; rm -f lib$$i$(SHLIB_EXT) ); \
                if [ "$(PLATFORM)" = "Cygwin" ]; then \
-                       ( set -x; rm -f cyg$$i$(SHLIB_EXT) lib$$i$(SHLIB_EXT).a ); \
+                       ( set -x; rm -f cyg$$i-$(SHLIB_VERSION_NUMBER)$(SHLIB_EXT) 
+lib$$i$(SHLIB_EXT).a ); \
                fi; \
        done
 
@@ -294,7 +294,7 @@ do_darwin-shared: 
 
 do_cygwin-shared:
        libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
-       ( set -x; ${CC}  -shared -o cyg$$i.dll \
+       ( set -x; ${CC}  -shared -o cyg$$i-${SHLIB_VERSION_NUMBER}.dll \
                -Wl,-Bsymbolic \
                -Wl,--whole-archive lib$$i.a \
                -Wl,--out-implib,lib$$i.dll.a \
@@ -745,7 +745,7 @@ install: all install_docs
                                        chmod 555 
$(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
                                        mv $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new 
$(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
                                else \
-                                       c=`echo $$i | sed 's/^lib/cyg/'`; \
+                                       c=`echo $$i | sed 
+'s/^lib\(.*\)/cyg\1-$(SHLIB_VERSION_NUMBER)/'`; \
                                        cp $$c 
$(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \
                                        chmod 755 
$(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \
                                        mv $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new 
$(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \

Reply via email to