Menu

#10 ishelper.c:147:1: error: conflicting types for 'isrelrec' from make

Group Name (Dunno)
open
nobody
None
5
2023-09-28
2021-10-15
z/VMphile
No

Operating System: Linux
Distribution: openSUSE Leap 15.3 x86_64

I downloaded and unpacked vbisam-2.0, then ran ./configure, then make. Make failed with the message
ishelper.c:147:1: error: conflicting types for 'isrelrec' because in several places it is given conflicting attributes.
I have attached logs from the configure and make steps.

1 Attachments

Discussion

  • z/VMphile

    z/VMphile - 2021-10-15

    And the make log.

     

    Last edit: z/VMphile 2021-10-15
  • Mark Pannett

    Mark Pannett - 2023-05-07

    I appreciate that it is well over a year since this was raised, I had the same issue with a 64-bit PC running Debian 11, and found the following non-portable 2-line addition to ishelper.c around line 139 worked round the problem:

    #ifdef  WITH_LFS64
    #ifdef  _MSC_VER
    #define off_t __int64
    #else                   /* Added this line. */
    #define off_t long long /* Added this line. */
    #endif
    #endif
    

    Not suitable as it stands for incorporation elsewhere as it only addresses 64-bit architectures in a non-Windows environment, and possibly not all of those. See vbisam.h lines 25 to 31 for a similar issue; the above change could be extended in the same way.

     

    Last edit: Mark Pannett 2023-05-07
    • Ross Merrifield

      Ross Merrifield - 2023-09-28

      Thanks! I found that definition in isinternal.h, not ishelper.c but the edit none the less let the code build

       

Log in to post a comment.

MongoDB Logo MongoDB