Error while building harbour with gcc version 6.3.0

136 views
Skip to first unread message

oleksa

unread,
Apr 18, 2017, 1:10:06 PM4/18/17
to harbou...@googlegroups.com
C:\dev>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.3.0/lto-wrapper.exe
Target: i686-w64-mingw32
...
Thread model: posix
gcc version 6.3.0 (Rev2, Built by MSYS2 project)

! Building Harbour 3.2.0dev from source - http://harbour-project.org
! MAKE: win-make 4.1 sh.exe clean install
! HB_INSTALL_PREFIX: c:\dev\harbour_msys
! HB_BUILD_DYN: no
! HB_BUILD_CONTRIB_DYN: no
! HB_BUILD_SHARED: no
! HB_BUILD_STRIP: all
! HB_HOST_PLAT: win (x86_64)  HB_SHELL: nt
! HB_PLATFORM: win (x86) (autodetected)
! HB_COMPILER: mingw (autodetected: c:/msys32/mingw32/bin/)
! Component: 'zlib' found in C:/dev/core/src/3rd/zlib (local)
! Component: 'pcre' found in C:/dev/core/src/3rd/pcre (local)
! Component: 'gpm' not supported on win platform
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.
! Component: 'wattcp/watt-32' not supported on win platform
! GIT_REVISION: 76c62a4
...
../../../../../contrib/hbmzip/mzip.c: In function 'HB_FUN_HB_ZIPOPEN':
../../../../../contrib/hbmzip/mzip.c:240:7: error: unknown type name 'zipcharpc'
       zipcharpc pszGlobalComment = NULL;
       ^~~~~~~~~
../../../../../contrib/hbmzip/mzip.c:240:36: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
       zipcharpc pszGlobalComment = NULL;
                                    ^~~~
../../../../../contrib/hbmzip/mzip.c:243:34: warning: passing argument 3 of 'zipOpen2' from incompatible pointer type [-Wincompatible-pointer-types]
                                  &pszGlobalComment, NULL );
                                  ^
In file included from ../../../../../contrib/hbmzip/mzip.c:64:0:
c:/msys32/mingw32/include/minizip/zip.h:106:24: note: expected 'const char **' but argument is of type 'int *'
 extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, int append, const char ** globalcomment,
                        ^~~~~~~~
hbmk2[hbmzip]: Error: Running C/C++ compiler. 1
hbmk2[hbmzip]: Exit code: 6: failed in compilation (Harbour, C compiler, Resource compiler)
! Finished package rebuild and install...
makefile:8: recipe for target 'install' failed
win-make[1]: *** [install] Error 6
config/dir.mk:68: recipe for target 'contrib.inst' failed
win-make: *** [contrib.inst] Error 2

--------------------------------------------------------------------------------------------------
All build fine with
C:\>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/5.3.0/lto-wrapper.exe
Target: mingw32
...
Thread model: posix
gcc version 5.3.0 (GCC)


Regards,
Alexey Myronenko

Przemyslaw Czerpak

unread,
Apr 19, 2017, 12:10:03 PM4/19/17
to harbou...@googlegroups.com
On Tue, 18 Apr 2017, oleksa wrote:

Hi,

> ../../../../../contrib/hbmzip/mzip.c: In function 'HB_FUN_HB_ZIPOPEN':
> ../../../../../contrib/hbmzip/mzip.c:240:7: error: unknown type name 'zipcharpc'
>        zipcharpc pszGlobalComment = NULL;
>        ^~~~~~~~~
> ../../../../../contrib/hbmzip/mzip.c:243:34: warning: passing argument 3 of 'zipOpen2' from incompatible pointer type [-Wincompatible-pointer-types]
>                                   &pszGlobalComment, NULL );
>                                   ^
> In file included from ../../../../../contrib/hbmzip/mzip.c:64:0:
> c:/msys32/mingw32/include/minizip/zip.h:106:24: note: expected 'const char **' but argument is of type 'int *'
>  extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, int append, const char ** globalcomment,
>                         ^~~~~~~~

Please read what you have in logs instead of sending
them here.
You installed in your system some other version of
minizip in c:/msys32/mingw32/include/minizip/
and this version does not contain zipcharpc definition.
Uninstall it or force using minizip included in
Harbour repository by:
export HB_WITH_MINIZIP=local
in shell environment or in case of COMMAD.COM/CMD.EXE by:
set HB_WITH_MINIZIP=local

best regards,
Przemek

oleksa

unread,
Apr 19, 2017, 1:21:16 PM4/19/17
to harbou...@googlegroups.com
Thanks alot for your support.

Best regards,
Alexey Myronenko

19 квітня 2017, 19:10:13, від "Przemyslaw Czerpak" <dru...@poczta.onet.pl>:

 by:
   set HB_WITH_MINIZIP=local

best regards,
Przemek

-- 
You received this message because you are subscribed to the Google Groups "Harbour Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages