Construir Harbour con BCC 7.1

Re: Construir Harbour con BCC 7.1

Postby carlos vargas » Wed Apr 19, 2017 5:19 pm

en harbour\source\common\hbprintf.c agregar estas funciones al final
Code: Select all  Expand view

//#if defined( __BORLANDC__ ) && defined( HB_OS_WIN_64 )
#if defined(__BORLANDC__) && defined(__clang__) && defined(_WIN64)
/* $NetBSD: isnanl.c,v 1.8 2011/06/05 14:43:13 christos Exp $   */

/*
 * Copyright (c) 1992, 1993
 *  The Regents of the University of California.  All rights reserved.
 *
 * This software was developed by the Computer Systems Engineering group
 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
 * contributed to Berkeley.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 * from: Header: isinf.c,v 1.1 91/07/08 19:03:34 torek Exp
 */


#include <math.h>

#define EXT_EXP_INFNAN  0x7fff
#define EXT_EXPBITS     15
#define EXT_FRACHBITS   16
#define SNG_EXP_INFNAN  255
#define DBL_EXP_INFNAN  2047

struct ieee_ext
{
   unsigned int      ext_sign:1;
   unsigned int      ext_exp:EXT_EXPBITS;
   unsigned int      ext_frach:EXT_FRACHBITS;
   unsigned int      ext_frachm;
   unsigned int      ext_fraclm;
   unsigned int      ext_fracl;
};

union ieee_ext_u
{
   long double       extu_ld;
   struct ieee_ext   extu_ext;
};

struct ieee_double
{
   unsigned int      dbl_sign:1;
   unsigned int      dbl_exp:11;
   unsigned int      dbl_frach:20;
   unsigned int      dbl_fracl;
};

HB_EXTERN_BEGIN
extern int _isnanl( long double x );
extern int _finitel( long double d );
extern int _finite( double d );
HB_EXTERN_END

/*
 * 7.12.3.4 isnan - test for a NaN
 *          IEEE 754 compatible 80-bit extended-precision Intel 386 version
 */


int _isnanl( long double x )
{
   union ieee_ext_u u;

   u.extu_ld = x;

   return u.extu_ext.ext_exp == EXT_EXP_INFNAN &&
          ( u.extu_ext.ext_frach & 0x80000000 ) != 0 &&
          ( u.extu_ext.ext_frach != 0x80000000 || u.extu_ext.ext_fracl != 0 );
}

int _finite( double d )
{
   struct ieee_double * p = ( struct ieee_double * ) &d;

   return p->dbl_exp != DBL_EXP_INFNAN;
}

int _finitel( long double d )
{
   struct ieee_double * p = ( struct ieee_double * ) &d;

   return p->dbl_exp != DBL_EXP_INFNAN;
}

#endif
 
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1720
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Construir Harbour con BCC 7.1

Postby Vikthor.Thomas » Wed Apr 19, 2017 8:21 pm

Carlos , gracias por responder

Aplico los cambios y comento los resultados

Saludos
User avatar
Vikthor.Thomas
 
Posts: 144
Joined: Thu Jan 02, 2014 1:49 pm

Re: Construir Harbour con BCC 7.1

Postby Vikthor.Thomas » Thu Apr 20, 2017 11:13 pm

carlos vargas wrote:cabe aclarar, que el compilador harboury las librerias bases si son construidas, pero no asi el hbmk2.exe, lo que provoca que cuando va ha construir las librerias de la carpeta "contrib" de un error, ya que ahi se usa hbmk2 como gestor de proyectos para construir cada uno de las contribuciones.

pero si no modifico hbregex.h, el hbmk2.exe es construido, pero no es posible que se ejecute correctamente ya que da error de tipo overflow o algo por el estilo, no recuerdo.

si alguien puede aportar los cambios necesarios para reparar esto, pues muy agradecido.


Carlos, creo que ya he llegado al punto que mencionas y obtengo el siguiente error
Code: Select all  Expand view

ilink64.exe  -L"..\..\..\..\..\lib\win\bcc64" -Gn -Tpe   -Lc:\bcc71.64\lib;c:\bcc71.64\lib\psdk c:\bcc71.64\LIB\c0x64.o rt_miscc.o hbtest.o rt_array.o rt_date.o rt_file.o rt_hvm.o rt_hvma.o rt_math.o rt_misc.o rt_mt.o rt_str.o rt_stra.o rt_trans.o rt_class.o, "..\..\..\..\..\bin\win\bcc64\hbtest.exe", nul, hbextern hbdebug hbvm hbrtl hblang hbcpage gtcgi gtpca gtstd gtwvt gtgui gtwin hbrdd rddntx rddnsx rddcdx rddfpt hbsix hbhsx hbusrrdd hbuddall hbrtl hbvm hbmacro hbcplr hbpp hbcommon hbpcre hbzlib c:\bcc71.64\lib\psdk\kernel32 c:\bcc71.64\lib\psdk\user32 c:\bcc71.64\lib\psdk\ws2_32 c:\bcc71.64\lib\psdk\iphlpapi c:\bcc71.64\lib\psdk\advapi32 c:\bcc71.64\lib\psdk\gdi32 c:\bcc71.64\lib\cw64mt c:\bcc71.64\lib\import64,,
Turbo Incremental Link64 6.72 Copyright (c) 1997-2015 Embarcadero Technologies, Inc.
        1 archivo(s) copiado(s).
../../../../../bin/win/bcc64/harbour.exe ../../../hbmk2.prg  -i../../../../../include -n1 -q0 -w3 -es2 -kmo -i- -l  -u -i../../../ -DHBMK_USE_APPMAIN -DHBMK_WITH_ALL_EMBEDDED_HEADERS
bcc64.exe   -I. -I../../../../../include -q -tWM -w -Q -w-sig- -O2 -Ic:\bcc71.64\include\windows\crtl -Ic:\bcc71.64\include\windows\sdk    -DUNICODE  -ohbmk2.o  -c hbmk2.c
hbmk2.c:
brcc32.exe  -I. -I../../../../../include -Ic:\bcc71.64\include\windows\sdk   -fohbmk2.res ../../../hbmk2.rc
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
ilink64.exe  -L"..\..\..\..\..\lib\win\bcc64" -Gn -Tpe   -Lc:\bcc71.64\lib;c:\bcc71.64\lib\psdk c:\bcc71.64\LIB\c0x64.o hbmk2.o, "..\..\..\..\..\bin\win\bcc64\hbmk2.exe", nul, hbextern hbdebug hbvmmt hbrtl hblang hbcpage gtcgi gtpca gtstd gtwvt gtgui gtwin hbrdd rddntx rddnsx rddcdx rddfpt hbsix hbhsx hbusrrdd hbuddall hbrtl hbvmmt hbmacro hbcplr hbpp hbcommon hbpcre hbzlib c:\bcc71.64\lib\psdk\kernel32 c:\bcc71.64\lib\psdk\user32 c:\bcc71.64\lib\psdk\ws2_32 c:\bcc71.64\lib\psdk\iphlpapi c:\bcc71.64\lib\psdk\advapi32 c:\bcc71.64\lib\psdk\gdi32 c:\bcc71.64\lib\cw64mt c:\bcc71.64\lib\import64,, hbmk2.res
Turbo Incremental Link64 6.72 Copyright (c) 1997-2015 Embarcadero Technologies, Inc.
Error: Unresolved external 'regexec' referenced from C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o
Error: Unresolved external 'regfree' referenced from C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o
Error: Unresolved external 'regcomp' referenced from C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o
../../../../../config/bin.mk:159: recipe for target 'hbmk2.exe' failed
win-make[3]: *** [hbmk2.exe] Error 2
../../config/bin.mk:155: recipe for target 'descend' failed
win-make[2]: *** [descend] Error 2
../config/dir.mk:68: recipe for target 'hbmk2.inst' failed
win-make[1]: *** [hbmk2.inst] Error 2
config/dir.mk:68: recipe for target 'utils.inst' failed
win-make: *** [utils.inst] Error 2
 


Revisé las modificaciones que Antonio hace al hbmk2.prg y ya están aplicadas en GIt.
Alguna sugerencia para construir las contribuciones ?

Saludos
User avatar
Vikthor.Thomas
 
Posts: 144
Joined: Thu Jan 02, 2014 1:49 pm

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 8:34 am

Vikthor,

Estoy reconstruyéndolo para recordar como lo hice

Carlos,

Cuando construyes te aparecen muchos warnings de los ficheros de cabecera de Borland ?
In file included from c:\bcc7164\include\windows\sdk\ole2.h:38:
In file included from c:\bcc7164\include\windows\sdk\objbase.h:28:
In file included from c:\bcc7164\include\windows\sdk\combaseapi.h:407:
c:\bcc7164\include\windows\sdk\objidlbase.h:192:34: warning: redefinition of typedef 'IRpcStubBuffer' is a C11 feature
[-Wtypedef-redefinition]
typedef interface IRpcStubBuffer IRpcStubBuffer;
^
c:\bcc7164\include\windows\sdk\combaseapi.h:392:41: note: previous definition is here
typedef interface IRpcStubBuffer IRpcStubBuffer;
^
In file included from ../../../pngrutil.c:17:
In file included from ../../../pngpriv.h:462:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:38:
In file included from c:\bcc7164\include\windows\sdk\objbase.h:29:
In file included from c:\bcc7164\include\windows\sdk\coml2api.h:42:
c:\bcc7164\include\windows\sdk\propidlbase.h:139:31: warning: redefinition of typedef 'PROPVARIANT' is a C11 feature
[-Wtypedef-redefinition]
typedef struct tagPROPVARIANT PROPVARIANT;
^
c:\bcc7164\include\windows\sdk\combaseapi.h:1341:31: note: previous definition is here
typedef struct tagPROPVARIANT PROPVARIANT;
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 10:09 am

Con este go_64.bat:

set path=c:\bcc7164\bin
set HB_COMPILER=bcc64
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
set HB_COMP_PATH_PUB=c:\bcc7164\bin\
set HB_USER_CFLAGS=-Ic:\bcc7164\include\windows\crtl -Ic:\bcc7164\include\windows\sdk
win-make.exe

LLego hasta este error:
ilink64.exe -L"c:\bcc7164\bin\..\Lib" -L"c:\bcc7164\bin\..\Lib\PSDK" -q -Gn -C -aa -Tpd -Gi -x -L"..\..\..\..\..\lib\win\bcc64" -L"c:\bcc7164\lib\psdk" c:\bcc7164\lib\c0d64.o @__dyn__.tmp
Error: Unresolved external 'regexec' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O
Error: Unresolved external 'regfree' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O
Error: Unresolved external 'regcomp' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 10:35 am

Esos errores se solucionan NO modificando hbregex.h

Con el batch file que he proporcionado llego hasta aqui, lo cual quiere decir que ya intenta construir las contribs:
! Started package build...
! Calculating build order for 67 projects...
! Warning: 'hbmk2 --hbinfo' failed with exit code 20
c:\harb64\bin\win\bcc64\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbmzip/3rd/minizip/minizip.hbp @hbpost
bcc64.exe: warning: argument unused during compilation: '-CP437'
bcc64.exe: warning: argument unused during compilation: '-d'
bcc64.exe: warning: argument unused during compilation: '-w-sig-'
bcc64.exe: warning: argument unused during compilation: '-w-aus-'
bcc64.exe: warning: argument unused during compilation: '-w-ccc-'
bcc64.exe: warning: argument unused during compilation: '-w-csu-'
bcc64.exe: warning: argument unused during compilation: '-w-par-'
bcc64.exe: warning: argument unused during compilation: '-w-rch-'
bcc64.exe: warning: argument unused during compilation: '-w-ucp-'
bcc64.exe: warning: argument unused during compilation: '-w-use-'
bcc64.exe: warning: argument unused during compilation: '-w-prc-'
bcc64.exe: warning: argument unused during compilation: '-w-pia-'
..\contrib\hbmzip\3rd\minizip\ioapi.c:
error: invalid integral value 'c' in '-Oc'
error: invalid integral value 'c' in '-Oc'
..\contrib\hbmzip\3rd\minizip\zip.c:
error: invalid integral value 'c' in '-Oc'
error: invalid integral value 'c' in '-Oc'
..\contrib\hbmzip\3rd\minizip\unzip.c:
error: invalid integral value 'c' in '-Oc'
error: invalid integral value 'c' in '-Oc'
hbmk2[minizip]: Error: Running C/C++ compiler. 1
hbmk2[minizip]: Exit code: 6: failed in compilation (Harbour, C compiler, Resource compiler)
! Finished package build...
makefile:8: recipe for target 'first' failed
win-make.exe[1]: *** [first] Error 6
config/dir.mk:71: recipe for target 'contrib' failed
win-make.exe: *** [contrib] Error 2
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 10:52 am

hay que modificar harbour\utils\hbmk2.prg así. Ahora hbmk2.exe se construye y empieza a construir las contribs

Estas líneas se encuentran buscando "bcc64"

línea 4959:
cOpt_CompC += " -d -O2"

línea 4965:
cLibBCC_CRTL := "cw64mt.a"

línea 4978:
cLibBCC_CRTL := "cw64.a"

lineas 5003 y 5004:
cOpt_Link := "-Gn -Tpe -L{DL} {FL} " + iif( hbmk[ _HBMK_lGUI ], "c:\bcc7164\lib\c0w64.o", "c:\bcc7164\lib\c0x64.o" ) + " {LO}, {OE}, " + iif( hbmk[ _HBMK_lMAP ], "{OM}", "nul" ) + ", {LL} {LB} {LF} " + cLibBCC_CRTL + " import64.a, {IM}, {LS}{SCRIPT}"
cOpt_Dyn := "-Gn -Tpd -L{DL} {FD} " + "c:\bcc7164\lib\c0d64.o" + " {LO}, {OD}, " + iif( hbmk[ _HBMK_lMAP ], "{OM}", "nul" ) + ", {LL} {LB} {LF} " + cLibBCC_CRTL + " import64.a, {IM}, {LS}{SCRIPT}"
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 11:00 am

Tendriamos que encontrar la manera de modificar esto:

"c:\bcc7164\lib\c0w64.o"
"c:\bcc7164\lib\c0x64.o"
"c:\bcc7164\lib\c0d64.o"

para que sea genérico en el anterior cambio propuesto para hbmk2.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 11:16 am

Este error aparece varias veces:

Fatal: Archive file 'C:\BCC7164\LIB\PSDK\UUID.A' lists no symbols in its dictionary.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 11:18 am

Estas son las librerías construidas:

04/21/2017 12:28 PM 173,500 hbzlib.a
04/21/2017 12:28 PM 463,616 png.a
04/21/2017 12:28 PM 486,034 hbpcre.a
04/21/2017 12:28 PM 542,336 jpeg.a
04/21/2017 12:28 PM 589,636 tiff.a
04/21/2017 12:29 PM 1,504 hbmaindllh.a
04/21/2017 12:29 PM 1,718 hbmainstd.a
04/21/2017 12:29 PM 1,736 hbmainwin.a
04/21/2017 12:29 PM 17,018 hbnortl.a
04/21/2017 12:29 PM 58,100 hbmaindllp.a
04/21/2017 12:29 PM 238,050 hbcommon.a
04/21/2017 12:29 PM 753,786 hbcplr.a
04/21/2017 12:29 PM 763,414 hbpp.a
04/21/2017 12:29 PM 1,141,582 hbvm.a
04/21/2017 12:29 PM 1,167,728 hbvmmt.a
04/21/2017 12:31 PM 8,164 gtgui.a
04/21/2017 12:31 PM 10,068 gtcgi.a
04/21/2017 12:31 PM 12,860 gtstd.a
04/21/2017 12:31 PM 19,748 gtpca.a
04/21/2017 12:31 PM 43,412 gtwin.a
04/21/2017 12:31 PM 150,156 hbmacro.a
04/21/2017 12:31 PM 158,436 gtwvt.a
04/21/2017 12:31 PM 299,914 hblang.a
04/21/2017 12:31 PM 791,690 hbcpage.a
04/21/2017 12:31 PM 5,406,764 hbrtl.a
04/21/2017 12:32 PM 13,346 hbnulrdd.a
04/21/2017 12:32 PM 42,086 hbhsx.a
04/21/2017 12:32 PM 103,752 hbsix.a
04/21/2017 12:32 PM 104,064 hbuddall.a
04/21/2017 12:32 PM 108,934 rddfpt.a
04/21/2017 12:32 PM 135,132 hbusrrdd.a
04/21/2017 12:32 PM 155,686 rddntx.a
04/21/2017 12:32 PM 162,470 rddnsx.a
04/21/2017 12:32 PM 232,152 hbextern.a
04/21/2017 12:32 PM 274,318 harbour-32.a
04/21/2017 12:32 PM 394,902 hbdebug.a
04/21/2017 12:32 PM 395,160 rddcdx.a
04/21/2017 12:32 PM 538,402 hbrdd.a
04/21/2017 12:46 PM 75,092 minizip.a
04/21/2017 12:46 PM 108,470 bz2.a
04/21/2017 12:46 PM 608,520 hbwin.a
04/21/2017 12:47 PM 7,280 tinymt.a
04/21/2017 12:47 PM 33,424 hbfship.a
04/21/2017 12:47 PM 48,850 hbmzip.a
04/21/2017 12:47 PM 69,832 rddsql.a
04/21/2017 12:47 PM 94,664 xdiff.a
04/21/2017 12:47 PM 122,248 hbxpp.a
04/21/2017 12:47 PM 337,536 hbssls.a
04/21/2017 12:47 PM 463,992 hbtip.a
04/21/2017 12:47 PM 610,924 hbct.a
04/21/2017 12:47 PM 1,633,960 sqlite3.a
04/21/2017 12:48 PM 8,804 lzf.a
04/21/2017 12:48 PM 13,628 hbbz2.a
04/21/2017 12:48 PM 16,994 minilzo.a
04/21/2017 12:48 PM 19,284 sddsqlt3.a
04/21/2017 12:48 PM 24,228 sddodbc.a
04/21/2017 12:48 PM 26,144 hbziparc.a
04/21/2017 12:48 PM 32,732 rddbm.a
04/21/2017 12:48 PM 72,210 hbformat.a
04/21/2017 12:48 PM 97,862 mxml.a
04/21/2017 12:48 PM 119,968 hbnetio.a
04/21/2017 12:48 PM 140,940 hbzebra.a
04/21/2017 12:48 PM 329,454 expat.a
04/21/2017 12:48 PM 337,536 hbssl.a
04/21/2017 12:48 PM 1,107,754 xhb.a
04/21/2017 12:48 PM 1,217,878 libhpdf.a
04/21/2017 12:49 PM 13,458 hbtcpio.a
04/21/2017 12:49 PM 15,328 hbtest.a
04/21/2017 12:49 PM 17,112 hbsms.a
04/21/2017 12:49 PM 21,144 hbxdiff.a
04/21/2017 12:49 PM 21,708 hbtinymt.a
04/21/2017 12:49 PM 35,856 hbtpathy.a
04/21/2017 12:49 PM 115,260 hbsqlit3.a
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Vikthor.Thomas » Fri Apr 21, 2017 2:31 pm

Antonio Linares wrote:Con este go_64.bat:

set path=c:\bcc7164\bin
set HB_COMPILER=bcc64
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
set HB_COMP_PATH_PUB=c:\bcc7164\bin\
set HB_USER_CFLAGS=-Ic:\bcc7164\include\windows\crtl -Ic:\bcc7164\include\windows\sdk
win-make.exe

LLego hasta este error:
ilink64.exe -L"c:\bcc7164\bin\..\Lib" -L"c:\bcc7164\bin\..\Lib\PSDK" -q -Gn -C -aa -Tpd -Gi -x -L"..\..\..\..\..\lib\win\bcc64" -L"c:\bcc7164\lib\psdk" c:\bcc7164\lib\c0d64.o @__dyn__.tmp
Error: Unresolved external 'regexec' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O
Error: Unresolved external 'regfree' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O
Error: Unresolved external 'regcomp' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O


Antonio, gracias por responder.

Sin modificar hbregex.h obtengo el siguiente error :
Code: Select all  Expand view

bcc64.exe   -I. -I../../../../../include -q -tWM -w -Q -w-sig- -O2 -Ic:\bcc71.64\include\windows\crtl -Ic:\bcc71.64\include\windows\sdk    -DUNICODE -DHB_HAS_PCRE -IC:/Harbour/src/3rd/pcre -DPCRE_STATIC -DHB_HAS_ZLIB -IC:/Harbour/src/3rd/zlib -I"c:\bcc71.64\bin\..\Include" -I"c:\bcc71.64\bin\..\Include\windows\crtl" -I"c:\bcc71.64\bin\..\Include\windows\sdk" -Ic:\bcc71.64\include\windows\crtl -Ic:\bcc71.64\include\windows\sdk -ohbregex.o  -c ../../../hbregex.c
../../../hbregex.c:
In file included from ../../../hbregex.c:48:
In file included from ../../../../../include\hbregex.h:54:
c:\bcc71.64\include\windows\crtl\pcre.h:11:2: error: PCRE not supported on WIN64: use standard
      header <regex>
#error PCRE not supported on WIN64: use standard header <regex>
 ^
../../../hbregex.c:84:18: error: use of undeclared identifier 'PCRE_UTF8'
      iCFlags |= PCRE_UTF8;
                 ^
../../../hbregex.c:112:52: error: too many arguments to function call, expected 7, have 8
                        pRegEx->iEFlags, aMatches, HB_REGMATCH_SIZE( iMatches ) );
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../include\hbregex.h:82:37: note: expanded from macro 'HB_REGMATCH_SIZE'
   #define HB_REGMATCH_SIZE( n )    ( ( n ) * 3 )
                                    ^~~~~~~~~~~~~
c:\bcc71.64\include\windows\crtl\pcre.h:74:1: note: 'pcre_exec' declared here
extern int
^
../../../hbregex.c:561:21: error: use of undeclared identifier 'PCRE_CONFIG_UTF8'
   if( pcre_config( PCRE_CONFIG_UTF8, &s_iUTF8Enabled ) != 0 )
                    ^
../../../hbregex.c:566:4: error: use of undeclared identifier 'pcre_stack_malloc'
   pcre_stack_malloc = hb_pcre_grab;
   ^
../../../hbregex.c:567:4: error: use of undeclared identifier 'pcre_stack_free'
   pcre_stack_free = hb_pcre_free;
   ^
6 errors generated.
../../../../../config/rules.mk:84: recipe for target 'hbregex.o' failed
win-make.exe[3]: *** [hbregex.o] Error 1
../../config/lib.mk:68: recipe for target 'descend' failed
win-make.exe[2]: *** [descend] Error 2
../config/dir.mk:71: recipe for target 'rtl' failed
win-make.exe[1]: *** [rtl] Error 2
config/dir.mk:71: recipe for target 'src' failed
win-make.exe: *** [src] Error 2

 


De que página puedo descargar OpenSSl ?

Saludos
User avatar
Vikthor.Thomas
 
Posts: 144
Joined: Thu Jan 02, 2014 1:49 pm

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 6:25 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Vikthor.Thomas » Fri Apr 21, 2017 9:22 pm

Hola de nuevo

Si uso hbregex.h sin cambios obtengo el siguiente error
Code: Select all  Expand view
ilink64.exe  -L"..\..\..\..\..\lib\win\bcc64" -Gn -Tpe   -Lc:\bcc71.64\lib;c:\bcc71.64\lib\psdk c:\bcc71.64\LIB\c0x64.o hbmk2.o, "..\..\..\..\..\bin\win\bcc64\hbmk2.exe", nul, hbextern hbdebug hbvmmt hbrtl hblang hbcpage gtcgi gtpca gtstd gtwvt gtgui gtwin hbrdd rddntx rddnsx rddcdx rddfpt hbsix hbhsx hbusrrdd hbuddall hbrtl hbvmmt hbmacro hbcplr hbpp hbcommon hbpcre hbzlib c:\bcc71.64\lib\psdk\kernel32 c:\bcc71.64\lib\psdk\user32 c:\bcc71.64\lib\psdk\ws2_32 c:\bcc71.64\lib\psdk\iphlpapi c:\bcc71.64\lib\psdk\advapi32 c:\bcc71.64\lib\psdk\gdi32 c:\bcc71.64\lib\cw64mt c:\bcc71.64\lib\import64,, hbmk2.res
Turbo Incremental Link64 6.72 Copyright (c) 1997-2015 Embarcadero Technologies, Inc.
Error: Unresolved external 'regexec' referenced from C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o
Error: Unresolved external 'regfree' referenced from C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o
Error: Unresolved external 'regcomp' referenced from C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o  

Si lo uso con los cambios sugeridos por carlos obtengo éste otro error.
Code: Select all  Expand view
c:\bcc71.64\include\windows\crtl\pcre.h:11:2: error: PCRE not supported on WIN64: use standard
      header <regex>
#error PCRE not supported on WIN64: use standard header <regex>
 ^
../../../hbregex.c:84:18: error: use of undeclared identifier 'PCRE_UTF8'
      iCFlags |= PCRE_UTF8;
                 ^
../../../hbregex.c:112:52: error: too many arguments to function call, expected 7, have 8
                        pRegEx->iEFlags, aMatches, HB_REGMATCH_SIZE( iMatches ) );
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../include\hbregex.h:82:37: note: expanded from macro 'HB_REGMATCH_SIZE'
   #define HB_REGMATCH_SIZE( n )    ( ( n ) * 3 )
                                    ^~~~~~~~~~~~~
c:\bcc71.64\include\windows\crtl\pcre.h:74:1: note: 'pcre_exec' declared here
extern int
^
../../../hbregex.c:561:21: error: use of undeclared identifier 'PCRE_CONFIG_UTF8'
   if( pcre_config( PCRE_CONFIG_UTF8, &s_iUTF8Enabled ) != 0 )
                    ^
../../../hbregex.c:566:4: error: use of undeclared identifier 'pcre_stack_malloc'
   pcre_stack_malloc = hb_pcre_grab;
   ^
../../../hbregex.c:567:4: error: use of undeclared identifier 'pcre_stack_free'
   pcre_stack_free = hb_pcre_free;
   ^
6 errors generated.
User avatar
Vikthor.Thomas
 
Posts: 144
Joined: Thu Jan 02, 2014 1:49 pm

Re: Construir Harbour con BCC 7.1

Postby Antonio Linares » Fri Apr 21, 2017 9:41 pm

Vikthor,

> Si uso hbregex.h sin cambios

Haz un win-make.exe clean primero
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Construir Harbour con BCC 7.1

Postby Vikthor.Thomas » Mon Apr 24, 2017 2:39 pm

Antonio Linares wrote:Vikthor,

> Si uso hbregex.h sin cambios

Haz un win-make.exe clean primero


Antonio, Carlos , gracias por el apoyo.
Ya conseguí crea la mayoría de las librerias de Harbour

En el último reporte de error la solución que apliqué fue actualizar pcre.h de la carpeta en Bcc71

Ahora obtengo un nuevo mensaje de error y es con el siguiente archivo _HBMKAUT_HBMK2.O
Code: Select all  Expand view

C:\Harbour\bin\win\bcc64\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc hbrun/hbrun.hbp @hbpost
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
..\bin\win\bcc64\.hbmk\hbrun\hbmk2.c:
Turbo Incremental Link64 6.72 Copyright (c) 1997-2015 Embarcadero Technologies, Inc.
Fatal: Unable to open file '_HBMKAUT_HBMK2.O'
hbmk2[hbrun]: Error: Ejecutando enlazador. 2
hbmk2[hbrun]: Código de salida: 7: fallo en el ensamblaje final (enlazador o gestor de bibliotecas)
! Finished package build...
makefile:8: recipe for target 'first' failed
win-make[1]: *** [first] Error 7
config/dir.mk:71: recipe for target 'contrib' failed
win-make: *** [contrib] Error 2
 
User avatar
Vikthor.Thomas
 
Posts: 144
Joined: Thu Jan 02, 2014 1:49 pm

PreviousNext

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi, russimicro and 55 guests