[MacPorts] #43364: larn will not compile
#43364: larn will not compile ------------------------+-------------------------------- Reporter: vikingjs@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: larn ------------------------+-------------------------------- Attempting to compile larn generates a ton of warnings and a few errors. As with ticket:37821, it looks like increasingly strict compiler defaults are breaking this ancient codebase. -- Ticket URL: <https://trac.macports.org/ticket/43364> MacPorts <http://www.macports.org/> Ports system for OS X
#43364: larn will not compile -------------------------+------------------------ Reporter: vikingjs@… | Owner: aschenke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: larn | -------------------------+------------------------ Changes (by macsforever2000@…): * cc: ashenke@… (removed) * owner: macports-tickets@… => aschenke@… -- Ticket URL: <https://trac.macports.org/ticket/43364#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43364: larn will not compile -------------------------+-------------------------------- Reporter: vikingjs@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: larn | -------------------------+-------------------------------- Changes (by aschenke@…): * owner: aschenke@… => macports-tickets@… Comment: Unfortunately I can't do any work on my ports at the moment so I'm un- assigning myself and returning my ports to nomaintainer (r119007). -- Ticket URL: <https://trac.macports.org/ticket/43364#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43364: larn: error: too few arguments to function call, expected 1, have 0 -------------------------+-------------------------- Reporter: vikingjs@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: larn | -------------------------+-------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ryandesign@… * status: new => assigned Comment: There are three errors shown in the log, all of this type: {{{ :info:build diag.c:212:55: error: too few arguments to function call, expected 1, have 0 :info:build lrfill((char*)&c[0],100*sizeof(long)); gtime = lrint(); :info:build ~~~~~ ^ }}} The reason this error occurs is that larn has defined a function called "lrint", but the system headers also define a function "lrint" which is different. The larn "lrint" function needs to be renamed so that it does not clash with the system function. -- Ticket URL: <https://trac.macports.org/ticket/43364#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43364: larn: error: too few arguments to function call, expected 1, have 0 -------------------------+-------------------------- Reporter: vikingjs@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: larn | -------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: I found a patch from freebsd where they fixed this problem ten years ago by renaming the larn "lrint" function to "lrint_x". I made the same change in r119214 and the port builds for me now. -- Ticket URL: <https://trac.macports.org/ticket/43364#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts