Opened 11 years ago

Closed 7 months ago

#39664 closed defect (fixed)

mosml-dynlibs does not build: lvalue required as left operand of assignment

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cso@…
Port: mosml-dynlibs

Description

msocket.c: In function ‘newsocket’:
msocket.c:114: error: lvalue required as left operand of assignment

Attachments (1)

main.log (13.0 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 8 months ago by barracuda156

Ha, I thought this error was fixed in the source, but no: while gcc-4.2 builds it fine, gcc-12 errs out, like clang.

make[1]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_mosml/mosml-dynlibs/work/mosml-13c581aec46eea134e478f2e2b6456278e36ecce/src/dynlibs/mmysql'
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_mosml/mosml-dynlibs/work/compwrap/cc/opt/local/bin/gcc-mp-12 -Dunix -O2 -fno-defer-pop -I/opt/local/include/mosml -I /opt/local/include/mysql57/mysql -c -o mmysql.o mmysql.c
mmysql.c: In function 'dbresult_finalize':
mmysql.c:79:28: error: lvalue required as left operand of assignment
   79 |     DBresult_val(dbresval) = NULL;
      |                            ^
mmysql.c:81:33: error: lvalue required as left operand of assignment
   81 |     DBresultindex_val(dbresval) = NULL;
      |                                 ^

comment:2 Changed 7 months ago by barracuda156

Resolution: fixed
Status: newclosed

In a88d61b32b0cfbcbc9cf3537b232cc1c6953dcf2/macports-ports (master):

mosml: update to latest upstream, make -dynlibs its subport, close a bunch of old tickets

Closes: #39662
Closes: #58503
Fixes: #39665
Fixes: #39664

Note: See TracTickets for help on using tickets.