[openssl.org #2079] Mismatch in makefiles -> compilation error on cygwin

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown [openssl.org #2079] Mismatch in makefiles -> compilation error on cygwin

by Alon Bar-Lev via RT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


  there is a problem in the Makefiles that precludes correct compilation
of openSSL, at least on cygwin. The problem is present in 1.0.0-beta3 as
well.

  In the top-level Makefile the value SDIRS does not contain rc5. As a
result, "make links" does not create a link to rc5test.c in test.
However the Makefile in test tries to compile rc5test.c during "make
all" in test. The result is that when doing "make" on top level, we hit
a failure:

gcc -I.. -I../include  -I../fips -DOPENSSL_THREADS  -DDSO_DLFCN
-DHAVE_DLFCN_H -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486
-Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM
-DMD5_ASM -DRMD160_ASM -DAES_ASM   -c -o rc5test.o rc5test.c
make[2]: Entering directory
`/c/docs/verification/openssl/openssl-0.9.8j/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto  }";
LDCMD="${LDCMD:-gcc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS
-DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3
-march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM}"; LIBPATH=`for x in
$LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x |
sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e
's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD}
${LDFLAGS} -o ${APPNAME:=rc5test.exe} rc5test.o ${LIBDEPS} )
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0xab):
undefined reference to `_WinMain@16'

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