• I could not compile xHarbour last changes by Ron

    From Reynaldo Henrique@21:1/5 to All on Fri Dec 15 21:47:34 2023
    #no_spam
    2023-12-14 01:12 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
    * config/linux/gcc.cf
    * Set USE_FPIC for aarch64

    * contrib/hbhpdf
    * Updated to 2.4.4
    * Makefile
    + added missing source filesd and corrected sorting


    I couldn't compile xharbour after the changes above:
    I appears some errors:


    MAKE Version 5.43 Copyright (c) 1987, 2019 Embarcadero Technologies, Inc. contrib\hbhpdf\hpdf_utils.c:
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef 'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
    function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
    function HPDF_FToA
    Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to
    clarify precedence in function HPDF_UInt16Swap
    *** 4 errors in Compile ***

    ** error 2 ** deleting obj\b32\hpdf_utils.obj


    Thanks for your help,

    Reynaldo Henrique

    --
    O software antivírus AVG realizou uma checagem de vírus neste e-mail. www.avg.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ingo Steinbuechel@21:1/5 to Dlzc on Sat Dec 16 17:31:42 2023
    "Dlzc" schrieb:

    Probably best to keep that hashtag in the thread title.

    not at all.

    Google Groups access can't end fast enough

    Not fast enough. But the fact is really good news.

    AND I'll lose access.

    No. Please read G00gle's announcement [1], especially section "What do I
    need to do?".

    Regards Ingo

    [1] https://support.google.com/groups/answer/11036538

    --
    Threema - Sicherer und privater Messenger: https://threema.ch/de
    Meine Threema-ID: https://threema.id/ZV9BWDXK
    Warum Threema? https://warumthreema.de/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Reynaldo Henrique on Tue Dec 19 15:17:31 2023
    Reynaldo Henrique wrote:

    #no_spam
    2023-12-14 01:12 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
    * config/linux/gcc.cf
    * Set USE_FPIC for aarch64

    * contrib/hbhpdf
    * Updated to 2.4.4
    * Makefile
    + added missing source filesd and corrected sorting


    I couldn't compile xharbour after the changes above:
    I appears some errors:


    MAKE Version 5.43 Copyright (c) 1987, 2019 Embarcadero Technologies, Inc. contrib\hbhpdf\hpdf_utils.c:
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef 'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
    function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
    function HPDF_FToA
    Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to
    clarify precedence in function HPDF_UInt16Swap
    *** 4 errors in Compile ***

    ** error 2 ** deleting obj\b32\hpdf_utils.obj


    Thanks for your help,

    Reynaldo Henrique

    --
    O software antiv�rus AVG realizou uma checagem de v�rus neste e-mail. www.avg.com

    Reynaldoo this is because you use TOO OLD verssion of BCC which does NOT ssupport tthe C99 standard (from back in 1999 - more than 20 years ago!).

    I bellieve its time that we should officially require C99 conforming
    compilers and drop support for older.

    Ron

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 23:34:30 2023
    Il 19/12/2023 21:17, Ron Pinkas ha scritto:

    MAKE Version 5.43 Copyright (c) 1987, 2019 Embarcadero Technologies, Inc. >> contrib\hbhpdf\hpdf_utils.c:
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef
    'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in
    function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
    function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
    function HPDF_FToA
    Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to
    clarify precedence in function HPDF_UInt16Swap
    *** 4 errors in Compile ***

    Reynaldoo this is because you use TOO OLD verssion of BCC which does NOT ssupport tthe C99 standard (from back in 1999 - more than 20 years ago!).

    I bellieve its time that we should officially require C99 conforming compilers and drop support for older.

    I'm using MSC 2022 and BCC 2023:

    MSC

    contrib\hbhpdf\hpdf_objects.c(60): error C2664: 'void HPDF_String_Free(HPDF_String)': cannot convert argument 1 from 'void *'
    to 'HPDF_String'
    contrib\hbhpdf\hpdf_objects.c(60): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(270): note: see declaration
    of 'HPDF_String_Free'
    contrib\hbhpdf\hpdf_objects.c(63): error C2664: 'void HPDF_Binary_Free(HPDF_Binary)': cannot convert argument 1 from 'void *'
    to 'HPDF_Binary'
    contrib\hbhpdf\hpdf_objects.c(63): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(315): note: see declaration
    of 'HPDF_Binary_Free'
    contrib\hbhpdf\hpdf_objects.c(66): error C2664: 'void HPDF_Array_Free(HPDF_Array)': cannot convert argument 1 from 'void *' to 'HPDF_Array'
    contrib\hbhpdf\hpdf_objects.c(66): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(351): note: see declaration
    of 'HPDF_Array_Free'
    contrib\hbhpdf\hpdf_objects.c(69): error C2664: 'void HPDF_Dict_Free(HPDF_Dict)': cannot convert argument 1 from 'void *' to 'HPDF_Dict'
    contrib\hbhpdf\hpdf_objects.c(69): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(455): note: see declaration
    of 'HPDF_Dict_Free'
    contrib\hbhpdf\hpdf_objects.c(72): error C2664: 'void HPDF_Direct_Free(HPDF_Direct)': cannot convert argument 1 from 'void *'
    to 'HPDF_Direct'
    contrib\hbhpdf\hpdf_objects.c(72): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(631): note: see declaration
    of 'HPDF_Direct_Free'
    contrib\hbhpdf\hpdf_objects.c(97): error C2440: 'initializing': cannot
    convert from 'void *' to 'HPDF_Proxy'
    contrib\hbhpdf\hpdf_objects.c(97): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast contrib\hbhpdf\hpdf_objects.c(129): error C2664: 'HPDF_STATUS HPDF_Name_Write(HPDF_Name,HPDF_Stream)': cannot convert argument 1 from
    'void *' to 'HPDF_Name'
    contrib\hbhpdf\hpdf_objects.c(129): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(235): note: see declaration
    of 'HPDF_Name_Write'
    contrib\hbhpdf\hpdf_objects.c(132): error C2664: 'HPDF_STATUS HPDF_Number_Write(HPDF_Number,HPDF_Stream)': cannot convert argument 1
    from 'void *' to 'HPDF_Number'
    contrib\hbhpdf\hpdf_objects.c(132): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(179): note: see declaration
    of 'HPDF_Number_Write'
    contrib\hbhpdf\hpdf_objects.c(135): error C2664: 'HPDF_STATUS HPDF_Real_Write(HPDF_Real,HPDF_Stream)': cannot convert argument 1 from
    'void *' to 'HPDF_Real'
    contrib\hbhpdf\hpdf_objects.c(135): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(202): note: see declaration
    of 'HPDF_Real_Write'
    contrib\hbhpdf\hpdf_objects.c(138): error C2664: 'HPDF_STATUS HPDF_String_Write(HPDF_String,HPDF_Stream,HPDF_Encrypt)': cannot convert argument 1 from 'void *' to 'HPDF_String'
    contrib\hbhpdf\hpdf_objects.c(138): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(274): note: see declaration
    of 'HPDF_String_Write'
    contrib\hbhpdf\hpdf_objects.c(141): error C2664: 'HPDF_STATUS HPDF_Binary_Write(HPDF_Binary,HPDF_Stream,HPDF_Encrypt)': cannot convert argument 1 from 'void *' to 'HPDF_Binary'
    contrib\hbhpdf\hpdf_objects.c(141): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(319): note: see declaration
    of 'HPDF_Binary_Write'
    contrib\hbhpdf\hpdf_objects.c(144): error C2664: 'HPDF_STATUS HPDF_Array_Write(HPDF_Array,HPDF_Stream,HPDF_Encrypt)': cannot convert
    argument 1 from 'void *' to 'HPDF_Array'
    contrib\hbhpdf\hpdf_objects.c(144): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(355): note: see declaration
    of 'HPDF_Array_Write'
    contrib\hbhpdf\hpdf_objects.c(147): error C2664: 'HPDF_STATUS HPDF_Dict_Write(HPDF_Dict,HPDF_Stream,HPDF_Encrypt)': cannot convert
    argument 1 from 'void *' to 'HPDF_Dict'
    contrib\hbhpdf\hpdf_objects.c(147): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(459): note: see declaration
    of 'HPDF_Dict_Write'
    contrib\hbhpdf\hpdf_objects.c(150): error C2664: 'HPDF_STATUS HPDF_Boolean_Write(HPDF_Boolean,HPDF_Stream)': cannot convert argument 1
    from 'void *' to 'HPDF_Boolean'
    contrib\hbhpdf\hpdf_objects.c(150): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(152): note: see declaration
    of 'HPDF_Boolean_Write'
    contrib\hbhpdf\hpdf_objects.c(153): error C2664: 'HPDF_STATUS HPDF_Direct_Write(HPDF_Direct,HPDF_Stream)': cannot convert argument 1
    from 'void *' to 'HPDF_Direct'
    contrib\hbhpdf\hpdf_objects.c(153): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(635): note: see declaration
    of 'HPDF_Direct_Write'
    contrib\hbhpdf\hpdf_objects.c(169): error C2440: 'initializing': cannot
    convert from 'void *' to 'HPDF_Proxy'
    contrib\hbhpdf\hpdf_objects.c(169): note: Conversion from 'void*' to
    pointer to non-'void' requires an explicit cast


    BCC

    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef 'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
    function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
    function HPDF_FToA

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)