Hi Francesco,
I'm trying to build it but I got that ssl lib is not found.
I'm using mingw but I see that there is no libssl.a, what I have to
download to add it ?
In a recent ChangeLog I've linked an OpenSSL binary package for
Windows, you can also find it from openssl.org (they're finally
offering such thing).
Personally I used to build OpenSSL from source in static mode,
so I don't have any experience first hand about above pkg, but
it has mingw libs too, and static and dyn versions for msvc.
There is also usual chaos regarding lib names. The ones currently
included in hbssl.hbc are the default static lib names generated
if you build OpenSSL from source (speaking about Windows now).
If you use other bin pkgs, or dll implib version, you'll have to
adjust these names. For dll versions, probably even some macros
need to be defined when you build hbssl, I didn't explore this
yet, the name of the macro is OPENSSL_OPT_WINDLL.
Probably we should have a HB_OPENSSL_STATIC flag for hbssl lib
to control that and also lib name to some extent. The .dll
method could be setup pretty much universally. The implibs
are already generated in HB_BUILD_IMPLIB mode.
Please feel free to experiment. Maybe I'll make some steps
into above directions.
Brgds,
Viktor
this is trace of hbmk2:
J:\cvs\harbourSVN_trunk\contrib\hbtip\tests>hbmk2 httpadv.prg
hbmkssl.hbm -trace
hbmk2: Processing configuration: j:\cvs\harbour_mingw\bin\hbmk.cfg
hbmk2: Harbour compiler command (internal):
(j:\cvs\harbour_mingw\bin\harbour.exe) -n2 httpadv.prg -ij:/cvs/
harbour_mingw/include -i.. -i../../hbssl
Harbour 2.0.0beta2 (Rev. 12362)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'httpadv.prg'...
Lines 57, Functions/Procedures 1
Generating C source output to 'httpadv.c'... Done.
hbmk2: C compiler command:
gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -
Ij:/cvs/harbour_mingw/include -I.. -I../../hbssl httpadv.c k:\temp
\hbmk_mvv8sb.c
hbmk2: Linker command:
gcc.exe httpadv.o hbmk_mvv8sb.o -mconsole -lhbtipssl -lhbssl -
lssl -lssl32 -lcrypto -leay32 -lhbextern -lhbdebug -lhbvm -lhbrtl -
lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -
lhbrdd -lhbusrrdd -lhbhsx -lhbsix -lrddntx -lrddcdx -lrddfpt -
lhbuddall -lrddnsx -lhbrtl -lhbvm -lhbmacro -lhbcplr -lhbpp -
lhbcommon -lhbpcre -lhbzlib -lkernel32 -luser32 -lgdi32 -ladvapi32 -
lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -
loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -
ohttpadv.exe -Lj:/cvs/harbour_mingw/lib/win/mingw
k:/hb-1.1.0dev/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../
mingw32/bin/ld.exe: cannot find -lssl
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe httpadv.o hbmk_mvv8sb.o -mconsole -lhbtipssl -lhbssl -
lssl -lssl32 -lcrypto -leay32 -lhbextern -lhbdebug -lhbvm -lhbrtl -
lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -
lhbrdd -lhbusrrdd -lhbhsx -lhbsix -lrddntx -lrddcdx -lrddfpt -
lhbuddall -lrddnsx -lhbrtl -lhbvm -lhbmacro -lhbcplr -lhbpp -
lhbcommon -lhbpcre -lhbzlib -lkernel32 -luser32 -lgdi32 -ladvapi32 -
lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -
loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -
ohttpadv.exe -Lj:/cvs/harbour_mingw/lib/win/mingw
Best Regards,
Francesco
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour