• Compile error In function `smb_init_idx':

    From nelgin@VERT to All on Wednesday, October 04, 2017 16:55:46
    Hi all,

    Trying to compile the latest on CentOS 6.9 and getting the following. I'm
    open to suggestions because I've got no idea what could be causing this one.

    smblib.c: In function `smb_init_idx':
    smblib.c:1635: error: `idxrec_t' has no member named `subj'
    smblib.c:1639: error: `idxrec_t' has no member named `to'
    smblib.c:1641: error: `idxrec_t' has no member named `to'
    smblib.c:1643: error: `idxrec_t' has no member named `from'
    smblib.c:1645: error: `idxrec_t' has no member named `from'
    smblib.c:1647: error: `idxrec_t' has no member named `votes'
    smblib.c:1648: error: `idxrec_t' has no member named `remsg'
    smblib.c:1650: error: `idxrec_t' has no member named `to'
    smblib.c:1651: error: `idxrec_t' has no member named `from'
    smblib.c: In function `smb_voted_already':
    smblib.c:1700: error: `idxrec_t' has no member named `remsg'
    make[1]: *** [gcc.linux.x64.obj.debug/smblib.o] Error 1
    make[1]: Leaving directory `/home/bbs/sbbs/src/smblib'
    make: *** [smblib] Error 2

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to nelgin on Wednesday, October 04, 2017 23:29:37
    Re: Compile error In function `smb_init_idx':
    By: nelgin to All on Wed Oct 04 2017 04:55 pm

    Hi all,

    Trying to compile the latest on CentOS 6.9 and getting the following. I'm open to suggestions because I've got no idea what could be causing this one.

    smblib.c: In function `smb_init_idx':
    smblib.c:1635: error: `idxrec_t' has no member named `subj'
    smblib.c:1639: error: `idxrec_t' has no member named `to'
    smblib.c:1641: error: `idxrec_t' has no member named `to'
    smblib.c:1643: error: `idxrec_t' has no member named `from'
    smblib.c:1645: error: `idxrec_t' has no member named `from'
    smblib.c:1647: error: `idxrec_t' has no member named `votes'
    smblib.c:1648: error: `idxrec_t' has no member named `remsg'
    smblib.c:1650: error: `idxrec_t' has no member named `to'
    smblib.c:1651: error: `idxrec_t' has no member named `from'
    smblib.c: In function `smb_voted_already':
    smblib.c:1700: error: `idxrec_t' has no member named `remsg'
    make[1]: *** [gcc.linux.x64.obj.debug/smblib.o] Error 1
    make[1]: Leaving directory `/home/bbs/sbbs/src/smblib'
    make: *** [smblib] Error 2

    Looks like you're using a version of gcc that doesn't (correctly) support anonymous unions. I know it (anonymous unions) work correctly in v4.9.2 and later (and possibly earlier).

    digital man

    Synchronet/BBS Terminology Definition #15:
    DOS = Disk Operating System (as in PC-DOS and MS-DOS)
    Norco, CA WX: 63.5øF, 65.0% humidity, 0 mph S wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nelgin@VERT/EOTLBBS to Digital Man on Thursday, October 05, 2017 10:12:50
    Re: Compile error In function `smb_init_idx':
    By: Digital Man to nelgin on Wed Oct 04 2017 11:29 pm

    Looks like you're using a version of gcc that doesn't (correctly) support anonymous unions. I know it (anonymous unions) work correctly in v4.9.2 and later (and possibly earlier).

    I managed to get it to compile with devtoolset-6 and adding -ltinfo to the lines that don't. I used make -d --trace to find out exactly where. It
    seems to be running fine.

    ---
    þ Synchronet þ End Of The Line BBS
  • From Digital Man@VERT to Nelgin on Thursday, October 05, 2017 13:28:08
    Re: Compile error In function `smb_init_idx':
    By: Nelgin to Digital Man on Thu Oct 05 2017 10:12 am

    Re: Compile error In function `smb_init_idx':
    By: Digital Man to nelgin on Wed Oct 04 2017 11:29 pm

    Looks like you're using a version of gcc that doesn't (correctly) support anonymous unions. I know it (anonymous unions) work correctly in v4.9.2 and later (and possibly earlier).

    I managed to get it to compile with devtoolset-6 and adding -ltinfo to the lines that don't. I used make -d --trace to find out exactly where. It
    seems to be running fine.

    Sounds like this issue: https://stackoverflow.com/questions/26267788/linking-fails-with-gcc-4-8-2-ld-2- 24-succeeds-with-gcc-4-4-7-ld-2-20#26268067

    ?


    digital man

    This Is Spinal Tap quote #31:
    Viv Savage: Quite exciting, this computer magic!
    Norco, CA WX: 83.8øF, 21.0% humidity, 0 mph WNW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nelgin@VERT/EOTLBBS to Digital Man on Thursday, October 05, 2017 19:08:35
    Re: Compile error In function `smb_init_idx':
    By: Digital Man to Nelgin on Thu Oct 05 2017 01:28 pm

    Sounds like this issue: https://stackoverflow.com/questions/26267788/linking -fails-with-gcc-4-8-2-ld-2- 24-succeeds-with-gcc-4-4-7-ld-2-20#26268067

    Yes, exactly. The fix for me was to add -ltinfo into src/sbbs3/GNUmakefile
    for ECHOCFG and JSEXEC and in src/sbbs3/scfg/GNUmakefile for SCFG.

    ---
    þ Synchronet þ End Of The Line BBS