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).
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
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 325 |
Nodes: | 10 (0 / 10) |
Uptime: | 11:44:52 |
Calls: | 510 |
Messages: | 220575 |