First try of cross build using OpenWatcom 1.8

Host: OS/2 - eCS
Target: Windows 32

Harbour source code
 * $Id: ChangeLog 11949 2009-07-31 11:21:30Z druzus $
 2009-07-31 13:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

config\win\watcom.cf
 Added two changes of Przemek to manage problems with make381

environment
----------------------
@ECHO OFF
SET WATCOM=E:\WATCOM

SET PATH=%WATCOM%\BINP;%WATCOM%\BINW;%PATH%
SET BEGINLIBPATH=%WATCOM%\BINP\DLL

Rem SET INCLUDE=%WATCOM%\H\OS2;%WATCOM%\H
SET INCLUDE=%WATCOM%\H\NT;%WATCOM%\H

DAVID: as in OS/2, H\NT before than \H

SET EDPATH=%WATCOM%\EDDAT

REM SET LIB=
SET HELP=%WATCOM%\BINP\HELP;%HELP%
SET BOOKSHELF=%WATCOM%\BINP\HELP;%BOOKSHELF%


set HB_ARCHITECTURE=win
set HB_COMPILER=watcom

Rem eliminate libraries which scans for local host header files
set HB_XBUILD=yes

----------------------

bin\win\watcom\harbour.exe and hbpp.exe are created

Both harbour.exe and hbpp.exe run fine under Windows XPPro SP2

bin\win\watcom\ contain 34 libraries created

Fail to create hbrun.exe due hbsocket.c
-----------------------------------------------
[E:\harbour907e\harbour]make -r            1>make_owos22win.log
make[3]: *** [hbrun.exe] Error 1
make[2]: *** [descend] Error 2
make[1]: *** [hbrun] Error 2
make: *** [utils] Error 2
-----------------------------------------------

Same error with
SET INCLUDE=%WATCOM%\H\NT;%WATCOM%\H
or
SET INCLUDE=%WATCOM%\H;%WATCOM%\H\NT

Below are content of make_owos22win.log for hbrun

Question: why show "//" in line ?

../../../../../bin/os2/watcom//harbour.exe ../../../hbrun.prg -n1

David Macias



make -C hbrun
make[2]: Entering directory `E:/harbour907e/harbour/utils/hbrun'

[E:\harbour907e\harbour\utils\hbrun]if not exist obj mkdir obj

[E:\harbour907e\harbour\utils\hbrun]if not exist obj\win mkdir obj\win

[E:\harbour907e\harbour\utils\hbrun]if not exist obj\win\watcom mkdir obj\win\watcom

[E:\harbour907e\harbour\utils\hbrun]if not exist ..\..\bin\win mkdir ..\..\bin\win

[E:\harbour907e\harbour\utils\hbrun]if not exist ..\..\bin\win\watcom mkdir ..\..\bin\win\watcom make[3]: Entering directory `E:/harbour907e/harbour/utils/hbrun/obj/win/watcom' ../../../../../bin/os2/watcom//harbour.exe ../../../hbrun.prg -n1 -i../../../../../include -q0 -w3 -es2 -kmo -l -gc0 -undef:__PLATFORM__OS2 -D__PLATFORM__WINDOWS wpp386 -zq -bt=NT -bm -w3 -6s -fp6 -onaehtr -s -ei -zp4 -zt0 -oi+ -i. -i../../../../../include -DHB_FM_STATISTICS_OFF hbrun.c -fo=hbrun.obj wlink SYS NT NAME ../../../../../bin/win/watcom/hbrun.exe FILE hbrun.obj LIB ../../../../../lib/win/watcom/hbextern, ../../../../../lib/win/watcom/hbdebug, ../../../../../lib/win/watcom/hbvm, ../../../../../lib/win/watcom/hbrtl, ../../../../../lib/win/watcom/hblang, ../../../../../lib/win/watcom/hbcpage, ../../../../../lib/win/watcom/hbrdd, ../../../../../lib/win/watcom/hbrtl, ../../../../../lib/win/watcom/hbvm, ../../../../../lib/win/watcom/hbmacro, ../../../../../lib/win/watcom/hbcplr, ../../../../../lib/win/watcom/hbpp, ../../../../../lib/win/watcom/hbcommon, ../../../../../lib/win/watcom/hbpcre, ../../../../../lib/win/watcom/hbzlib, ../../../../../lib/win/watcom/rddntx, ../../../../../lib/win/watcom/rddnsx, ../../../../../lib/win/watcom/rddcdx, ../../../../../lib/win/watcom/rddfpt, ../../../../../lib/win/watcom/hbsix, ../../../../../lib/win/watcom/hbhsx, ../../../../../lib/win/watcom/hbusrrdd, ../../../../../lib/win/watcom/hbuddall, ../../../../../lib/win/watcom/gtcgi, ../../../../../lib/win/watcom/gtpca, ../../../../../lib/win/watcom/gtstd, ../../../../../lib/win/watcom/gtwvt, ../../../../../lib/win/watcom/gtgui, ../../../../../lib/win/watcom/gtwin
Open Watcom Linker Version 1.8
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
loading object files
searching libraries
Error! E2028: __imp__wsastar...@8 is an undefined reference
Error! E2028: __imp__wsaclea...@0 is an undefined reference
Error! E2028: __imp__sel...@20 is an undefined reference
Error! E2028: __imp__wsagetlaster...@0 is an undefined reference
Error! E2028: __imp____wsafdis...@8 is an undefined reference
Error! E2028: __imp__ht...@4 is an undefined reference
Error! E2028: __imp__ht...@4 is an undefined reference
Error! E2028: __imp__inet_a...@4 is an undefined reference
Error! E2028: __imp__inet_n...@4 is an undefined reference
Error! E2028: __imp__nt...@4 is an undefined reference
Error! E2028: __imp__getsockn...@12 is an undefined reference
Error! E2028: __imp__getpeern...@12 is an undefined reference
Error! E2028: __imp__soc...@12 is an undefined reference
Error! E2028: __imp__closesoc...@4 is an undefined reference
Error! E2028: __imp__shutd...@8 is an undefined reference
Error! E2028: __imp__setsock...@20 is an undefined reference
Error! E2028: __imp__b...@12 is an undefined reference
Error! E2028: __imp__lis...@8 is an undefined reference
Error! E2028: __imp__ioctlsoc...@12 is an undefined reference
Error! E2028: __imp__acc...@12 is an undefined reference
Error! E2028: __imp__conn...@12 is an undefined reference
Error! E2028: __imp__s...@16 is an undefined reference
Error! E2028: __imp__sen...@24 is an undefined reference
Error! E2028: __imp__r...@16 is an undefined reference
Error! E2028: __imp__recvf...@24 is an undefined reference
Error! E2028: __imp__getsock...@20 is an undefined reference
Error! E2028: __imp__gethostbya...@12 is an undefined reference
Error! E2028: __imp__gethostbyn...@4 is an undefined reference
creating a Windows NT character-mode executable
file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__wsastar...@8 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__wsaclea...@0 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__sel...@20 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__wsagetlaster...@0 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp____wsafdis...@8 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__ht...@4 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__ht...@4 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__inet_a...@4 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__inet_n...@4 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__nt...@4 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__getsockn...@12 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__getpeern...@12 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__soc...@12 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__closesoc...@4 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__shutd...@8 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__setsock...@20 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__b...@12 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__lis...@8 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__ioctlsoc...@12 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__acc...@12 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__conn...@12 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__s...@16 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__sen...@24 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__r...@16 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__recvf...@24 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__getsock...@20 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__gethostbya...@12 file ../../../../../lib/win/watcom/hbrtl.lib(E:\harbour907e\harbour\source\rtl\hbsocket.c): undefined symbol __imp__gethostbyn...@4 make[3]: Leaving directory `E:/harbour907e/harbour/utils/hbrun/obj/win/watcom'
make[2]: Leaving directory `E:/harbour907e/harbour/utils/hbrun'
make[1]: Leaving directory `E:/harbour907e/harbour/utils'


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to